2023-05-23 19:06:25 +02:00
|
|
|
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-05-23 19:06:25 +02:00
|
|
|
|
|
|
|
|
2023-06-02 11:13:10 +02:00
|
|
|
### Generate pandemonium api .h -> gdnative_api_struct.pxd ###
|
2023-05-23 19:06:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
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"]],
|
2023-05-23 19:06:25 +02:00
|
|
|
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-05-23 19:06:25 +02:00
|
|
|
|
2023-06-02 11:13:10 +02:00
|
|
|
env.Install("$DIST_SITE_PACKAGES/pandemonium/_hazmat", env.CythonModule("internal", "internal.pyx"))
|