mirror of https://github.com/AxioDL/metaforce.git
I hate inconsistent filepaths, AKA Fix python not working on windows :<
This commit is contained in:
parent
cc6d977edc
commit
eb40c8843f
|
@ -1,33 +1,39 @@
|
|||
list(APPEND PY_SOURCES
|
||||
hecl/__init__.py
|
||||
hecl/Nodegrid.py
|
||||
hecl/Patching.py
|
||||
hecl/hmdl/__init__.py
|
||||
hecl/hmdl/HMDLMesh.py
|
||||
hecl/hmdl/HMDLShader.py
|
||||
hecl/sact/__init__.py
|
||||
hecl/sact/SACTAction.py
|
||||
hecl/sact/SACTSubtype.py
|
||||
hecl/srea/__init__.py
|
||||
hecl/swld/__init__.py
|
||||
hecl/armature.py
|
||||
hecl/mapa.py
|
||||
hecl/mapu.py
|
||||
hecl/frme.py
|
||||
hecl/path.py)
|
||||
hecl/__init__.py
|
||||
hecl/Nodegrid.py
|
||||
hecl/Patching.py
|
||||
hecl/hmdl/__init__.py
|
||||
hecl/hmdl/HMDLMesh.py
|
||||
hecl/hmdl/HMDLShader.py
|
||||
hecl/sact/__init__.py
|
||||
hecl/sact/SACTAction.py
|
||||
hecl/sact/SACTSubtype.py
|
||||
hecl/srea/__init__.py
|
||||
hecl/swld/__init__.py
|
||||
hecl/armature.py
|
||||
hecl/mapa.py
|
||||
hecl/mapu.py
|
||||
hecl/frme.py
|
||||
hecl/path.py)
|
||||
|
||||
bintoc(hecl_blendershell.cpp hecl_blendershell.py HECL_BLENDERSHELL)
|
||||
|
||||
if (WIN32)
|
||||
set(PYTHON_EXECUTABLE python)
|
||||
else ()
|
||||
set(PYTHON_EXECUTABLE python3)
|
||||
endif ()
|
||||
|
||||
add_custom_command(OUTPUT hecl.zip DEPENDS ${PY_SOURCES}
|
||||
COMMAND python3 ARGS zip_package.py ${CMAKE_CURRENT_BINARY_DIR}/hecl.zip
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
COMMENT "Generating addon package")
|
||||
COMMAND ${PYTHON_EXECUTABLE} ARGS zip_package.py ${CMAKE_CURRENT_BINARY_DIR}/hecl.zip
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
COMMENT "Generating addon package")
|
||||
bintoc(hecl_addon.cpp "${CMAKE_CURRENT_BINARY_DIR}/hecl.zip" HECL_ADDON)
|
||||
|
||||
add_library(hecl-blender-addon
|
||||
hecl_blendershell.py
|
||||
hecl_blendershell.cpp
|
||||
zip_package.py
|
||||
hecl.zip
|
||||
hecl_addon.cpp
|
||||
${PY_SOURCES})
|
||||
hecl_blendershell.py
|
||||
hecl_blendershell.cpp
|
||||
zip_package.py
|
||||
hecl.zip
|
||||
hecl_addon.cpp
|
||||
${PY_SOURCES})
|
||||
|
|
Loading…
Reference in New Issue