mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
switchable extensions_native_helpers.py
This commit is contained in:
parent
efe655aea0
commit
d3b4f33c89
@ -0,0 +1,20 @@
|
|||||||
|
#if $[OSX_PLATFORM]
|
||||||
|
#output extensions_darwin.py
|
||||||
|
#### Generated automatically by $[PPREMAKE] $[PPREMAKE_VERSION] from $[notdir $[THISFILENAME]].
|
||||||
|
################################# DO NOT EDIT ###########################
|
||||||
|
|
||||||
|
# This defines the shared-library filename extension that is built and
|
||||||
|
# imported on OSX. It's normally .dylib, but in certain Python and
|
||||||
|
# OSX versions (for instance, Python 2.4 on OSX 10.4), it appears that
|
||||||
|
# we need to generate and import .so files instead, since Python won't
|
||||||
|
# import the .dylibs directly. This is controlled via the BUNDLE_EXT
|
||||||
|
# variable defined in Config.pp.
|
||||||
|
#if $[BUNDLE_EXT]
|
||||||
|
dll_ext = "$[BUNDLE_EXT]"
|
||||||
|
#else
|
||||||
|
dll_ext = ".dylib"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#end extensions_darwin.py
|
||||||
|
|
||||||
|
#endif // OSX_PLATFORM
|
@ -21,8 +21,9 @@ if sys.platform == "win32":
|
|||||||
if sys.executable.endswith('_d.exe'):
|
if sys.executable.endswith('_d.exe'):
|
||||||
dll_suffix = '_d'
|
dll_suffix = '_d'
|
||||||
elif sys.platform == "darwin":
|
elif sys.platform == "darwin":
|
||||||
# On OSX, the dynamic libraries usually end in .dylib.
|
# On OSX, the dynamic libraries usually end in .dylib, but
|
||||||
dll_ext = '.dylib'
|
# sometimes we need .so.
|
||||||
|
from extensions_darwin import dll_ext
|
||||||
else:
|
else:
|
||||||
# On most other UNIX systems (including linux), .so is used.
|
# On most other UNIX systems (including linux), .so is used.
|
||||||
dll_ext = '.so'
|
dll_ext = '.so'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user