Separate headers from src and make the headers hpp

Signed-off-by: somebody_master <somebody_master@somebodyserver.mooo.com>
This commit is contained in:
Somebody Master 2023-03-08 22:46:49 +01:00
parent 0d03a90f08
commit fe90b92792
Signed by: somebody_master
GPG Key ID: 78315CFDF0B25505
5 changed files with 10 additions and 9 deletions

View File

@ -1,8 +1,9 @@
env = SConscript("godot-cpp/SConstruct")
env.Append(CPPPATH="src/")
env.Append(CPPPATH=["src/","include/"])
src = Glob("src/*.cpp")
headers = Glob("include/*.hpp")
if env["platform"] == "linux":
pass

View File

@ -3,8 +3,8 @@
* This is free and unencumbered software released into the public domain.
*/
#ifndef EXAMPLE_REGISTER_TYPES_H
#define EXAMPLE_REGISTER_TYPES_H
#ifndef EXAMPLE_REGISTER_TYPES_HPP
#define EXAMPLE_REGISTER_TYPES_HPP
#include <godot_cpp/core/class_db.hpp>
@ -13,4 +13,4 @@ using namespace godot;
void initialize_test_module(ModuleInitializationLevel p_level);
void uninitialize_test_module(ModuleInitializationLevel p_level);
#endif // EXAMPLE_REGISTER_TYPES_H
#endif // EXAMPLE_REGISTER_TYPES_HPP

View File

@ -1,5 +1,5 @@
#ifndef TEST_H
#define TEST_H
#ifndef TEST_HPP
#define TEST_HPP
#include <godot_cpp/classes/node3d.hpp>

View File

@ -3,7 +3,7 @@
* This is free and unencumbered software released into the public domain.
*/
#include "register_types.h"
#include "register_types.hpp"
#include <gdextension_interface.h>
@ -11,7 +11,7 @@
#include <godot_cpp/core/defs.hpp>
#include <godot_cpp/godot.hpp>
#include "test.h"
#include "test.hpp"
using namespace godot;

View File

@ -1,4 +1,4 @@
#include "test.h"
#include "test.hpp"
#include <godot_cpp/variant/utility_functions.hpp>