mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
CMake: Generate, don't use, pydtool.cxx
This commit is contained in:
parent
5f0a390b8f
commit
d2d5e3014c
@ -12,8 +12,29 @@ else()
|
|||||||
set(libtype STATIC)
|
set(libtype STATIC)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(HAVE_PYTHON)
|
if(HAVE_PYTHON AND INTERROGATE_PYTHON_INTERFACE)
|
||||||
add_library(interrogatedb ${libtype} pydtool.cxx)
|
set(INTERROGATEDB_IGATE
|
||||||
|
../../src/interrogatedb/interrogate_interface.h
|
||||||
|
../../src/interrogatedb/interrogate_request.h
|
||||||
|
)
|
||||||
|
|
||||||
|
add_custom_command(
|
||||||
|
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/interrogatedb_module.cxx"
|
||||||
|
COMMAND interrogate
|
||||||
|
-D EXPCL_INTERROGATEDB=
|
||||||
|
-nodb -python -promiscuous
|
||||||
|
-module panda3d.interrogatedb
|
||||||
|
-library interrogatedb
|
||||||
|
-string -true-names -do-module
|
||||||
|
-srcdir "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||||
|
-oc "${CMAKE_CURRENT_BINARY_DIR}/interrogatedb_module.cxx"
|
||||||
|
${INTERROGATEDB_IGATE}
|
||||||
|
DEPENDS interrogate ${INTERROGATEDB_IGATE}
|
||||||
|
COMMENT "Interrogating interrogatedb"
|
||||||
|
)
|
||||||
|
|
||||||
|
add_library(interrogatedb ${libtype}
|
||||||
|
"${CMAKE_CURRENT_BINARY_DIR}/interrogatedb_module.cxx")
|
||||||
target_use_packages(interrogatedb PYTHON)
|
target_use_packages(interrogatedb PYTHON)
|
||||||
target_link_libraries(interrogatedb p3dtoolconfig)
|
target_link_libraries(interrogatedb p3dtoolconfig)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user