mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
CMake: Write panda3d/dtoolconfig.py like makepanda does
This commit is contained in:
parent
c4c99ca24a
commit
1c6d57f92b
@ -129,13 +129,26 @@ To suppress this warning, upgrade to Python 3.
|
|||||||
|
|
||||||
${win32_init}")
|
${win32_init}")
|
||||||
|
|
||||||
|
set(dtoolconfig_file "'''Alias of :mod:`panda3d.interrogatedb`.
|
||||||
|
|
||||||
|
.. deprecated:: 1.10.0
|
||||||
|
This module has been renamed to :mod:`panda3d.interrogatedb`.
|
||||||
|
'''
|
||||||
|
|
||||||
|
if __debug__:
|
||||||
|
print(\"Warning: panda3d.dtoolconfig is deprecated, use panda3d.interrogatedb instead.\")
|
||||||
|
from .interrogatedb import *
|
||||||
|
")
|
||||||
|
|
||||||
if(IS_MULTICONFIG)
|
if(IS_MULTICONFIG)
|
||||||
foreach(config ${CMAKE_CONFIGURATION_TYPES})
|
foreach(config ${CMAKE_CONFIGURATION_TYPES})
|
||||||
# Generate an __init__.py in the per-configuration directory.
|
# Generate an __init__.py in the per-configuration directory.
|
||||||
file(WRITE "${PROJECT_BINARY_DIR}/${config}/panda3d/__init__.py" ${init_file})
|
file(WRITE "${PROJECT_BINARY_DIR}/${config}/panda3d/__init__.py" ${init_file})
|
||||||
|
file(WRITE "${PROJECT_BINARY_DIR}/${config}/panda3d/dtoolconfig.py" ${dtoolconfig_file})
|
||||||
endforeach(config)
|
endforeach(config)
|
||||||
else()
|
else()
|
||||||
file(WRITE "${PROJECT_BINARY_DIR}/panda3d/__init__.py" ${init_file})
|
file(WRITE "${PROJECT_BINARY_DIR}/panda3d/__init__.py" ${init_file})
|
||||||
|
file(WRITE "${PROJECT_BINARY_DIR}/panda3d/dtoolconfig.py" ${dtoolconfig_file})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(HAVE_BULLET)
|
if(HAVE_BULLET)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user