Separate headers from src and make the headers hpp
Signed-off-by: somebody_master <somebody_master@somebodyserver.mooo.com>
This commit is contained in:
parent
0d03a90f08
commit
fe90b92792
@ -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
|
||||
|
@ -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
|
@ -1,5 +1,5 @@
|
||||
#ifndef TEST_H
|
||||
#define TEST_H
|
||||
#ifndef TEST_HPP
|
||||
#define TEST_HPP
|
||||
|
||||
#include <godot_cpp/classes/node3d.hpp>
|
||||
|
@ -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;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "test.h"
|
||||
#include "test.hpp"
|
||||
|
||||
#include <godot_cpp/variant/utility_functions.hpp>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user