mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
246 lines
8.1 KiB
Puppet
246 lines
8.1 KiB
Puppet
//
|
|
// Package.pp
|
|
//
|
|
// This file defines certain configuration variables that are to be
|
|
// written into the various make scripts. It is processed by ppremake
|
|
// (along with the Sources.pp files in each of the various
|
|
// directories) to generate build scripts appropriate to each
|
|
// environment.
|
|
//
|
|
// This is the package-specific file, which should be at the top of
|
|
// every source hierarchy. It generally gets the ball rolling, and is
|
|
// responsible for explicitly including all of the relevent Config.pp
|
|
// files.
|
|
|
|
// Check the version of ppremake in use.
|
|
#if $[< $[PPREMAKE_VERSION],1.11]
|
|
#error You need at least ppremake version 1.11 to process this tree.
|
|
#endif
|
|
|
|
// What is the name and version of this source tree?
|
|
#if $[eq $[PACKAGE],]
|
|
#define PACKAGE dtool
|
|
#define VERSION 0.80
|
|
#endif
|
|
|
|
// Where should we install DTOOL, specifically?
|
|
#if $[or $[CTPROJS],$[DTOOL]]
|
|
// If we are presently attached, use the environment variable.
|
|
// We define two variables: one for ourselves, which burns in the
|
|
// current value of the DTOOL environment variable (so that any
|
|
// attempt to install in this tree will install correctly, no
|
|
// matter whether we are attached to a different DTOOL later by
|
|
// mistake), and one for other trees to use, which expands to a
|
|
// ordinary reference to the DTOOL environment variable, so
|
|
// they will read from the right tree no matter which DTOOL they're
|
|
// attached to.
|
|
#set DTOOL $[unixfilename $[DTOOL]]
|
|
#define DTOOL_INSTALL $[DTOOL]
|
|
#define DTOOL_INSTALL_OTHER $(DTOOL)
|
|
#if $[eq $[DTOOL],]
|
|
#error You seem to be attached to some trees, but not DTOOL!
|
|
#endif
|
|
#else
|
|
// Otherwise, if we are not attached, install in the standard place
|
|
// (unless the user specifies otherwise).
|
|
#defer DTOOL_INSTALL $[unixfilename $[INSTALL_DIR]]
|
|
#defer DTOOL_INSTALL_OTHER $[unixfilename $[INSTALL_DIR]]
|
|
#endif
|
|
|
|
|
|
// These variables tell ppremake how to interpret the contents of the
|
|
// PLATFORM variable, and help it to control the effects of functions
|
|
// like $[os] and $[isfullpath].
|
|
|
|
// True if we are building on some flavor of Windows.
|
|
#define WINDOWS_PLATFORM $[or $[eq $[PLATFORM],Win32],$[eq $[PLATFORM],Cygwin]]
|
|
|
|
// True if we are building on some flavor of Unix.
|
|
#define UNIX_PLATFORM $[not $[WINDOWS_PLATFORM]]
|
|
|
|
|
|
|
|
// Pull in the package-level Config file. This contains a lot of
|
|
// configuration variables that the user might want to fine-tune.
|
|
#include $[THISDIRPREFIX]Config.pp
|
|
|
|
// Also get the platform-specific config file. This defines a few
|
|
// more variables that are more likely to be platform-dependent and
|
|
// are less likely to be directly modified by the user.
|
|
#include $[THISDIRPREFIX]Config.$[PLATFORM].pp
|
|
|
|
// If the environment variable PPREMAKE_CONFIG is set, it points to a
|
|
// user-customized Config.pp file, for instance in the user's home
|
|
// directory. This file might redefine any of the variables defined
|
|
// above.
|
|
#if $[ne $[PPREMAKE_CONFIG],]
|
|
#set PPREMAKE_CONFIG $[unixfilename $[PPREMAKE_CONFIG]]
|
|
#print Reading $[PPREMAKE_CONFIG]
|
|
#include $[PPREMAKE_CONFIG]
|
|
#else
|
|
#print Environment variable PPREMAKE_CONFIG not set; using defaults.
|
|
#endif
|
|
|
|
// Now evaluate all of our deferred variable definitions from
|
|
// Config.pp.
|
|
#set PYTHON_IPATH $[unixfilename $[PYTHON_IPATH]]
|
|
#set PYTHON_LPATH $[unixfilename $[PYTHON_LPATH]]
|
|
#set HAVE_PYTHON $[HAVE_PYTHON]
|
|
|
|
#set NSPR_IPATH $[unixfilename $[NSPR_IPATH]]
|
|
#set NSPR_LPATH $[unixfilename $[NSPR_LPATH]]
|
|
#set NSPR_LIBS $[NSPR_LIBS]
|
|
#set HAVE_NSPR $[HAVE_NSPR]
|
|
|
|
#set SSL_IPATH $[unixfilename $[SSL_IPATH]]
|
|
#set SSL_LPATH $[unixfilename $[SSL_LPATH]]
|
|
#set SSL_LIBS $[SSL_LIBS]
|
|
#set HAVE_SSL $[HAVE_SSL]
|
|
|
|
#set CRYPTO_IPATH $[unixfilename $[CRYPTO_IPATH]]
|
|
#set CRYPTO_LPATH $[unixfilename $[CRYPTO_LPATH]]
|
|
#set CRYPTO_LIBS $[CRYPTO_LIBS]
|
|
#set HAVE_CRYPTO $[HAVE_CRYPTO]
|
|
|
|
#set JPEG_IPATH $[unixfilename $[JPEG_IPATH]]
|
|
#set JPEG_LPATH $[unixfilename $[JPEG_LPATH]]
|
|
#set JPEG_LIBS $[JPEG_LIBS]
|
|
#set HAVE_JPEG $[HAVE_JPEG]
|
|
|
|
#set JPEG2000_IPATH $[unixfilename $[JPEG2000_IPATH]]
|
|
#set JPEG2000_LPATH $[unixfilename $[JPEG2000_LPATH]]
|
|
#set JPEG2000_LIBS $[JPEG2000_LIBS]
|
|
#set HAVE_JPEG2000 $[HAVE_JPEG2000]
|
|
|
|
#set TIFF_IPATH $[unixfilename $[TIFF_IPATH]]
|
|
#set TIFF_LPATH $[unixfilename $[TIFF_LPATH]]
|
|
#set TIFF_LIBS $[TIFF_LIBS]
|
|
#set HAVE_TIFF $[HAVE_TIFF]
|
|
|
|
#set FFTW_IPATH $[unixfilename $[FFTW_IPATH]]
|
|
#set FFTW_LPATH $[unixfilename $[FFTW_LPATH]]
|
|
#set FFTW_LIBS $[FFTW_LIBS]
|
|
#set HAVE_FFTW $[HAVE_FFTW]
|
|
|
|
#set VRPN_IPATH $[unixfilename $[VRPN_IPATH]]
|
|
#set VRPN_LPATH $[unixfilename $[VRPN_LPATH]]
|
|
#set VRPN_LIBS $[VRPN_LIBS]
|
|
#set HAVE_VRPN $[HAVE_VRPN]
|
|
|
|
#set ZLIB_IPATH $[unixfilename $[ZLIB_IPATH]]
|
|
#set ZLIB_LPATH $[unixfilename $[ZLIB_LPATH]]
|
|
#set ZLIB_LIBS $[ZLIB_LIBS]
|
|
#set HAVE_ZLIB $[HAVE_ZLIB]
|
|
|
|
#set SOXST_IPATH $[unixfilename $[SOXST_IPATH]]
|
|
#set SOXST_LPATH $[unixfilename $[SOXST_LPATH]]
|
|
#set SOXST_LIBS $[SOXST_LIBS]
|
|
#set HAVE_SOXST $[HAVE_SOXST]
|
|
|
|
#set GL_IPATH $[unixfilename $[GL_IPATH]]
|
|
#set GL_LPATH $[unixfilename $[GL_LPATH]]
|
|
#set GL_LIBS $[GL_LIBS]
|
|
#set HAVE_GL $[HAVE_GL]
|
|
|
|
#set CHROMIUM_IPATH $[unixfilename $[CHROMIUM_IPATH]]
|
|
#set CHROMIUM_LPATH $[unixfilename $[CHROMIUM_LPATH]]
|
|
#set CHROMIUM_LIBS $[CHROMIUM_LIBS]
|
|
#set HAVE_CHROMIUM $[HAVE_CHROMIUM]
|
|
|
|
#set GLX_IPATH $[unixfilename $[GLX_IPATH]]
|
|
#set GLX_LPATH $[unixfilename $[GLX_LPATH]]
|
|
#set HAVE_GLX $[HAVE_GLX]
|
|
|
|
#set GLUT_IPATH $[unixfilename $[GLUT_IPATH]]
|
|
#set GLUT_LPATH $[unixfilename $[GLUT_LPATH]]
|
|
#set GLUT_LIBS $[GLUT_LIBS]
|
|
#set HAVE_GLUT $[HAVE_GLUT]
|
|
|
|
#set HAVE_WGL $[HAVE_WGL]
|
|
|
|
#set HAVE_SGIGL $[HAVE_SGIGL]
|
|
|
|
#set DX_IPATH $[unixfilename $[DX_IPATH]]
|
|
#set DX_LPATH $[unixfilename $[DX_LPATH]]
|
|
#set DX_LIBS $[DX_LIBS]
|
|
#set HAVE_DX $[HAVE_DX]
|
|
|
|
#set HAVE_RIB $[HAVE_RIB]
|
|
|
|
#set MIKMOD_CONFIG $[MIKMOD_CONFIG]
|
|
#set HAVE_MIKMOD $[HAVE_MIKMOD]
|
|
|
|
#set HAVE_THREADS $[HAVE_THREADS]
|
|
|
|
#set NET_IPATH $[unixfilename $[NET_IPATH]]
|
|
#set NET_LPATH $[unixfilename $[NET_LPATH]]
|
|
#set NET_LIBS $[NET_LIBS]
|
|
#set HAVE_NET $[HAVE_NET]
|
|
|
|
#set DO_PSTATS $[DO_PSTATS]
|
|
|
|
#set RAD_MSS_IPATH $[unixfilename $[RAD_MSS_IPATH]]
|
|
#set RAD_MSS_LPATH $[unixfilename $[RAD_MSS_LPATH]]
|
|
#set RAD_MSS_LIBS $[RAD_MSS_LIBS]
|
|
#set HAVE_RAD_MSS $[HAVE_RAD_MSS]
|
|
|
|
#set FMOD_IPATH $[unixfilename $[FMOD_IPATH]]
|
|
#set FMOD_LPATH $[unixfilename $[FMOD_LPATH]]
|
|
#set FMOD_LIBS $[FMOD_LIBS]
|
|
#set HAVE_FMOD $[HAVE_FMOD]
|
|
|
|
#set CHROMIUM_IPATH $[unixfilename $[CHROMIUM_IPATH]]
|
|
#set CHROMIUM_LPATH $[unixfilename $[CHROMIUM_LPATH]]
|
|
#set CHROMIUM_LIBS $[CHROMIUM_LIBS]
|
|
#set HAVE_CHROMIUM $[HAVE_CHROMIUM]
|
|
|
|
#set GTKMM_CONFIG $[GTKMM_CONFIG]
|
|
#set HAVE_GTKMM $[HAVE_GTKMM]
|
|
|
|
#set FREETYPE_CONFIG $[FREETYPE_CONFIG]
|
|
#set HAVE_FREETYPE $[HAVE_FREETYPE]
|
|
#set FREETYPE_CFLAGS $[FREETYPE_CFLAGS]
|
|
#set FREETYPE_IPATH $[unixfilename $[FREETYPE_IPATH]]
|
|
#set FREETYPE_LPATH $[unixfilename $[FREETYPE_LPATH]]
|
|
#set FREETYPE_LIBS $[FREETYPE_LIBS]
|
|
|
|
|
|
#set MAYA_LOCATION $[unixfilename $[MAYA_LOCATION]]
|
|
#set HAVE_MAYA $[HAVE_MAYA]
|
|
|
|
|
|
// Now infer a few more variables based on what was defined.
|
|
#if $[and $[HAVE_MIKMOD],$[MIKMOD_CONFIG]]
|
|
#define cflags $[shell $[MIKMOD_CONFIG] --cflags]
|
|
#define libs $[shell $[MIKMOD_CONFIG] --libs]
|
|
|
|
#define MIKMOD_CFLAGS $[filter-out -I%,$[cflags]]
|
|
#define MIKMOD_IPATH $[unique $[patsubst -I%,%,$[filter -I%,$[cflags]]]]
|
|
#define MIKMOD_LPATH $[unique $[patsubst -L%,%,$[filter -L%,$[libs]]]]
|
|
#define MIKMOD_LIBS $[patsubst -l%,%,$[filter -l%,$[libs]]]
|
|
#endif
|
|
|
|
#if $[and $[HAVE_GTKMM],$[GTKMM_CONFIG]]
|
|
#define cflags $[shell $[GTKMM_CONFIG] --cflags]
|
|
#define libs $[shell $[GTKMM_CONFIG] --libs]
|
|
|
|
#define GTKMM_CFLAGS $[filter-out -I%,$[cflags]]
|
|
#define GTKMM_IPATH $[unique $[patsubst -I%,%,$[filter -I%,$[cflags]]]]
|
|
#define GTKMM_LPATH $[unique $[patsubst -L%,%,$[filter -L%,$[libs]]]]
|
|
#define GTKMM_LIBS $[patsubst -l%,%,$[filter -l%,$[libs]]]
|
|
#endif
|
|
|
|
#if $[and $[HAVE_FREETYPE],$[FREETYPE_CONFIG]]
|
|
#define cflags $[shell $[FREETYPE_CONFIG] --cflags]
|
|
#define libs $[shell $[FREETYPE_CONFIG] --libs]
|
|
|
|
#define FREETYPE_CFLAGS $[filter-out -I%,$[cflags]]
|
|
#define FREETYPE_IPATH $[unique $[patsubst -I%,%,$[filter -I%,$[cflags]]]]
|
|
#define FREETYPE_LPATH $[unique $[patsubst -L%,%,$[filter -L%,$[libs]]]]
|
|
#define FREETYPE_LIBS $[patsubst -l%,%,$[filter -l%,$[libs]]]
|
|
#endif
|
|
|
|
|
|
// Finally, include the system configure file.
|
|
#include $[THISDIRPREFIX]pptempl/System.pp
|