mirror of
https://github.com/Relintai/gdnative_cpp.git
synced 2024-11-20 10:57:23 +01:00
Merged the include and src folders.
This commit is contained in:
parent
81c0193475
commit
c45e0ce2af
@ -490,11 +490,11 @@ if env["generate_bindings"]:
|
||||
NoCache(bindings)
|
||||
|
||||
# Includes
|
||||
env.Append(CPPPATH=[[env.Dir(d) for d in [".", env["headers_dir"], "include", "include/gen", "include/core"]]])
|
||||
env.Append(CPPPATH=[[env.Dir(d) for d in [".", env["headers_dir"], "gen", "core"]]])
|
||||
|
||||
# Sources to compile
|
||||
sources = []
|
||||
add_sources(sources, "src/core", "cpp")
|
||||
add_sources(sources, "core", "cpp")
|
||||
sources.extend(f for f in bindings if str(f).endswith(".cpp"))
|
||||
|
||||
arch_suffix = env["bits"]
|
||||
|
@ -47,8 +47,8 @@ def get_file_list(api_filepath, output_dir, headers=False, sources=False):
|
||||
files = []
|
||||
with open(api_filepath) as api_file:
|
||||
classes = json.load(api_file)
|
||||
include_gen_folder = Path(output_dir) / "include" / "gen"
|
||||
source_gen_folder = Path(output_dir) / "src" / "gen"
|
||||
include_gen_folder = Path(output_dir) / "gen"
|
||||
source_gen_folder = Path(output_dir) / "gen"
|
||||
for _class in classes:
|
||||
header_filename = include_gen_folder / (class_name_to_file_name(strip_name(_class["name"])) + ".h")
|
||||
source_filename = source_gen_folder / (class_name_to_file_name(strip_name(_class["name"])) + ".cpp")
|
||||
@ -90,8 +90,8 @@ def generate_bindings(api_filepath, use_template_get_node, output_dir="."):
|
||||
classes = json.load(api_file)
|
||||
|
||||
icalls = set()
|
||||
include_gen_folder = Path(output_dir) / "include" / "gen"
|
||||
source_gen_folder = Path(output_dir) / "src" / "gen"
|
||||
include_gen_folder = Path(output_dir) / "gen"
|
||||
source_gen_folder = Path(output_dir) / "gen"
|
||||
|
||||
include_gen_folder.mkdir(parents=True, exist_ok=True)
|
||||
source_gen_folder.mkdir(parents=True, exist_ok=True)
|
||||
|
0
include/gen/.gitignore → gen/.gitignore
vendored
0
include/gen/.gitignore → gen/.gitignore
vendored
2
src/gen/.gitignore
vendored
2
src/gen/.gitignore
vendored
@ -1,2 +0,0 @@
|
||||
*
|
||||
!.gitignore
|
Loading…
Reference in New Issue
Block a user