Config.pp 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125
  1. //
  2. // dtool/Config.pp
  3. //
  4. // This file defines certain configuration variables that are written
  5. // into the various make scripts. It is processed by ppremake (along
  6. // with the Sources.pp files in each of the various directories) to
  7. // generate build scripts appropriate to each environment.
  8. //
  9. // *******************************************************************
  10. // NOTE: you should not attempt to copy this file verbatim as your own
  11. // personal Config.pp file. Instead, you should start with an empty
  12. // Config.pp file, and add lines to it when you wish to override
  13. // settings given in here. In the normal ppremake system, this file
  14. // will always be read first, and then your personal Config.pp file
  15. // will be read later, which gives you a chance to override the
  16. // default settings found in this file. However, if you start by
  17. // copying the entire file, it will be difficult to tell which
  18. // settings you have customized, and it will be difficult to upgrade
  19. // to a subsequent version of Panda.
  20. // *******************************************************************
  21. //
  22. // ppremake is capable of generating makefiles for Unix compilers such
  23. // as gcc or SGI's MipsPRO compiler, as well as for Windows
  24. // environments like Microsoft's Visual C++. It can also,
  25. // potentially, generate Microsoft Developer's Studio project files
  26. // directly, although we haven't written the scripts to do this yet.
  27. // In principle, it can be extended to generate suitable build script
  28. // files for any number of different build environments.
  29. //
  30. // All of these build scripts can be tuned for a particular
  31. // environment via this file. This is the place for the user to
  32. // specify which external packages are installed and where, or to
  33. // enable or disable certain optional features. However, it is
  34. // suggested that rather than modify this file directly, you create a
  35. // custom file in your home directory and there redefine whatever
  36. // variables are appropriate, and set the environment variable
  37. // PPREMAKE_CONFIG to refer to it. In this way, you can easily get an
  38. // updated source tree (including a new Config.pp) without risking
  39. // accidentally losing your customizations. This also avoids having
  40. // to redefine the same variables in different packages (for instance,
  41. // in dtool and in panda).
  42. //
  43. // The syntax in this file resembles some hybrid between C++
  44. // preprocessor declarations and GNU make variables. This is the same
  45. // syntax used in the various ppremake system configure files; it's
  46. // designed to be easy to use as a macro language to generate
  47. // makefiles and their ilk.
  48. //
  49. // Some of the variables below are defined using the #define command,
  50. // and others are defined using #defer. The two are very similar in
  51. // their purpose; the difference is that, if the variable definition
  52. // includes references to other variables (e.g. $[varname]), then
  53. // #define will evaluate all of the other variable references
  54. // immediately and store the resulting expansion, while #defer will
  55. // store only the variable references themselves, and expand them when
  56. // the variable is later referenced. It is very similar to the
  57. // relationship between := and = in GNU Make.
  58. // dtool/Config.pp
  59. // In general, #defer is used in this file, to allow the user to
  60. // redefine critical variables in his or her own Config.pp file.
  61. // What kind of build scripts are we generating? This selects a
  62. // suitable template file from the ppremake system files. The
  63. // allowable choices, at present, are:
  64. //
  65. // unix - Generate makefiles suitable for most Unix platforms.
  66. // msvc - Generate Visual C++ project files (still a work in progress)
  67. // nmake - Generate makefiles for Microsoft Visual C++, using
  68. // Microsoft's nmake utility.
  69. // gmsvc - Generate makefiles similar to the above, using Microsoft
  70. // Visual C++, but uses the Cygwin-supplied GNU make
  71. // instead of Microsoft nmake. This is potentially
  72. // faster if you have multiple CPU's, since it supports
  73. // distributed make. It's a tiny bit slower if you're
  74. // not taking advantage of distributed make, because of
  75. // the overhead associated with Cygwin fork() calls.
  76. #if $[eq $[PLATFORM], Win32]
  77. #define BUILD_TYPE nmake
  78. #elif $[eq $[PLATFORM], Cygwin]
  79. #define BUILD_TYPE gmsvc
  80. #elif $[OSX_PLATFORM]
  81. #define BUILD_TYPE unix
  82. #else
  83. #define BUILD_TYPE unix
  84. #endif
  85. // What is the default install directory for all trees in the Panda
  86. // suite? The default value for this variable is provided by
  87. // ppremake; on Unix machines it is the value of --prefix passed in to
  88. // the configure script, and on Windows machines the default is
  89. // hardcoded in config_msvc.h to C:\Panda3d.
  90. // You may also override this for a particular tree by defining a
  91. // variable name like DTOOL_INSTALL or PANDA_INSTALL. (The
  92. // INSTALL_DIR variable will have no effect if you are using the
  93. // ctattach tools to control your attachment to the trees; but this
  94. // will be the case only if you are a member of the VR Studio.)
  95. // #define INSTALL_DIR /usr/local/panda
  96. // If you intend to use Panda only as a Python module, you may find
  97. // the following define useful (but you should put in the correct path
  98. // to site-packages within your own installed Python). This will
  99. // install the Panda libraries into the standard Python search space
  100. // so that they can be accessed as Python modules. (Also see the
  101. // PYTHON_IPATH variable, below.)
  102. // If you don't do this, you can still use Panda as a Python module,
  103. // but you must put /usr/local/panda/lib (or $INSTALL_DIR/lib) on
  104. // your PYTHONPATH.
  105. // #define INSTALL_LIB_DIR /usr/lib/python2.2/site-packages
  106. // The character used to separate components of an OS-specific
  107. // directory name depends on the platform (it is '/' on Unix, '\' on
  108. // Windows). That character selection is hardcoded into Panda and
  109. // cannot be changed here. (Note that an internal Panda filename
  110. // always uses the forward slash, '/', to separate the components of a
  111. // directory name.)
  112. // There's a different character used to separate the complete
  113. // directory names in a search path specification. On Unix, the
  114. // normal convention is ':', on Windows, it has to be ';', because the
  115. // colon is already used to mark the drive letter. This character is
  116. // selectable here. Most users won't want to change this. If
  117. // multiple characters are placed in this string, any one of them may
  118. // be used as a separator character.
  119. #define DEFAULT_PATHSEP $[if $[WINDOWS_PLATFORM],;,:]
  120. // What level of compiler optimization/debug symbols should we build?
  121. // The various optimize levels are defined as follows:
  122. //
  123. // 1 - No compiler optimizations, debug symbols, debug heap, lots of checks
  124. // 2 - Full compiler optimizations, debug symbols, debug heap, lots of checks
  125. // 3 - Full compiler optimizations, full debug symbols, fewer checks
  126. // 4 - Full optimizations, no debug symbols, and asserts removed
  127. //
  128. #define OPTIMIZE 3
  129. // On OSX, you may or may not want to compile universal binaries.
  130. // Turning this option on allows your compiled version of Panda to run
  131. // on any version of OSX (PPC or Intel-based), but it will also
  132. // increase the compilation time, as well as the resulting binary
  133. // size. I believe you have to be building on an Intel-based platform
  134. // to generate universal binaries using this technique. This option
  135. // has no effect on non-OSX platforms.
  136. #define UNIVERSAL_BINARIES
  137. // Panda uses prc files for runtime configuration. There are many
  138. // compiled-in options to customize the behavior of the prc config
  139. // system; most users won't need to change any of them. Feel free to
  140. // skip over all of the PRC_* variables defined here.
  141. // The default behavior is to search for files names *.prc in the
  142. // directory specified by the PRC_DIR environment variable, and then
  143. // to search along all of the directories named by the PRC_PATH
  144. // environment variable. Either of these variables might be
  145. // undefined; if both of them are undefined, the default is to search
  146. // in the directory named here by DEFAULT_PRC_DIR.
  147. // By default, we specify the install/etc dir, which is where the
  148. // system-provided PRC files get copied to.
  149. #defer DEFAULT_PRC_DIR $[INSTALL_DIR]/etc
  150. // You can specify the names of the environment variables that are
  151. // used to specify the search location(s) for prc files at runtime.
  152. // These are space-separated lists of environment variable names.
  153. // Specify empty string for either one of these to disable the
  154. // feature. For instance, redefining PRC_DIR_ENVVARS here to
  155. // PANDA_PRC_DIR would cause the environment variable $PANDA_PRC_DIR
  156. // to be consulted at startup instead of the default value of
  157. // $PRC_DIR.
  158. #define PRC_DIR_ENVVARS PRC_DIR
  159. #define PRC_PATH_ENVVARS PRC_PATH
  160. // You can specify the name of the file(s) to search for in the above
  161. // paths to be considered a config file. This should be a
  162. // space-separated list of filename patterns. This is *.prc by
  163. // default; normally there's no reason to change this.
  164. #define PRC_PATTERNS *.prc
  165. // You can optionally encrypt your prc file(s) to help protect them
  166. // from curious eyes. You have to specify the encryption key, which
  167. // gets hard-coded into the executable. (This feature provides mere
  168. // obfuscation, not real security, since the encryption key can
  169. // potentially be extracted by a hacker.) This requires building with
  170. // OpenSSL (see below).
  171. #define PRC_ENCRYPTED_PATTERNS *.prc.pe
  172. #define PRC_ENCRYPTION_KEY ""
  173. // One unusual feature of config is the ability to execute one or more
  174. // of the files it discovers as if it were a program, and then treat
  175. // the output of this program as a prc file. If you want to use this
  176. // feature, define this variable to the filename pattern or patterns
  177. // for such executable-style config programs (e.g. *prc.exe). This
  178. // can be the same as the above if you like this sort of ambiguity; in
  179. // that case, config will execute the file if it appears to be
  180. // executable; otherwise, it will simply read it.
  181. #define PRC_EXECUTABLE_PATTERNS
  182. // If you do use the above feature, you'll need another environment
  183. // variable that specifies additional arguments to pass to the
  184. // executable programs. The default definition, given here, makes
  185. // that variable be $PRC_EXECUTABLE_ARGS. Sorry, the same arguments
  186. // must be supplied to all executables in a given runtime session.
  187. #define PRC_EXECUTABLE_ARGS_ENVVAR PRC_EXECUTABLE_ARGS
  188. // You can implement signed prc files, if you require this advanced
  189. // feature. This allows certain config variables to be set only by a
  190. // prc file that has been provided by a trusted source. To do this,
  191. // first install and compile Dtool with OpenSSL (below) and run the
  192. // program make-prc-key, and then specify here the output filename
  193. // generated by that program, and then recompile Dtool (ppremake; make
  194. // install).
  195. #define PRC_PUBLIC_KEYS_FILENAME
  196. // By default, the signed-prc feature, above, is enabled only for a
  197. // release build (OPTIMIZE = 4). In a normal development environment
  198. // (OPTIMIZE < 4), any prc file can set any config variable, whether
  199. // or not it is signed. Set this variable true (nonempty) or false
  200. // (empty) to explicitly enable or disable this feature.
  201. #defer PRC_RESPECT_TRUST_LEVEL $[= $[OPTIMIZE],4]
  202. // If trust level is in effect, this specifies the default trust level
  203. // for any legacy (Dconfig) config variables (that is, variables
  204. // created using the config.GetBool(), etc. interface, rather than the
  205. // newer ConfigVariableBool interface).
  206. #defer PRC_DCONFIG_TRUST_LEVEL 0
  207. // If trust level is in effect, you may globally increment the
  208. // (mis)trust level of all variables by the specified amount.
  209. // Incrementing this value by 1 will cause all variables to require at
  210. // least a level 1 signature.
  211. #define PRC_INC_TRUST_LEVEL 0
  212. // Similarly, the descriptions are normally saved only in a
  213. // development build, not in a release build. Set this value true to
  214. // explicitly save them anyway.
  215. #defer PRC_SAVE_DESCRIPTIONS $[< $[OPTIMIZE],4]
  216. // This is the end of the PRC variable customization section. The
  217. // remaining variables are of general interest to everyone.
  218. // You may define this to build or develop the plugin.
  219. //#define HAVE_P3D_PLUGIN 1
  220. // You may define both of these to build or develop the Panda3D
  221. // rtdist, the environment packaged up for distribution with the
  222. // plugin.
  223. //#define PANDA_PACKAGE_VERSION local_dev
  224. //#define PANDA_PACKAGE_HOST_URL http://some.url/
  225. #defer HAVE_P3D_RTDIST $[PANDA_PACKAGE_HOST_URL]
  226. // NOTE: In the following, to indicate "yes" to a yes/no question,
  227. // define the variable to be a nonempty string. To indicate "no",
  228. // define the variable to be an empty string.
  229. // Many of the HAVE_* variables are defined in terms of expressions
  230. // based on the paths and library names, etc., defined above. These
  231. // are defined using the "defer" command, so that they are not
  232. // evaluated right away, giving the user an opportunity to redefine
  233. // the variables they depend on, or to redefine the HAVE_* variables
  234. // themselves (you can explicitly define a HAVE_* variable to some
  235. // nonempty string to force the package to be marked as installed).
  236. // Do you want to generate a Python-callable interrogate interface?
  237. // This is only necessary if you plan to make calls into Panda from a
  238. // program written in Python. This is done only if HAVE_PYTHON,
  239. // below, is also true.
  240. #define INTERROGATE_PYTHON_INTERFACE 1
  241. // Define this true to use the new interrogate feature to generate
  242. // Python-native objects directly, rather than requiring a separate
  243. // FFI step. This loads and runs much more quickly than the original
  244. // mechanism. Define this false (that is, empty) to use the original
  245. // interfaces.
  246. #define PYTHON_NATIVE 1
  247. // Do you want to generate a C-callable interrogate interface? This
  248. // generates an interface similar to the Python interface above, with
  249. // a C calling convention. It should be useful for most other kinds
  250. // of scripting language; the VR Studio used to use this to make calls
  251. // into Panda from Squeak. This is not presently used by any VR
  252. // Studio code.
  253. #define INTERROGATE_C_INTERFACE
  254. // Do you even want to build interrogate at all? This is the program
  255. // that reads our C++ source files and generates one of the above
  256. // interfaces. If you won't be building the interfaces, you don't
  257. // need the program.
  258. #defer HAVE_INTERROGATE $[or $[INTERROGATE_PYTHON_INTERFACE],$[INTERROGATE_C_INTERFACE]]
  259. // What additional options should be passed to interrogate when
  260. // generating either of the above two interfaces? Generally, you
  261. // probably don't want to mess with this.
  262. #define INTERROGATE_OPTIONS -fnames -string -refcount -assert
  263. // What's the name of the interrogate binary to run? The default
  264. // specified is the one that is built as part of DTOOL. If you have a
  265. // prebuilt binary standing by (for instance, one built opt4), specify
  266. // its name instead.
  267. #define INTERROGATE interrogate
  268. #define INTERROGATE_MODULE interrogate_module
  269. // Is Python installed, and should Python interfaces be generated? If
  270. // Python is installed, which directory is it in?
  271. #define PYTHON_IPATH /usr/include/python2.4
  272. #define PYTHON_LPATH
  273. #define PYTHON_FPATH
  274. #define PYTHON_COMMAND python
  275. #defer PYTHON_DEBUG_COMMAND $[PYTHON_COMMAND]$[if $[WINDOWS_PLATFORM],_d]
  276. #define PYTHON_FRAMEWORK
  277. #defer HAVE_PYTHON $[or $[PYTHON_FRAMEWORK],$[isdir $[PYTHON_IPATH]]]
  278. // By default, we'll assume the user only wants to run with Debug
  279. // python if he has to--that is, on Windows when building a debug build.
  280. #defer USE_DEBUG_PYTHON $[and $[< $[OPTIMIZE],3],$[WINDOWS_PLATFORM]]
  281. // Define the default set of libraries to be instrumented by
  282. // genPyCode. You may wish to add to this list to add your own
  283. // libraries, or if you want to use some of the more obscure
  284. // interfaces like libpandaegg and libpandafx.
  285. #defer GENPYCODE_LIBS libpandaexpress libpanda libpandaphysics libdirect libpandafx libp3vision $[if $[HAVE_ODE],libpandaode]
  286. // Normally, Python source files are copied into the INSTALL_LIB_DIR
  287. // defined above, along with the compiled C++ library objects, when
  288. // you make install. If you prefer not to copy these Python source
  289. // files, but would rather run them directly out of the source
  290. // directory (presumably so you can develop them and make changes
  291. // without having to reinstall), comment out this definition and put
  292. // your source directory on your PYTHONPATH.
  293. #define INSTALL_PYTHON_SOURCE 1
  294. // Do you want to compile in support for tracking memory usage? This
  295. // enables you to define the variable "track-memory-usage" at runtime
  296. // to help track memory leaks, and also report total memory usage on
  297. // PStats. There is some small overhead for having this ability
  298. // available, even if it is unused.
  299. #defer DO_MEMORY_USAGE $[<= $[OPTIMIZE], 3]
  300. // This option compiles in support for simulating network delay via
  301. // the min-lag and max-lag prc variables. It adds a tiny bit of
  302. // overhead even when it is not activated, so it is typically enabled
  303. // only in a development build.
  304. #defer SIMULATE_NETWORK_DELAY $[<= $[OPTIMIZE], 3]
  305. // This option compiles in support for immediate-mode OpenGL
  306. // rendering. Since this is normally useful only for researching
  307. // buggy drivers, and since there is a tiny bit of per-primitive
  308. // overhead to have this option available even if it is unused, it is
  309. // by default enabled only in a development build. This has no effect
  310. // on DirectX rendering.
  311. #defer SUPPORT_IMMEDIATE_MODE $[<= $[OPTIMIZE], 3]
  312. // Do you want to compile in support for pipelining? This enables
  313. // setting and accessing multiple different copies of frame-specific
  314. // data stored in nodes, etc. This is necessary, in conjunction with
  315. // HAVE_THREADS, to implement threaded multistage rendering in Panda.
  316. // However, compiling this option in does add some additional runtime
  317. // overhead even if it is not used. By default, we enable pipelining
  318. // whenever threads are enabled, assuming that if you have threads,
  319. // you also want to use pipelining. We also enable it at OPTIMIZE
  320. // level 1, since that enables additional runtime checks.
  321. //#defer DO_PIPELINING $[or $[<= $[OPTIMIZE], 1],$[HAVE_THREADS]]
  322. // Actually, let's *not* assume that threading implies pipelining, at
  323. // least not until pipelining is less of a performance hit.
  324. //#defer DO_PIPELINING $[<= $[OPTIMIZE], 1]
  325. // Pipelining is a little broken right now. Turn it off altogether
  326. // for now.
  327. #defer DO_PIPELINING
  328. // Panda contains some experimental code to compile for IPhone. This
  329. // requires the Apple IPhone SDK, which is currently only available
  330. // for OS X platforms. Set this to either "iPhoneSimulator" or
  331. // "iPhoneOS". Note that this is still *experimental* and incomplete!
  332. // Don't enable this unless you know what you're doing!
  333. #define BUILD_IPHONE
  334. // Do you want to use one of the alternative malloc implementations?
  335. // This is almost always a good idea on Windows, where the standard
  336. // malloc implementation appears to be pretty poor, but probably
  337. // doesn't matter much on Linux (which is likely to implement
  338. // ptmalloc2 anyway). We always define this by default on Windows; on
  339. // Linux, we define it by default only when DO_MEMORY_USAGE is enabled
  340. // (since in that case, we'll be paying the overhead for the extra
  341. // call anyway) or when HAVE_THREADS is not defined (since the
  342. // non-thread-safe dlmalloc is a tiny bit faster than the system
  343. // library).
  344. // In hindsight, let's not enable this at all. It just causes
  345. // problems.
  346. //#defer ALTERNATIVE_MALLOC $[or $[WINDOWS_PLATFORM],$[DO_MEMORY_USAGE],$[not $[HAVE_THREADS]]]
  347. #define ALTERNATIVE_MALLOC
  348. // Define this true to use the DELETED_CHAIN macros, which support
  349. // fast re-use of existing allocated blocks, minimizing the low-level
  350. // calls to malloc() and free() for frequently-created and -deleted
  351. // objects. There's usually no reason to set this false, unless you
  352. // suspect a bug in Panda's memory management code.
  353. #define USE_DELETED_CHAIN 1
  354. // Define this true to build the low-level native network
  355. // implementation. Normally this should be set true.
  356. #define WANT_NATIVE_NET 1
  357. #define NATIVE_NET_IPATH
  358. #define NATIVE_NET_LPATH
  359. #define NATIVE_NET_LIBS $[if $[WINDOWS_PLATFORM],wsock32.lib]
  360. // Do you want to build the high-level network interface? This layers
  361. // on top of the low-level native_net interface, specified above.
  362. // Normally, if you build NATIVE_NET, you will also build NET.
  363. #defer HAVE_NET $[WANT_NATIVE_NET]
  364. // Do you want to build the egg loader? Usually there's no reason to
  365. // avoid building this, unless you really want to make a low-footprint
  366. // build (such as, for instance, for the iPhone).
  367. #define HAVE_EGG 1
  368. // Is a third-party STL library installed, and where? This is only
  369. // necessary if the default include and link lines that come with the
  370. // compiler don't provide adequate STL support. At least some form of
  371. // STL is absolutely required in order to build Panda.
  372. #define STL_IPATH
  373. #define STL_LPATH
  374. #define STL_CFLAGS
  375. #define STL_LIBS
  376. // Does your STL library provide hashed associative containers like
  377. // hash_map and hash_set? Define this true if you have a nonstandard
  378. // STL library that provides these, like Visual Studio .NET's. (These
  379. // hashtable containers are not part of the C++ standard yet, but the
  380. // Dinkum STL library that VC7 ships with includes a preliminary
  381. // implementation that Panda can optionally use.) For now, we assume
  382. // you have this by default only on a Windows platform.
  383. // On second thought, it turns out that this API is still too
  384. // volatile. The interface seems to have changed with the next
  385. // version of .NET, and it didn't present any measureable performance
  386. // gain anyway. Never mind.
  387. #define HAVE_STL_HASH
  388. // Is OpenSSL installed, and where?
  389. #define OPENSSL_IPATH /usr/local/ssl/include
  390. #define OPENSSL_LPATH /usr/local/ssl/lib
  391. #define OPENSSL_LIBS ssl crypto
  392. #defer HAVE_OPENSSL $[libtest $[OPENSSL_LPATH],$[OPENSSL_LIBS]]
  393. // Redefine this to empty if your version of OpenSSL is prior to 0.9.7.
  394. #define OPENSSL_097 1
  395. // Define this true to include the OpenSSL code to report verbose
  396. // error messages when they occur.
  397. #defer REPORT_OPENSSL_ERRORS $[< $[OPTIMIZE], 4]
  398. // Is libjpeg installed, and where?
  399. #define JPEG_IPATH
  400. #define JPEG_LPATH
  401. #define JPEG_LIBS jpeg
  402. #defer HAVE_JPEG $[libtest $[JPEG_LPATH],$[JPEG_LIBS]]
  403. // Is libpng installed, and where?
  404. #define PNG_IPATH
  405. #define PNG_LPATH
  406. #define PNG_LIBS png
  407. #defer HAVE_PNG $[libtest $[PNG_LPATH],$[PNG_LIBS]]
  408. // Is libtiff installed, and where?
  409. #define TIFF_IPATH
  410. #define TIFF_LPATH
  411. #define TIFF_LIBS tiff z
  412. #defer HAVE_TIFF $[libtest $[TIFF_LPATH],$[TIFF_LIBS]]
  413. // These image file formats don't require the assistance of a
  414. // third-party library to read and write, so there's normally no
  415. // reason to disable them in the build, unless you are looking to
  416. // reduce the memory footprint.
  417. #define HAVE_SGI_RGB 1
  418. #define HAVE_TGA 1
  419. #define HAVE_IMG 1
  420. #define HAVE_SOFTIMAGE_PIC 1
  421. #define HAVE_BMP 1
  422. #define HAVE_PNM 1
  423. // Is libtar installed, and where? This is used to optimize patch
  424. // generation against tar files.
  425. #define TAR_IPATH
  426. #define TAR_LPATH
  427. #define TAR_LIBS tar
  428. #defer HAVE_TAR $[libtest $[TAR_LPATH],$[TAR_LIBS]]
  429. // Is libfftw installed, and where?
  430. #define FFTW_IPATH /opt/local/include
  431. #define FFTW_LPATH /opt/local/lib
  432. #define FFTW_LIBS rfftw fftw
  433. #defer HAVE_FFTW $[libtest $[FFTW_LPATH],$[FFTW_LIBS]]
  434. // This is because darwinport's version of the fftw lib is called
  435. // drfftw instead of rfftw.
  436. #defer PHAVE_DRFFTW_H $[libtest $[FFTW_LPATH],drfftw]
  437. // Is libsquish installed, and where?
  438. #define SQUISH_IPATH /usr/local/include
  439. #define SQUISH_LPATH /usr/local/lib
  440. #define SQUISH_LIBS squish
  441. #defer HAVE_SQUISH $[libtest $[SQUISH_LPATH],$[SQUISH_LIBS]]
  442. // Is Berkeley DB installed, and where? Presently, this is only used
  443. // for some applications (egg-optchar in particular) in Pandatool, and
  444. // it is completely optional there. If available, egg-optchar takes
  445. // advantage of it to allow the optimization of very large numbers of
  446. // models in one pass, that might otherwise exceed available memory.
  447. // Actually, this isn't even true anymore. At the time of this writing,
  448. // no system in Panda makes use of Berkeley DB. So don't bother to
  449. // define this.
  450. #define BDB_IPATH
  451. #define BDB_LPATH
  452. #define BDB_LIBS db db_cxx
  453. #defer HAVE_BDB $[libtest $[BDB_LPATH],$[BDB_LIBS]]
  454. // Is Cg installed, and where?
  455. #if $[WINDOWS_PLATFORM]
  456. #define CG_IPATH
  457. #define CG_LPATH
  458. #define CG_LIBS cg.lib
  459. #else
  460. #define CG_IPATH
  461. #define CG_LPATH
  462. #define CG_LIBS Cg
  463. #endif
  464. #define CG_FRAMEWORK
  465. #defer HAVE_CG $[or $[CG_FRAMEWORK],$[libtest $[CG_LPATH],$[CG_LIBS]]]
  466. // Is CgGL installed, and where?
  467. #defer CGGL_IPATH $[CG_IPATH]
  468. #defer CGGL_LPATH $[CG_LPATH]
  469. #define CGGL_LIBS $[if $[WINDOWS_PLATFORM],cgGL.lib,CgGL]
  470. #defer HAVE_CGGL $[or $[CGGL_FRAMEWORK],$[and $[HAVE_CG],$[libtest $[CGGL_LPATH],$[CGGL_LIBS]]]]
  471. // Is CgDX8 installed, and where?
  472. #defer CGDX8_IPATH $[CG_IPATH]
  473. #defer CGDX8_LPATH $[CG_LPATH]
  474. #define CGDX8_LIBS $[if $[WINDOWS_PLATFORM],cgD3D8.lib,CgDX8]
  475. #defer HAVE_CGDX8 $[and $[HAVE_CG],$[libtest $[CGDX8_LPATH],$[CGDX8_LIBS]]]
  476. // Is CgDX9 installed, and where?
  477. #defer CGDX9_IPATH $[CG_IPATH]
  478. #defer CGDX9_LPATH $[CG_LPATH]
  479. #define CGDX9_LIBS $[if $[WINDOWS_PLATFORM],cgD3D9.lib,CgDX9]
  480. #defer HAVE_CGDX9 $[and $[HAVE_CG],$[libtest $[CGDX9_LPATH],$[CGDX9_LIBS]]]
  481. // Is CgDX10 installed, and where?
  482. #defer CGDX10_IPATH $[CG_IPATH]
  483. #defer CGDX10_LPATH $[CG_LPATH]
  484. #define CGDX10_LIBS $[if $[WINDOWS_PLATFORM],cgD3D10.lib,CgDX10]
  485. #defer HAVE_CGDX10 $[and $[HAVE_CG],$[libtest $[CGDX10_LPATH],$[CGDX10_LIBS]]]
  486. // Is VRPN installed, and where?
  487. #define VRPN_IPATH
  488. #define VRPN_LPATH
  489. #define VRPN_LIBS
  490. #defer HAVE_VRPN $[libtest $[VRPN_LPATH],$[VRPN_LIBS]]
  491. // Is HELIX installed, and where?
  492. #define HELIX_IPATH
  493. #define HELIX_LPATH
  494. #define HELIX_LIBS
  495. #defer HAVE_HELIX $[libtest $[HELIX_LPATH],$[HELIX_LIBS]]
  496. // Is ZLIB installed, and where?
  497. #define ZLIB_IPATH
  498. #define ZLIB_LPATH
  499. #define ZLIB_LIBS z
  500. #defer HAVE_ZLIB $[libtest $[ZLIB_LPATH],$[ZLIB_LIBS]]
  501. // Is OpenGL installed, and where? This should include libGL as well
  502. // as libGLU, if they are in different places.
  503. #defer GL_IPATH /usr/include
  504. #defer GL_LPATH
  505. #defer GL_LIBS
  506. #defer GLU_LIBS
  507. #if $[WINDOWS_PLATFORM]
  508. #define GL_LIBS opengl32.lib
  509. #define GLU_LIBS glu32.lib
  510. #elif $[OSX_PLATFORM]
  511. #defer GL_FRAMEWORK OpenGL
  512. #else
  513. #defer GL_LPATH /usr/X11R6/lib
  514. #defer GL_LIBS GL
  515. #defer GLU_LIBS GLU
  516. #endif
  517. #defer HAVE_GL $[libtest $[GL_LPATH],$[GL_LIBS]]
  518. // GLU is an auxiliary library that is usually provided with OpenGL,
  519. // but is sometimes missing (e.g. the default FC5 installation).
  520. #defer HAVE_GLU $[libtest $[GL_LPATH],$[GLU_LIBS]]
  521. // If you are having trouble linking in OpenGL extension functions at
  522. // runtime for some reason, you can set this variable. This defines
  523. // the minimum runtime version of OpenGL that Panda will require.
  524. // Setting it to a higher version will compile in hard references to
  525. // the extension functions provided by that OpenGL version and below,
  526. // which may reduce runtime portability to other systems, but it will
  527. // avoid issues with getting extension function pointers. It also, of
  528. // course, requires you to install the OpenGL header files and
  529. // compile-time libraries appropriate to the version you want to
  530. // compile against.
  531. // The variable is the major, minor version of OpenGL, separated by a
  532. // space (instead of a dot). Thus, "1 1" means OpenGL version 1.1.
  533. #define MIN_GL_VERSION 1 1
  534. // Is Mesa installed separately from OpenGL? Mesa is an open-source
  535. // software-only OpenGL renderer. Panda can link with it
  536. // independently from OpenGL (and if Mesa is built statically, and/or
  537. // with -DUSE_MGL_NAMESPACE declared to rename gl* to mgl*, it can
  538. // switch between the system OpenGL implementation and the Mesa
  539. // implementation at runtime).
  540. // Also, Mesa includes some core libraries (in libOSMesa.so) that
  541. // allow totally headless rendering, handy if you want to run a
  542. // renderer as a batch service, and you don't want to insist that a
  543. // user be logged on to the desktop or otherwise deal with X11 or
  544. // Windows.
  545. // If you define HAVE_MESA here, and the appropriate paths to headers
  546. // and libraries, then Panda will build libmesadisplay, which can be
  547. // used in lieu of libpandagl or libpandadx to do rendering. However,
  548. // for most applications, you don't need to do this, since (a) if you
  549. // have hardware rendering capability, you probably don't want to use
  550. // Mesa, since it's software-only, and (b) if you don't have hardware
  551. // rendering, you can install Mesa as the system's OpenGL
  552. // implementation, so you can just use the normal libpandagl. You
  553. // only need to define HAVE_MESA if you want to run totally headless,
  554. // or if you want to be able to easily switch between Mesa and the
  555. // system OpenGL implementation at runtime. If you compiled Mesa with
  556. // USE_MGL_NAMESPACE defined, define MESA_MGL here.
  557. #define MESA_IPATH
  558. #define MESA_LPATH
  559. #define MESA_LIBS
  560. #define MESA_MGL
  561. #defer HAVE_MESA $[libtest $[MESA_LPATH],$[MESA_LIBS]]
  562. // Similar to MIN_GL_VERSION, above.
  563. #define MIN_MESA_VERSION 1 1
  564. // Do you want to build tinydisplay, a light and fast software
  565. // renderer built into Panda, based on TinyGL? This isn't as
  566. // full-featured as Mesa, but it is many times faster, and in fact
  567. // competes favorably with hardware-accelerated integrated graphics
  568. // cards for raw speed (though the hardware-accelerated output looks
  569. // better).
  570. #define HAVE_TINYDISPLAY 1
  571. // Is OpenGL ES 1.x installed, and where? This is a minimal subset of
  572. // OpenGL for mobile devices.
  573. #define GLES_IPATH
  574. #define GLES_LPATH
  575. #define GLES_LIBS GLES_cm
  576. #defer HAVE_GLES $[libtest $[GLES_LPATH],$[GLES_LIBS]]
  577. // OpenGL ES 2.x is a version of OpenGL ES but without fixed-function
  578. // pipeline - everything is programmable there.
  579. #define GLES2_IPATH
  580. #define GLES2_LPATH
  581. #define GLES2_LIBS GLESv2
  582. #defer HAVE_GLES2 $[libtest $[GLES2_LPATH],$[GLES2_LIBS]]
  583. // EGL is like GLX, but for OpenGL ES.
  584. #defer EGL_IPATH
  585. #defer EGL_LPATH
  586. #defer EGL_LIBS EGL
  587. #defer HAVE_EGL $[libtest $[EGL_LPATH],$[EGL_LIBS]]
  588. // The SDL library is useful only for tinydisplay, and is not even
  589. // required for that, as tinydisplay is also supported natively on
  590. // each supported platform.
  591. #define SDL_IPATH
  592. #define SDL_LPATH
  593. #define SDL_LIBS
  594. #defer HAVE_SDL $[libtest $[SDL_LPATH],$[SDL_LIBS]]
  595. // X11 may need to be linked against for tinydisplay, but probably
  596. // only on a Linux platform.
  597. #define X11_IPATH
  598. #define X11_LPATH /usr/X11R6/lib
  599. #define X11_LIBS X11
  600. #defer HAVE_X11 $[and $[IS_LINUX],$[libtest $[X11_LPATH],$[X11_LIBS]]]
  601. // This defines if we have XF86DGA installed. This enables smooth
  602. // FPS-style mouse in x11display, when mouse mode M_relative is used.
  603. #define XF86DGA_IPATH /usr/include/X11/extensions
  604. #define XF86DGA_LPATH /usr/lib
  605. #define XF86DGA_LIBS Xxf86dga
  606. #defer HAVE_XF86DGA $[libtest $[XF86DGA_LPATH],$[XF86DGA_LIBS]]
  607. // This defines if we have XF86DGA installed. This
  608. // enables resolution switching in x11display.
  609. #define XRANDR_IPATH /usr/include/X11/extensions
  610. #define XRANDR_LPATH /usr/lib
  611. #define XRANDR_LIBS Xrandr
  612. #defer HAVE_XRANDR $[libtest $[XRANDR_LPATH],$[XRANDR_LIBS]]
  613. // How about GLX?
  614. #define GLX_IPATH
  615. #define GLX_LPATH
  616. #defer HAVE_GLX $[and $[HAVE_GL],$[UNIX_PLATFORM]]
  617. // glXGetProcAddress() is the function used to query OpenGL extensions
  618. // under X. However, this function is itself an extension function,
  619. // leading to a chicken-and-egg problem. One approach is to compile
  620. // in a hard reference to the function, another is to pull the
  621. // function address from the dynamic runtime. Each has its share of
  622. // problems. Panda's default behavior is to pull it from the dynamic
  623. // runtime; define this to compile in a reference to the function.
  624. // This is only relevant from platforms using OpenGL under X (for
  625. // instance, Linux).
  626. #define LINK_IN_GLXGETPROCADDRESS
  627. // Should we try to build the WGL interface?
  628. #defer HAVE_WGL $[and $[HAVE_GL],$[WINDOWS_PLATFORM]]
  629. // Is DirectX8 available, and should we try to build with it?
  630. #define DX8_IPATH
  631. #define DX8_LPATH
  632. #define DX8_LIBS d3d8.lib d3dx8.lib dxerr8.lib
  633. #defer HAVE_DX8 $[libtest $[DX8_LPATH],$[DX8_LIBS]]
  634. // Is DirectX9 available, and should we try to build with it?
  635. #define DX9_IPATH
  636. #define DX9_LPATH
  637. #define DX9_LIBS d3d9.lib d3dx9.lib dxerr9.lib
  638. #defer HAVE_DX9 $[libtest $[DX9_LPATH],$[DX9_LIBS]]
  639. // Is OpenCV installed, and where?
  640. #define OPENCV_IPATH /usr/local/include/opencv
  641. #define OPENCV_LPATH /usr/local/lib
  642. #define OPENCV_LIBS $[if $[WINDOWS_PLATFORM],cv.lib highgui.lib cxcore.lib,cv highgui cxcore]
  643. #defer HAVE_OPENCV $[libtest $[OPENCV_LPATH],$[OPENCV_LIBS]]
  644. // Is FFMPEG installed, and where?
  645. #define FFMPEG_IPATH /usr/include/ffmpeg
  646. #define FFMPEG_LPATH
  647. #define FFMPEG_LIBS $[if $[WINDOWS_PLATFORM],libavcodec.lib libavformat.lib libavutil.lib libgcc.lib libswscale.lib,avcodec avformat avutil swscale]
  648. #defer HAVE_FFMPEG $[libtest $[FFMPEG_LPATH],$[FFMPEG_LIBS]]
  649. // Define this if you compiled ffmpeg with libswscale enabled.
  650. #define HAVE_SWSCALE 1
  651. // Is ODE installed, and where?
  652. #define ODE_IPATH
  653. #define ODE_LPATH
  654. #define ODE_LIBS $[if $[WINDOWS_PLATFORM],ode.lib,ode]
  655. #defer HAVE_ODE $[libtest $[ODE_LPATH],$[ODE_LIBS]]
  656. // Is Awesomium installed, and where?
  657. #define AWESOMIUM_IPATH
  658. #define AWESOMIUM_LPATH
  659. #if $[OSX_PLATFORM]
  660. #define AWESOMIUM_LIBS
  661. #else
  662. #define AWESOMIUM_LIBS $[if $[WINDOWS_PLATFORM],awesomium.lib,awesomium]
  663. #endif
  664. #define AWESOMIUM_FRAMEWORK
  665. #defer HAVE_AWESOMIUM $[libtest $[AWESOMIUM_LPATH],$[AWESOMIUM_LIBS]]
  666. // Mozilla's so-called Gecko SDK, a.k.a. Xulrunner SDK, implements
  667. // NPAPI, Mozilla's semi-standard API to build a web plugin for
  668. // Firefox and other Mozilla-based browsers.
  669. #define NPAPI_IPATH
  670. #define NPAPI_LPATH
  671. #define NPAPI_LIBS
  672. #define HAVE_NPAPI
  673. #define HAVE_ACTIVEX $[WINDOWS_PLATFORM]
  674. // Do you want to build the DirectD tools for starting Panda clients
  675. // remotely? This only affects the direct tree. Enabling this may
  676. // cause libdirect.dll to fail to load on Win98 clients.
  677. #define HAVE_DIRECTD
  678. // If your system supports the Posix threads interface
  679. // (pthread_create(), etc.), define this true.
  680. #define HAVE_POSIX_THREADS $[and $[isfile /usr/include/pthread.h],$[not $[WINDOWS_PLATFORM]]]
  681. // Do you want to build in support for threading (multiprocessing)?
  682. // Building in support for threading will enable Panda to take
  683. // advantage of multiple CPU's if you have them (and if the OS
  684. // supports kernel threads running on different CPU's), but it will
  685. // slightly slow down Panda for the single CPU case, so this is not
  686. // enabled by default.
  687. #define HAVE_THREADS
  688. #define THREADS_LIBS $[if $[not $[WINDOWS_PLATFORM]],pthread]
  689. // If you have enabled threading support with HAVE_THREADS, the
  690. // default is to use OS-provided threading constructs, which usually
  691. // allows for full multiprogramming support (i.e. the program can take
  692. // advantage of multiple CPU's). On the other hand, compiling in this
  693. // full OS-provided support can impose some substantial runtime
  694. // overhead, making the application run slower on a single-CPU
  695. // machine. To avoid this overhead, but still gain some of the basic
  696. // functionality of threads (such as support for asynchronous model
  697. // loads), define SIMPLE_THREADS true in addition to HAVE_THREADS.
  698. // This will compile in a homespun cooperative threading
  699. // implementation that runs strictly on one CPU, adding very little
  700. // overhead over plain single-threaded code.
  701. #define SIMPLE_THREADS
  702. // If this is defined true, then OS threading constructs will be used
  703. // (if available) to perform context switches in the SIMPLE_THREADS
  704. // model, instead of strictly user-space calls like setjmp/longjmp. A
  705. // mutex is used to ensure that only one thread runs at a time, so the
  706. // normal SIMPLE_THREADS optimizations still apply, and the normal
  707. // SIMPLE_THREADS scheduler is used to switch between threads (instead
  708. // of the OS scheduler). This may be more portable and more reliable,
  709. // but it is a weird hybrid between user-space threads and os-provided
  710. // threads. This has meaning only if SIMPLE_THREADS is also defined.
  711. #define OS_SIMPLE_THREADS 1
  712. // Whether threading is defined or not, you might want to validate the
  713. // thread and synchronization operations. With threading enabled,
  714. // defining this will also enable deadlock detection and logging.
  715. // Without threading enabled, defining this will simply verify that a
  716. // mutex is not recursively locked. There is, of course, additional
  717. // run-time overhead for these tests.
  718. #defer DEBUG_THREADS $[<= $[OPTIMIZE], 2]
  719. // Define this true to implement mutexes and condition variables via
  720. // user-space spinlocks, instead of via OS-provided constructs. This
  721. // is almost never a good idea, except possibly in very specialized
  722. // cases when you are building Panda for a particular application, on
  723. // a particular platform, and you are sure you won't have more threads
  724. // than CPU's. Even then, OS-based locking is probably better.
  725. #define MUTEX_SPINLOCK
  726. // Define this to use the PandaFileStream interface for pifstream,
  727. // pofstream, and pfstream. This is a customized file buffer that may
  728. // have slightly better newline handling, but its primary benefit is
  729. // that it supports SIMPLE_THREADS better by blocking just the active
  730. // "thread" when I/O is delayed, instead of blocking the entire
  731. // process. Normally, there's no reason to turn this off, unless you
  732. // suspect a bug in Panda.
  733. #define USE_PANDAFILESTREAM 1
  734. // Do you want to build the PStats interface, for graphical run-time
  735. // performance statistics? This requires NET to be available. By
  736. // default, we don't build PStats when OPTIMIZE = 4, although this is
  737. // possible.
  738. #defer DO_PSTATS $[or $[and $[HAVE_NET],$[< $[OPTIMIZE], 4]], $[DO_PSTATS]]
  739. // Do you want to type-check downcasts? This is a good idea during
  740. // development, but does impose some run-time overhead.
  741. #defer DO_DCAST $[< $[OPTIMIZE], 3]
  742. // Do you want to build the debugging tools for recording and
  743. // visualizing intersection tests by the collision system? Enabling
  744. // this increases runtime collision overhead just a tiny bit.
  745. #defer DO_COLLISION_RECORDING $[< $[OPTIMIZE], 4]
  746. // Do you want to include the "debug" and "spam" Notify messages?
  747. // Normally, these are stripped out when we build with OPTIMIZE = 4, but
  748. // sometimes it's useful to keep them around. Redefine this in your
  749. // own Config.pp to achieve that.
  750. #defer NOTIFY_DEBUG $[< $[OPTIMIZE], 4]
  751. // Do you want to build the audio interface?
  752. #define HAVE_AUDIO 1
  753. // The Tau profiler provides a multiplatform, thread-aware profiler.
  754. // To use it, define USE_TAU to 1, and set TAU_MAKEFILE to the
  755. // filename that contains the Tau-provided Makefile for your platform.
  756. // Then rebuild the code with ppremake; make install. Alternatively,
  757. // instead of setting TAU_MAKEFILE, you can also define TAU_ROOT and
  758. // PDT_ROOT, to point to the root directory of the tau and pdtoolkit
  759. // installations, respectively; then the individual Tau components
  760. // will be invoked directly. This is especially useful on Windows,
  761. // where there is no Tau Makefile.
  762. #define TAU_MAKEFILE
  763. #define TAU_ROOT
  764. #define PDT_ROOT
  765. #define TAU_OPTS -optKeepFiles
  766. #define TAU_CFLAGS -D_GNU_SOURCE
  767. #define USE_TAU
  768. // Info for the RAD game tools, Miles Sound System
  769. // note this may be overwritten in wintools Config.pp
  770. #define RAD_MSS_IPATH /usr/include/Miles6/include
  771. #define RAD_MSS_LPATH /usr/lib/Miles6/lib/win
  772. #define RAD_MSS_LIBS Mss32
  773. #defer HAVE_RAD_MSS $[libtest $[RAD_MSS_LPATH],$[RAD_MSS_LIBS]]
  774. // Info for the Fmod audio engine
  775. #define FMODEX_IPATH /usr/local/fmod/api/inc
  776. #define FMODEX_LPATH /usr/local/fmod/api/lib
  777. #define FMODEX_LIBS $[if $[libtest $[FMODEX_LPATH],fmodex64],fmodex64,fmodex]
  778. #defer HAVE_FMODEX $[libtest $[FMODEX_LPATH],$[FMODEX_LIBS]]
  779. // Info for the OpenAL audio engine
  780. #define OPENAL_IPATH
  781. #define OPENAL_LPATH
  782. #if $[OSX_PLATFORM]
  783. #define OPENAL_LIBS
  784. #define OPENAL_FRAMEWORK OpenAL
  785. #else
  786. #define OPENAL_LIBS openal
  787. #define OPENAL_FRAMEWORK
  788. #endif
  789. #defer HAVE_OPENAL $[or $[OPENAL_FRAMEWORK],$[libtest $[OPENAL_LPATH],$[OPENAL_LIBS]]]
  790. // Info for the NVIDIA PhysX SDK
  791. #define PHYSX_IPATH
  792. #define PHYSX_LPATH
  793. #define PHYSX_LIBS $[if $[WINDOWS_PLATFORM],PhysXLoader.lib NxCharacter.lib NxCooking.lib NxExtensions.lib,PhysXLoader NxCharacter NxCooking]
  794. #defer HAVE_PHYSX $[libtest $[PHYSX_LPATH],$[PHYSX_LIBS]]
  795. // Info for http://www.sourceforge.net/projects/chromium
  796. #define CHROMIUM_IPATH /usr/include/chromium/include
  797. #define CHROMIUM_LPATH /usr/lib/chromium/bin/WINT_NT
  798. #define CHROMIUM_LIBS spuload
  799. #defer HAVE_CHROMIUM $[libtest $[CHROMIUM_LPATH],$[CHROMIUM_LIBS]]
  800. // Is gtk+-2 installed? This is only needed to build the pstats
  801. // program on Unix (or non-Windows) platforms.
  802. #define PKG_CONFIG pkg-config
  803. #define HAVE_GTK
  804. // Do we have Freetype 2.0 (or better)? If available, this package is
  805. // used to generate dynamic in-the-world text from font files.
  806. // On Unix, freetype comes with the freetype-config executable, which
  807. // tells us where to look for the various files. On Windows, we need to
  808. // supply this information explicitly.
  809. #defer FREETYPE_CONFIG $[if $[not $[WINDOWS_PLATFORM]],freetype-config]
  810. #defer HAVE_FREETYPE $[or $[libtest $[FREETYPE_LPATH],$[FREETYPE_LIBS]],$[bintest $[FREETYPE_CONFIG]]]
  811. #define FREETYPE_CFLAGS
  812. #define FREETYPE_IPATH
  813. #define FREETYPE_LPATH
  814. #define FREETYPE_LIBS
  815. // Define this true to compile in a default font, so every TextNode
  816. // will always have a font available without requiring the user to
  817. // specify one. Define it empty not to do this, saving a few
  818. // kilobytes on the generated library. Sorry, you can't pick a
  819. // particular font to be the default; it's hardcoded in the source
  820. // (although you can use the text-default-font prc variable to specify
  821. // a particular font file to load as the default, overriding the
  822. // compiled-in font).
  823. #define COMPILE_IN_DEFAULT_FONT 1
  824. // We use wxWidgets--the C++ library, not the Python library--for
  825. // building the application p3dcert, which is needed only when
  826. // building the plugin/runtime system. This uses a wx-config program,
  827. // similar to freetype, above.
  828. #defer WX_CONFIG $[if $[not $[WINDOWS_PLATFORM]],wx-config]
  829. #defer HAVE_WX $[or $[libtest $[WX_LPATH],$[WX_LIBS]],$[bintest $[WX_CONFIG]]]
  830. #define WX_CFLAGS
  831. #define WX_IPATH
  832. #define WX_LPATH
  833. #define WX_LIBS
  834. // Is Maya installed? This matters only to programs in PANDATOOL.
  835. // Also, as of Maya 5.0 it seems the Maya library will not compile
  836. // properly with optimize level 4 set (we get link errors with ostream).
  837. #define MAYA_LOCATION /usr/aw/maya
  838. #defer MAYA_LIBS $[if $[WINDOWS_PLATFORM],Foundation.lib OpenMaya.lib OpenMayaAnim.lib OpenMayaUI.lib,Foundation OpenMaya OpenMayaAnim OpenMayaUI]
  839. // Optionally define this to the value of LM_LICENSE_FILE that should
  840. // be set before invoking Maya.
  841. #define MAYA_LICENSE_FILE
  842. #defer HAVE_MAYA $[and $[<= $[OPTIMIZE], 3],$[isdir $[MAYA_LOCATION]/include/maya]]
  843. // Define this if your version of Maya is earlier than 5.0 (e.g. Maya 4.5).
  844. #define MAYA_PRE_5_0
  845. #define MAYA2EGG maya2egg
  846. // In the same fashion as mayaegg converter above, set softimage to egg converter as well
  847. #define SOFTIMAGE_LOCATION /c/Softimage/sdk_18sp2/SDK_1.8SP2/SAAPHIRE
  848. #defer SOFTIMAGE_LIBS SAA.lib
  849. #defer HAVE_SOFTIMAGE $[isdir $[SOFTIMAGE_LOCATION]/h]
  850. // Is FCollada installed? This is for the daeegg converter.
  851. #define FCOLLADA_IPATH /usr/local/include/fcollada
  852. #define FCOLLADA_LPATH /usr/local/lib
  853. #define FCOLLADA_LIBS FColladaSD
  854. #defer HAVE_FCOLLADA $[libtest $[FCOLLADA_LPATH],$[FCOLLADA_LIBS]]
  855. // Also for the ARToolKit library, for augmented reality
  856. #define ARTOOLKIT_IPATH
  857. #define ARTOOLKIT_LPATH
  858. #define ARTOOLKIT_LIBS $[if $[WINDOWS_PLATFORM],libAR.lib,AR]
  859. #defer HAVE_ARTOOLKIT $[libtest $[ARTOOLKIT_LPATH],$[ARTOOLKIT_LIBS]]
  860. // Define this to explicitly indicate the given platform string within
  861. // the resulting Panda runtime. Normally it is best to leave this
  862. // undefined, in which case Panda will determine the best value
  863. // automatically.
  864. #define DTOOL_PLATFORM
  865. // Define this to generate static libraries and executables, rather than
  866. // dynamic libraries.
  867. //#define LINK_ALL_STATIC yes
  868. // The panda source tree is made up of a bunch of component libraries
  869. // (e.g. express, downloader, pgraph, egg) which are ultimately
  870. // combined into a smaller group of meta libraries or metalibs
  871. // (e.g. libpandaexpress, libpanda, libpandaegg). Depending on your
  872. // build configuration, these component libraries might have their own
  873. // existence, or they might disappear completely and be contained
  874. // entirely within their metalibs. The former is more convenient for
  875. // rapid development, while the latter might be more convenient for
  876. // distribution.
  877. // Define this variable to compile and link each component as a
  878. // separate library so that the resulting metalibs are small and there
  879. // are many separate component libraries; leave it undefined to link
  880. // component object files directly into their containing metalibs so
  881. // that the resutling metalib files are large and component libraries
  882. // don't actually exist. The Windows has traditionally been built
  883. // with this cleared (because of the original Win32 STL requirements),
  884. // while the Unix build has traditionally been built with it set.
  885. // Changing this from the traditional platform-specific setting is not
  886. // 100% supported yet.
  887. #define BUILD_COMPONENTS $[not $[WINDOWS_PLATFORM]]
  888. // Define this to export the templates from the DLL. This is only
  889. // meaningful if LINK_ALL_STATIC is not defined, and we are building
  890. // on Windows. Some Windows compilers may not support this syntax.
  891. #defer EXPORT_TEMPLATES yes
  892. // Define USE_COMPILER to switch the particular compiler that should
  893. // be used. A handful of tokens are recognized, depending on BUILD_TYPE.
  894. // This may also be further customized within Global.$[BUILD_TYPE].pp.
  895. // If BUILD_TYPE is "unix", this may be one of:
  896. // GCC (gcc/g++)
  897. // MIPS (Irix MIPSPro compiler)
  898. //
  899. // If BUILD_TYPE is "msvc" or "gmsvc", this may be one of:
  900. // MSVC (Microsoft Visual C++ 6.0)
  901. // MSVC7 (Microsoft Visual C++ 7.0)
  902. // BOUNDS (BoundsChecker)
  903. // INTEL (Intel C/C++ compiler)
  904. #if $[WINDOWS_PLATFORM]
  905. #if $[eq $[USE_COMPILER],]
  906. #define USE_COMPILER MSVC7
  907. #endif
  908. #elif $[eq $[PLATFORM], Irix]
  909. #define USE_COMPILER MIPS
  910. #elif $[eq $[PLATFORM], Linux]
  911. #define USE_COMPILER GCC
  912. #elif $[OSX_PLATFORM]
  913. #define USE_COMPILER GCC
  914. #elif $[eq $[PLATFORM], FreeBSD]
  915. #define USE_COMPILER GCC
  916. #endif
  917. // Permission masks to install data and executable files,
  918. // respectively. This is only meaningful for Unix systems.
  919. #define INSTALL_UMASK_DATA 644
  920. #define INSTALL_UMASK_PROG 755
  921. // How to invoke bison and flex. Panda takes advantage of some
  922. // bison/flex features, and therefore specifically requires bison and
  923. // flex, not some other versions of yacc and lex. However, you only
  924. // need to have these programs if you need to make changes to the
  925. // bison or flex sources (see the next point, below).
  926. #defer BISON bison
  927. #defer FLEX flex
  928. // You may not even have bison and flex installed. If you don't, no
  929. // sweat; Panda ships with the pre-generated output of these programs,
  930. // so you don't need them unless you want to make changes to the
  931. // grammars themselves (files named *.yxx or *.lxx).
  932. #defer HAVE_BISON $[bintest $[BISON]]
  933. // How to invoke sed. A handful of make rules use this. Since some
  934. // platforms (specifically, non-Unix platforms like Windows) don't
  935. // have any kind of sed, ppremake performs some limited sed-like
  936. // functions. The default is to use ppremake in this capacity. In
  937. // this variable, $[source] is the name of the file to read, $[target]
  938. // is the name of the file to generate, and $[script] is the one-line
  939. // sed script to run.
  940. #defer SED ppremake -s "$[script]" <$[source] >$[target]
  941. // What directory name (within each source directory) should the .o
  942. // (or .obj) files be written to? This can be any name, and it can be
  943. // used to differentiate different builds within the same tree.
  944. // However, don't define this to be '.', or you will be very sad the
  945. // next time you run 'make clean'.
  946. //#defer ODIR Opt$[OPTIMIZE]-$[PLATFORM]$[USE_COMPILER]
  947. // ODIR_SUFFIX is optional, usually empty
  948. #defer ODIR Opt$[OPTIMIZE]-$[PLATFORM]$[ODIR_SUFFIX]
  949. // What is the normal extension of a compiled object file?
  950. #if $[WINDOWS_PLATFORM]
  951. #define OBJ .obj
  952. #else
  953. #define OBJ .o
  954. #endif
  955. //////////////////////////////////////////////////////////////////////
  956. // There are also some additional variables that control specific
  957. // compiler/platform features or characteristics, defined in the
  958. // platform specific file Config.platform.pp. Be sure to inspect
  959. // these variables for correctness too.
  960. //////////////////////////////////////////////////////////////////////