Merged the include and src folders.

This commit is contained in:
Relintai 2023-10-23 17:24:00 +02:00
parent 81c0193475
commit c45e0ce2af
64 changed files with 6 additions and 8 deletions

View File

@ -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"]

View File

@ -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)

2
src/gen/.gitignore vendored
View File

@ -1,2 +0,0 @@
*
!.gitignore