mirror of
https://github.com/Relintai/gdnative_python.git
synced 2024-11-12 10:25:08 +01:00
Use the pandemonium_headers folder.
This commit is contained in:
parent
e440d8176c
commit
46707da341
12
SConstruct
12
SConstruct
@ -56,7 +56,7 @@ vars.Add(
|
||||
default="3.2.2",
|
||||
converter=godot_binary_converter,
|
||||
)
|
||||
vars.Add("godot_headers", "Path to Godot GDnative headers", "")
|
||||
vars.Add("pandemonium_headers", "Path to Godot GDnative headers", "")
|
||||
vars.Add("debugger", "Run test with a debugger", "")
|
||||
vars.Add(BoolVariable("debug", "Compile with debug symbols", False))
|
||||
vars.Add(BoolVariable("headless", "Run tests in headless mode", False))
|
||||
@ -135,14 +135,14 @@ Help(vars.GenerateHelpText(env))
|
||||
# ImportVirtualenv(env)
|
||||
|
||||
|
||||
if env["godot_headers"]:
|
||||
env["godot_headers"] = Dir(env["godot_headers"])
|
||||
if env["pandemonium_headers"]:
|
||||
env["pandemonium_headers"] = Dir(env["pandemonium_headers"])
|
||||
else:
|
||||
env["godot_headers"] = Dir("godot_headers")
|
||||
env.AppendUnique(CPPPATH=["$godot_headers"])
|
||||
env["pandemonium_headers"] = Dir("pandemonium_headers")
|
||||
env.AppendUnique(CPPPATH=["$pandemonium_headers"])
|
||||
# TODO: not sure why, but CPPPATH scan result for cython modules change between
|
||||
# first and subsequent runs of scons (module is considered to no longer depend
|
||||
# on godot_headers on subsequent run, so the build redone)
|
||||
# on pandemonium_headers on subsequent run, so the build redone)
|
||||
SetOption("implicit_cache", 1)
|
||||
|
||||
|
||||
|
@ -308,8 +308,8 @@ if __name__ == "__main__":
|
||||
"--input",
|
||||
"-i",
|
||||
required=True,
|
||||
metavar="GODOT_HEADERS_PATH",
|
||||
help="Path to Godot GDNative headers",
|
||||
metavar="PANDEMONIUM_HEADERS_PATH",
|
||||
help="Path to GDNative headers",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--output",
|
||||
|
@ -38,7 +38,7 @@ env.Depends(
|
||||
|
||||
godot_builtins_srcs = env.Command(
|
||||
target=("builtins.pyx", "builtins.pxd"),
|
||||
source=("#/generation/generate_builtins.py", "${godot_headers}/gdnative_api.json"),
|
||||
source=("#/generation/generate_builtins.py", "${pandemonium_headers}/gdnative_api.json"),
|
||||
action="python ${SOURCES[0]} --input ${SOURCES[1]} --output ${TARGET}",
|
||||
)
|
||||
env.Depends(
|
||||
@ -84,7 +84,7 @@ else:
|
||||
|
||||
godot_bindings_srcs = bindings_env.Command(
|
||||
target=("bindings.pyx", "bindings.pxd", "bindings.pyi"),
|
||||
source=("#/generation/generate_bindings.py", "${godot_headers}/api.json"),
|
||||
source=("#/generation/generate_bindings.py", "${pandemonium_headers}/api.json"),
|
||||
action=("python ${SOURCES[0]} ${opts} --input ${SOURCES[1]} --output ${TARGET} "),
|
||||
opts="--sample" if sample else "",
|
||||
)
|
||||
|
@ -20,7 +20,7 @@ env.Install("$DIST_SITE_PACKAGES/godot/_hazmat", pxds)
|
||||
|
||||
gdnative_api_struct_pxd = env.Command(
|
||||
target="gdnative_api_struct.pxd",
|
||||
source=["#/generation/generate_gdnative_api_struct.py", env["godot_headers"]],
|
||||
source=["#/generation/generate_gdnative_api_struct.py", env["pandemonium_headers"]],
|
||||
action="python ${SOURCES[0]} --input ${SOURCES[1]} --output ${TARGET}",
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user