gdnative_python/pythonscript/pandemonium/_hazmat/SConscript

34 lines
868 B
Python
Raw Normal View History

Import("env")
pxds = [
File(x)
for x in (
"__init__.py", # Not really a .pxd but still needed
"conversion.pxd",
"internal.pxd",
"gdapi.pxd",
"gdnative_api_struct.pxd",
)
]
env.AppendUnique(CYTHON_DEPS=pxds)
2023-06-02 11:13:10 +02:00
env.Install("$DIST_SITE_PACKAGES/pandemonium/_hazmat", pxds)
2023-06-02 11:13:10 +02:00
### Generate pandemonium api .h -> gdnative_api_struct.pxd ###
gdnative_api_struct_pxd = env.Command(
target="gdnative_api_struct.pxd",
2023-06-02 10:02:17 +02:00
source=["#/generation/generate_gdnative_api_struct.py", env["pandemonium_headers"]],
action="python ${SOURCES[0]} --input ${SOURCES[1]} --output ${TARGET}",
)
### Cython modules ###
2023-06-02 11:13:10 +02:00
env.Install("$DIST_SITE_PACKAGES/pandemonium/_hazmat", env.CythonModule("conversion", "conversion.pyx"))
2023-06-02 11:13:10 +02:00
env.Install("$DIST_SITE_PACKAGES/pandemonium/_hazmat", env.CythonModule("internal", "internal.pyx"))