Config.pp 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944
  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. // ppremake is capable of generating makefiles for Unix compilers such
  10. // as gcc or SGI's MipsPRO compiler, as well as for Windows
  11. // environments like Microsoft's Visual C++. It can also,
  12. // potentially, generate Microsoft Developer's Studio project files
  13. // directly, although we haven't written the scripts to do this yet.
  14. // In principle, it can be extended to generate suitable build script
  15. // files for any number of different build environments.
  16. //
  17. // All of these build scripts can be tuned for a particular
  18. // environment via this file. This is the place for the user to
  19. // specify which external packages are installed and where, or to
  20. // enable or disable certain optional features. However, it is
  21. // suggested that rather than modify this file directly, you create a
  22. // custom file in your home directory and there redefine whatever
  23. // variables are appropriate, and set the environment variable
  24. // PPREMAKE_CONFIG to refer to it. In this way, you can easily get an
  25. // updated source tree (including a new Config.pp) without risking
  26. // accidentally losing your customizations. This also avoids having
  27. // to redefine the same variables in different packages (for instance,
  28. // in dtool and in panda).
  29. //
  30. // The syntax in this file resembles some hybrid between C++
  31. // preprocessor declarations and GNU make variables. This is the same
  32. // syntax used in the various ppremake system configure files; it's
  33. // designed to be easy to use as a macro language to generate
  34. // makefiles and their ilk.
  35. //
  36. // Some of the variables below are defined using the #define command,
  37. // and others are defined using #defer. The two are very similar in
  38. // their purpose; the difference is that, if the variable definition
  39. // includes references to other variables (e.g. $[varname]), then
  40. // #define will evaluate all of the other variable references
  41. // immediately and store the resulting expansion, while #defer will
  42. // store only the variable references themselves, and expand them when
  43. // the variable is later referenced. It is very similar to the
  44. // relationship between := and = in GNU Make.
  45. // dtool/Config.pp
  46. // In general, #defer is used in this file, to allow the user to
  47. // redefine critical variables in his or her own Config.pp file.
  48. // What kind of build scripts are we generating? This selects a
  49. // suitable template file from the ppremake system files. The
  50. // allowable choices, at present, are:
  51. //
  52. // unix - Generate makefiles suitable for most Unix platforms.
  53. // msvc - Generate Visual C++ project files (still a work in progress)
  54. // nmake - Generate makefiles for Microsoft Visual C++, using
  55. // Microsoft's nmake utility.
  56. // gmsvc - Generate makefiles similar to the above, using Microsoft
  57. // Visual C++, but uses the Cygwin-supplied GNU make
  58. // instead of Microsoft nmake. This is potentially
  59. // faster if you have multiple CPU's, since it supports
  60. // distributed make. It's a tiny bit slower if you're
  61. // not taking advantage of distributed make, because of
  62. // the overhead associated with Cygwin fork() calls.
  63. #if $[eq $[PLATFORM], Win32]
  64. #define BUILD_TYPE nmake
  65. #elif $[eq $[PLATFORM], Cygwin]
  66. #define BUILD_TYPE gmsvc
  67. #elif $[eq $[PLATFORM], osx]
  68. #define BUILD_TYPE unix
  69. #else
  70. #define BUILD_TYPE unix
  71. #endif
  72. // What is the default install directory for all trees in the Panda
  73. // suite? The default value for this variable is provided by
  74. // ppremake; on Unix machines it is the value of --prefix passed in to
  75. // the configure script, and on Windows machines the default is
  76. // hardcoded in config_msvc.h to C:\Panda3d.
  77. // You may also override this for a particular tree by defining a
  78. // variable name like DTOOL_INSTALL or PANDA_INSTALL. (The
  79. // INSTALL_DIR variable will have no effect if you are using the
  80. // ctattach tools to control your attachment to the trees; but this
  81. // will be the case only if you are a member of the VR Studio.)
  82. // #define INSTALL_DIR /usr/local/panda
  83. // If you intend to use Panda only as a Python module, you may find
  84. // the following define useful (but you should put in the correct path
  85. // to site-packages within your own installed Python). This will
  86. // install the Panda libraries into the standard Python search space
  87. // so that they can be accessed as Python modules. (Also see the
  88. // PYTHON_IPATH variable, below.)
  89. // If you don't do this, you can still use Panda as a Python module,
  90. // but you must put /usr/local/panda/lib (or $INSTALL_DIR/lib) on
  91. // your PYTHONPATH.
  92. // #define INSTALL_LIB_DIR /usr/lib/python2.2/site-packages
  93. // The character used to separate components of an OS-specific
  94. // directory name depends on the platform (it is '/' on Unix, '\' on
  95. // Windows). That character selection is hardcoded into Panda and
  96. // cannot be changed here. (Note that an internal Panda filename
  97. // always uses the forward slash, '/', to separate the components of a
  98. // directory name.)
  99. // There's a different character used to separate the complete
  100. // directory names in a search path specification. On Unix, the
  101. // normal convention is ':', on Windows, it has to be ';', because the
  102. // colon is already used to mark the drive letter. This character is
  103. // selectable here. Most users won't want to change this. If
  104. // multiple characters are placed in this string, any one of them may
  105. // be used as a separator character.
  106. #define DEFAULT_PATHSEP $[if $[WINDOWS_PLATFORM],;,:]
  107. // What level of compiler optimization/debug symbols should we build?
  108. // The various optimize levels are defined as follows:
  109. //
  110. // 1 - No compiler optimizations, full debug symbols
  111. // 2 - Full compiler optimizations, full debug symbols
  112. // (if the compiler supports this)
  113. // 3 - Full compiler optimizations, no debug symbols
  114. // 4 - Full optimizations, no debug symbols, and asserts removed
  115. //
  116. #define OPTIMIZE 3
  117. // Panda uses prc files for runtime configuration. There are many
  118. // compiled-in options to customize the behavior of the prc config
  119. // system; most users won't need to change any of them. Feel free to
  120. // skip over all of the PRC_* variables defined here.
  121. // The default behavior is to search for files names *.prc in the
  122. // directory specified by the PRC_DIR environment variable, and then
  123. // to search along all of the directories named by the PRC_PATH
  124. // environment variable. Either of these variables might be
  125. // undefined; if both of them are undefined, the default is to search
  126. // in the directory named here by DEFAULT_PRC_DIR.
  127. // By default, we specify the install/etc dir, which is where the
  128. // system-provided PRC files get copied to.
  129. #defer DEFAULT_PRC_DIR $[INSTALL_DIR]/etc
  130. // You can specify the names of the environment variables that are
  131. // used to specify the search location(s) for prc files at runtime.
  132. // These are space-separated lists of environment variable names.
  133. // Specify empty string for either one of these to disable the
  134. // feature. For instance, redefining PRC_DIR_ENVVARS here to
  135. // PANDA_PRC_DIR would cause the environment variable $PANDA_PRC_DIR
  136. // to be consulted at startup instead of the default value of
  137. // $PRC_DIR.
  138. #define PRC_DIR_ENVVARS PRC_DIR
  139. #define PRC_PATH_ENVVARS PRC_PATH
  140. // You can specify the name of the file(s) to search for in the above
  141. // paths to be considered a config file. This should be a
  142. // space-separated list of filename patterns. This is *.prc by
  143. // default; normally there's no reason to change this.
  144. #define PRC_PATTERNS *.prc
  145. // One unusual feature of config is the ability to execute one or more
  146. // of the files it discovers as if it were a program, and then treat
  147. // the output of this program as a prc file. If you want to use this
  148. // feature, define this variable to the filename pattern or patterns
  149. // for such executable-style config programs (e.g. *prc.exe). This
  150. // can be the same as the above if you like this sort of ambiguity; in
  151. // that case, config will execute the file if it appears to be
  152. // executable; otherwise, it will simply read it.
  153. #define PRC_EXECUTABLE_PATTERNS
  154. // If you do use the above feature, you'll need another environment
  155. // variable that specifies additional arguments to pass to the
  156. // executable programs. The default definition, given here, makes
  157. // that variable be $PRC_EXECUTABLE_ARGS. Sorry, the same arguments
  158. // must be supplied to all executables in a given runtime session.
  159. #define PRC_EXECUTABLE_ARGS_ENVVAR PRC_EXECUTABLE_ARGS
  160. // You can implement signed prc files, if you require this advanced
  161. // feature. This allows certain config variables to be set only by a
  162. // prc file that has been provided by a trusted source. To do this,
  163. // first install and compile Dtool with OpenSSL (below) and run the
  164. // program make-prc-key, and then specify here the output filename
  165. // generated by that program, and then recompile Dtool (ppremake; make
  166. // install).
  167. #define PRC_PUBLIC_KEYS_FILENAME
  168. // By default, the signed-prc feature, above, is enabled only for a
  169. // release build (OPTIMIZE = 4). In a normal development environment
  170. // (OPTIMIZE < 4), any prc file can set any config variable, whether
  171. // or not it is signed. Set this variable true (nonempty) or false
  172. // (empty) to explicitly enable or disable this feature.
  173. #defer PRC_RESPECT_TRUST_LEVEL $[= $[OPTIMIZE],4]
  174. // Similarly, the descriptions are normally saved only in a
  175. // development build, not in a release build. Set this value true to
  176. // explicitly save them anyway.
  177. #defer PRC_SAVE_DESCRIPTIONS $[< $[OPTIMIZE],4]
  178. // This is the end of the PRC variable customization section. The
  179. // remaining variables are of general interest to everyone.
  180. // NOTE: In the following, to indicate "yes" to a yes/no question,
  181. // define the variable to be a nonempty string. To indicate "no",
  182. // define the variable to be an empty string.
  183. // Many of the HAVE_* variables are defined in terms of expressions
  184. // based on the paths and library names, etc., defined above. These
  185. // are defined using the "defer" command, so that they are not
  186. // evaluated right away, giving the user an opportunity to redefine
  187. // the variables they depend on, or to redefine the HAVE_* variables
  188. // themselves (you can explicitly define a HAVE_* variable to some
  189. // nonempty string to force the package to be marked as installed).
  190. // Do you want to generate a Python-callable interrogate interface?
  191. // This is only necessary if you plan to make calls into Panda from a
  192. // program written in Python. This is done only if HAVE_PYTHON,
  193. // below, is also true.
  194. #define INTERROGATE_PYTHON_INTERFACE 1
  195. // Define this true to use the new interrogate feature to generate
  196. // Python-native objects directly, rather than requiring a separate
  197. // FFI step. This loads and runs much more quickly than the original
  198. // mechanism. Define this false (that is, empty) to use the original
  199. // interfaces.
  200. #define PYTHON_NATIVE 1
  201. // Do you want to generate a C-callable interrogate interface? This
  202. // generates an interface similar to the Python interface above, with
  203. // a C calling convention. It should be useful for most other kinds
  204. // of scripting language; the VR Studio used to use this to make calls
  205. // into Panda from Squeak. This is not presently used by any VR
  206. // Studio code.
  207. #define INTERROGATE_C_INTERFACE
  208. // Do you even want to build interrogate at all? This is the program
  209. // that reads our C++ source files and generates one of the above
  210. // interfaces. If you won't be building the interfaces, you don't
  211. // need the program.
  212. #defer HAVE_INTERROGATE $[or $[INTERROGATE_PYTHON_INTERFACE],$[INTERROGATE_C_INTERFACE]]
  213. // What additional options should be passed to interrogate when
  214. // generating either of the above two interfaces? Generally, you
  215. // probably don't want to mess with this.
  216. #define INTERROGATE_OPTIONS -fnames -string -refcount -assert
  217. // What's the name of the interrogate binary to run? The default
  218. // specified is the one that is built as part of DTOOL. If you have a
  219. // prebuilt binary standing by (for instance, one built opt4), specify
  220. // its name instead.
  221. #define INTERROGATE interrogate
  222. #define INTERROGATE_MODULE interrogate_module
  223. // Is Python installed, and should Python interfaces be generated? If
  224. // Python is installed, which directory is it in?
  225. #define PYTHON_IPATH /usr/include/python2.4
  226. #define PYTHON_LPATH
  227. #define PYTHON_FPATH
  228. #define PYTHON_COMMAND python
  229. #defer PYTHON_DEBUG_COMMAND $[PYTHON_COMMAND]$[if $[WINDOWS_PLATFORM],_d]
  230. #define PYTHON_FRAMEWORK
  231. #defer HAVE_PYTHON $[isdir $[PYTHON_IPATH]]
  232. // By default, we'll assume the user only wants to run with Debug
  233. // python if he has to--that is, on Windows when building a debug build.
  234. #defer USE_DEBUG_PYTHON $[and $[< $[OPTIMIZE],3],$[WINDOWS_PLATFORM]]
  235. // Define the default set of libraries to be instrumented by
  236. // genPyCode. You may wish to add to this list to add your own
  237. // libraries, or if you want to use some of the more obscure
  238. // interfaces like libpandaegg and libpandafx.
  239. #define GENPYCODE_LIBS libpandaexpress libpanda libpandaphysics libdirect libpandafx
  240. // Normally, Python source files are copied into the INSTALL_LIB_DIR
  241. // defined above, along with the compiled C++ library objects, when
  242. // you make install. If you prefer not to copy these Python source
  243. // files, but would rather run them directly out of the source
  244. // directory (presumably so you can develop them and make changes
  245. // without having to reinstall), comment out this definition and put
  246. // your source directory on your PYTHONPATH.
  247. #define INSTALL_PYTHON_SOURCE 1
  248. // Do you want to enable the "in_interpreter" global variable? This
  249. // will enable some callbacks, particularly the MemoryUsage object, to
  250. // know whether they were called from Python code (or other high-level
  251. // show code) and react accordingly, generally for debugging
  252. // purporses. It adds a bit of runtime overhead, and isn't usually
  253. // useful unless we're building a debug tree anyway. The default is
  254. // to enable it only for optimize levels 1 and 2.
  255. #defer TRACK_IN_INTERPRETER $[<= $[OPTIMIZE], 2]
  256. // Do you want to compile in support for tracking memory usage? This
  257. // enables you to define the variable "track-memory-usage" at runtime
  258. // to help track memory leaks, and also report total memory usage on
  259. // PStats. There is some small overhead for having this ability
  260. // available, even if it is unused.
  261. #defer DO_MEMORY_USAGE $[<= $[OPTIMIZE], 3]
  262. // This option compiles in support for simulating network delay via
  263. // the min-lag and max-lag prc variables. It adds a tiny bit of
  264. // overhead even when it is not activated, so it is typically enabled
  265. // only in a development build.
  266. #defer SIMULATE_NETWORK_DELAY $[<= $[OPTIMIZE], 3]
  267. // This option compiles in support for immediate-mode OpenGL
  268. // rendering. Since this is normally useful only for researching
  269. // buggy drivers, and since there is a tiny bit of per-primitive
  270. // overhead to have this option available even if it is unused, it is
  271. // by default enabled only in a development build. This has no effect
  272. // on DirectX rendering.
  273. #define SUPPORT_IMMEDIATE_MODE $[<= $[OPTIMIZE], 3]
  274. // Do you want to compile in support for pipelining? This enables
  275. // setting and accessing multiple different copies of frame-specific
  276. // data stored in nodes, etc. This is necessary, in conjunction with
  277. // HAVE_THREADS, to implement threaded multistage rendering in Panda.
  278. // However, compiling this option in does add some additional runtime
  279. // overhead even if it is not used. By default, we enable pipelining
  280. // whenever threads are enabled, assuming that if you have threads,
  281. // you also want to use piplining. We also enable it at OPTIMIZE
  282. // level 1, since that enables additional runtime checks.
  283. #defer DO_PIPELINING $[or $[<= $[OPTIMIZE], 1],$[HAVE_THREADS]]
  284. // Do you want to use one of the alternative malloc implementations?
  285. // This is almost always a good idea on Windows, where the standard
  286. // malloc implementation appears to be pretty poor, but probably
  287. // doesn't matter much on Linux (which is likely to implement
  288. // ptmalloc2 anyway). We always define this by default on Windows; on
  289. // Linux, we define it by default only when DO_MEMORY_USAGE is enabled
  290. // (since in that case, we'll be paying the overhead for the extra
  291. // call anyway) or when HAVE_THREADS is not defined (since the
  292. // non-thread-safe dlmalloc is a tiny bit faster than the system
  293. // library).
  294. #defer ALTERNATIVE_MALLOC $[or $[WINDOWS_PLATFORM],$[DO_MEMORY_USAGE],$[not $[HAVE_THREADS]]]
  295. // Is NSPR installed, and where? This is the Netscape Portable
  296. // Runtime library, downloadable as part of the Mozilla package from
  297. // mozilla.org. It provides portable threading and networking
  298. // services to Panda. Panda should compile without it, although
  299. // without any threading or networking capabilities; eventually,
  300. // native support for these capabilities may be added for certain
  301. // platforms. See also HAVE_IPC and HAVE_NET.
  302. #define NSPR_IPATH /usr/include/nspr
  303. #define NSPR_LPATH
  304. #define NSPR_LIBS nspr4
  305. #defer HAVE_NSPR $[isfile $[NSPR_IPATH]/prtypes.h]
  306. // Is a third-party STL library installed, and where? This is only
  307. // necessary if the default include and link lines that come with the
  308. // compiler don't provide adequate STL support. At least some form of
  309. // STL is absolutely required in order to build Panda.
  310. #define STL_IPATH
  311. #define STL_LPATH
  312. #define STL_CFLAGS
  313. #define STL_LIBS
  314. // Does your STL library provide hashed associative containers like
  315. // hash_map and hash_set? Define this true if you have a nonstandard
  316. // STL library that provides these, like Visual Studio .NET's. (These
  317. // hashtable containers are not part of the C++ standard yet, but the
  318. // Dinkum STL library that VC7 ships with includes a preliminary
  319. // implementation that Panda can optionally use.) For now, we assume
  320. // you have this by default only on a Windows platform.
  321. // On second thought, it turns out that this API is still too
  322. // volatile. The interface seems to have changed with the next
  323. // version of .NET, and it didn't present any measureable performance
  324. // gain anyway. Never mind.
  325. #define HAVE_STL_HASH
  326. // Is OpenSSL installed, and where?
  327. #define OPENSSL_IPATH /usr/local/ssl/include
  328. #define OPENSSL_LPATH /usr/local/ssl/lib
  329. #define OPENSSL_LIBS ssl crypto
  330. #defer HAVE_OPENSSL $[libtest $[OPENSSL_LPATH],$[OPENSSL_LIBS]]
  331. // Define this nonempty if your version of OpenSSL is 0.9.7 or better.
  332. #define OPENSSL_097
  333. // Define this true to include the OpenSSL code to report verbose
  334. // error messages when they occur.
  335. #defer REPORT_OPENSSL_ERRORS $[< $[OPTIMIZE], 4]
  336. // Is libjpeg installed, and where?
  337. #define JPEG_IPATH
  338. #define JPEG_LPATH
  339. #define JPEG_LIBS jpeg
  340. #defer HAVE_JPEG $[libtest $[JPEG_LPATH],$[JPEG_LIBS]]
  341. // Is libpng installed, and where?
  342. #define PNG_IPATH
  343. #define PNG_LPATH
  344. #define PNG_LIBS png
  345. #defer HAVE_PNG $[libtest $[PNG_LPATH],$[PNG_LIBS]]
  346. // Is libtiff installed, and where?
  347. #define TIFF_IPATH
  348. #define TIFF_LPATH
  349. #define TIFF_LIBS tiff z
  350. #defer HAVE_TIFF $[libtest $[TIFF_LPATH],$[TIFF_LIBS]]
  351. // Is libfftw installed, and where?
  352. #define FFTW_IPATH /usr/local/include
  353. #define FFTW_LPATH /usr/local/lib
  354. #define FFTW_LIBS rfftw fftw
  355. #defer HAVE_FFTW $[libtest $[FFTW_LPATH],$[FFTW_LIBS]]
  356. // Is NURBS++ installed, and where?
  357. #define NURBSPP_IPATH /usr/local/include/nurbs++
  358. #define NURBSPP_LPATH /usr/local/lib
  359. #define NURBSPP_LIBS nurbsf matrixN matrixI matrix
  360. #defer HAVE_NURBSPP $[libtest $[NURBSPP_LPATH],$[NURBSPP_LIBS]]
  361. // Is Cg installed, and where?
  362. #if $[WINDOWS_PLATFORM]
  363. #define CG_IPATH
  364. #define CG_LPATH
  365. #define CG_LIBS cg.lib
  366. #else
  367. #define CG_IPATH
  368. #define CG_LPATH
  369. #define CG_LIBS Cg
  370. #endif
  371. #defer HAVE_CG $[libtest $[CG_LPATH],$[CG_LIBS]]
  372. // Is CgGL installed, and where?
  373. #defer CGGL_IPATH $[CG_IPATH]
  374. #defer CGGL_LPATH $[CG_LPATH]
  375. #define CGGL_LIBS $[if $[WINDOWS_PLATFORM],cgGL.lib,CgGL]
  376. #defer HAVE_CGGL $[and $[HAVE_CG],$[libtest $[CGGL_LPATH],$[CGGL_LIBS]]]
  377. // Is CgDX8 installed, and where?
  378. #defer CGDX8_IPATH $[CG_IPATH]
  379. #defer CGDX8_LPATH $[CG_LPATH]
  380. #define CGDX8_LIBS $[if $[WINDOWS_PLATFORM],cgD3D8.lib,CgDX8]
  381. #defer HAVE_CGDX8 $[and $[HAVE_CG],$[libtest $[CGDX8_LPATH],$[CGDX8_LIBS]]]
  382. // Is CgDX9 installed, and where?
  383. #defer CGDX9_IPATH $[CG_IPATH]
  384. #defer CGDX9_LPATH $[CG_LPATH]
  385. #define CGDX9_LIBS $[if $[WINDOWS_PLATFORM],cgD3D9.lib,CgDX9]
  386. #defer HAVE_CGDX9 $[and $[HAVE_CG],$[libtest $[CGDX9_LPATH],$[CGDX9_LIBS]]]
  387. // Is CgDX10 installed, and where?
  388. #defer CGDX10_IPATH $[CG_IPATH]
  389. #defer CGDX10_LPATH $[CG_LPATH]
  390. #define CGDX10_LIBS $[if $[WINDOWS_PLATFORM],cgD3D10.lib,CgDX10]
  391. #defer HAVE_CGDX10 $[and $[HAVE_CG],$[libtest $[CGDX10_LPATH],$[CGDX10_LIBS]]]
  392. // Is VRPN installed, and where?
  393. #define VRPN_IPATH
  394. #define VRPN_LPATH
  395. #define VRPN_LIBS
  396. #defer HAVE_VRPN $[libtest $[VRPN_LPATH],$[VRPN_LIBS]]
  397. // Is HELIX installed, and where?
  398. #define HELIX_IPATH
  399. #define HELIX_LPATH
  400. #define HELIX_LIBS
  401. #defer HAVE_HELIX $[libtest $[HELIX_LPATH],$[HELIX_LIBS]]
  402. // Is ZLIB installed, and where?
  403. #define ZLIB_IPATH
  404. #define ZLIB_LPATH
  405. #define ZLIB_LIBS z
  406. #defer HAVE_ZLIB $[libtest $[ZLIB_LPATH],$[ZLIB_LIBS]]
  407. // Is OpenGL installed, and where? This should include libGL as well
  408. // as libGLU, if they are in different places.
  409. #if $[WINDOWS_PLATFORM]
  410. #defer GL_IPATH
  411. #defer GL_LPATH
  412. #define GL_LIBS opengl32.lib glu32.lib
  413. #elif $[OSX_PLATFORM]
  414. #defer GL_IPATH
  415. #defer GL_LPATH /System/Library/Frameworks/OpenGL.framework/Libraries/
  416. #defer GL_FRAMEWORK OpenGL
  417. #defer GL_LIBS GL GLU
  418. #else
  419. #defer GL_IPATH
  420. #defer GL_LPATH /usr/X11R6/lib
  421. #defer GL_LIBS GL GLU
  422. #endif
  423. #defer HAVE_GL $[libtest $[GL_LPATH],$[GL_LIBS]]
  424. // Is Mesa installed separately from OpenGL? Mesa is an open-source
  425. // software-only OpenGL renderer. Panda can link with it
  426. // independently from OpenGL (and if Mesa is built statically, and/or
  427. // with -DUSE_MGL_NAMESPACE declared to rename gl* to mgl*, it can
  428. // switch between the system OpenGL implementation and the Mesa
  429. // implementation at runtime).
  430. // Also, Mesa includes some core libraries (in libOSMesa.so) that
  431. // allow totally headless rendering, handy if you want to run a
  432. // renderer as a batch service, and you don't want to insist that a
  433. // user be logged on to the desktop or otherwise deal with X11 or
  434. // Windows.
  435. // If you define HAVE_MESA here, and the appropriate paths to headers
  436. // and libraries, then Panda will build libmesadisplay, which can be
  437. // used in lieu of libpandagl or libpandadx to do rendering. However,
  438. // for most applications, you don't need to do this, since (a) if you
  439. // have hardware rendering capability, you probably don't want to use
  440. // Mesa, since it's software-only, and (b) if you don't have hardware
  441. // rendering, you can install Mesa as the system's OpenGL
  442. // implementation, so you can just use the normal libpandagl. You
  443. // only need to define HAVE_MESA if you want to run totally headless,
  444. // or if you want to be able to easily switch between Mesa and the
  445. // system OpenGL implementation at runtime. If you compiled Mesa with
  446. // USE_MGL_NAMESPACE defined, define MESA_MGL here.
  447. #define MESA_IPATH
  448. #define MESA_LPATH
  449. #define MESA_LIBS
  450. #define MESA_MGL
  451. #defer HAVE_MESA $[libtest $[MESA_LPATH],$[MESA_LIBS]]
  452. // Is the Chromium remote-rendering library installed, and where?
  453. // This should include libcr_opengl32.
  454. #defer CHROMIUM_IPATH
  455. #defer CHROMIUM_LPATH
  456. #defer CHROMIUM_LIBS
  457. #defer HAVE_CHROMIUM $[libtest $[CHROMIUM_LPATH],$[CHROMIUM_LIBS]]
  458. // How about GLX?
  459. #define GLX_IPATH
  460. #define GLX_LPATH
  461. #defer HAVE_GLX $[and $[HAVE_GL],$[UNIX_PLATFORM]]
  462. // Should we try to build the WGL interface?
  463. #defer HAVE_WGL $[and $[HAVE_GL],$[WINDOWS_PLATFORM]]
  464. // Should we try to build the SGI-specific glxdisplay?
  465. #define HAVE_SGIGL $[eq $[PLATFORM],Irix]
  466. // Is DirectX available, and should we try to build with it?
  467. #define DX_IPATH
  468. #define DX_LPATH
  469. #define DX_LIBS d3d8.lib d3dx8.lib dxerr8.lib
  470. #defer HAVE_DX $[libtest $[DX_LPATH],$[DX_LIBS]]
  471. // Is OpenCV installed, and where?
  472. #define OPENCV_IPATH /usr/local/include/opencv
  473. #define OPENCV_LPATH /usr/local/lib
  474. #define OPENCV_LIBS $[if $[WINDOWS_PLATFORM],cv.lib highgui.lib cxcore.lib,cv highgui cxcore]
  475. #defer HAVE_OPENCV $[libtest $[OPENCV_LPATH],$[OPENCV_LIBS]]
  476. // Do you want to build the DirectD tools for starting Panda clients
  477. // remotely? This only affects the direct tree. Enabling this may
  478. // cause libdirect.dll to fail to load on Win98 clients.
  479. #define HAVE_DIRECTD
  480. // If your system supports the Posix threads interface
  481. // (pthread_create(), etc.), define this true.
  482. #define HAVE_POSIX_THREADS $[and $[isfile /usr/include/pthread.h],$[not $[WINDOWS_PLATFORM]]]
  483. // Do you want to build in support for threading (multiprocessing)?
  484. // Building in support for threading will enable Panda to take
  485. // advantage of multiple CPU's if you have them (and if the OS
  486. // supports kernel threads running on different CPU's), but it will
  487. // slightly slow down Panda for the single CPU case, so this is not
  488. // enabled by default.
  489. // You should only turn this on if you have some threading library
  490. // available (most people will have one). Windows has one built-in.
  491. // Linux uses Posix threads, which most Linuxes provide.
  492. // Alternatively, the NSPR library also provides a threading interface
  493. // that Panda can use.
  494. #define HAVE_THREADS
  495. // Whether threading is defined or not, you might want to validate the
  496. // thread and synchronization operations. With threading enabled,
  497. // defining this will also enable deadlock detection and logging.
  498. // Without threading enabled, defining this will simply verify that a
  499. // mutex is not recursively locked. There is, of course, additional
  500. // run-time overhead for these tests.
  501. #defer DEBUG_THREADS $[<= $[OPTIMIZE], 2]
  502. // Do you want to build the network interface? What additional libraries
  503. // are required? Currently, this requires NSPR.
  504. #define NET_IPATH
  505. #define NET_LPATH
  506. #if $[WINDOWS_PLATFORM]
  507. #define NET_LIBS wsock32.lib
  508. #else
  509. #define NET_LIBS
  510. #endif
  511. #defer HAVE_NET $[HAVE_NSPR]
  512. // Do you want to build the PStats interface, for graphical run-time
  513. // performance statistics? This requires NET to be available. By
  514. // default, we don't build PStats when OPTIMIZE = 4, although this is
  515. // possible.
  516. #defer DO_PSTATS $[or $[and $[HAVE_NET],$[< $[OPTIMIZE], 4]], $[DO_PSTATS]]
  517. // Do you want to type-check downcasts? This is a good idea during
  518. // development, but does impose some run-time overhead.
  519. #defer DO_DCAST $[< $[OPTIMIZE], 4]
  520. // Do you want to build the debugging tools for recording and
  521. // visualizing intersection tests by the collision system? Enabling
  522. // this increases runtime collision overhead just a tiny bit.
  523. #defer DO_COLLISION_RECORDING $[< $[OPTIMIZE], 4]
  524. // Do you want to include the "debug" and "spam" Notify messages?
  525. // Normally, these are stripped out when we build with OPTIMIZE = 4, but
  526. // sometimes it's useful to keep them around. Redefine this in your
  527. // own Config.pp to achieve that.
  528. #defer NOTIFY_DEBUG $[< $[OPTIMIZE], 4]
  529. // Do you want to build the audio interface?
  530. #define HAVE_AUDIO 1
  531. // Info for the RAD game tools, Miles Sound System
  532. // note this may be overwritten in wintools Config.pp
  533. #define RAD_MSS_IPATH /usr/include/Miles6/include
  534. #define RAD_MSS_LPATH /usr/lib/Miles6/lib/win
  535. #define RAD_MSS_LIBS Mss32
  536. #defer HAVE_RAD_MSS $[libtest $[RAD_MSS_LPATH],$[RAD_MSS_LIBS]]
  537. // Info for the Fmod audio engine
  538. // note this may be overwritten in wintools Config.pp
  539. #define FMOD_IPATH
  540. #define FMOD_LPATH
  541. #define FMOD_LIBS fmod
  542. #defer HAVE_FMOD $[libtest $[FMOD_LPATH],$[FMOD_LIBS]]
  543. // Info for http://www.sourceforge.net/projects/chromium
  544. // note this may be overwritten in wintools Config.pp
  545. #define CHROMIUM_IPATH /usr/include/chromium/include
  546. #define CHROMIUM_LPATH /usr/lib/chromium/bin/WINT_NT
  547. #define CHROMIUM_LIBS spuload
  548. #defer HAVE_CHROMIUM $[libtest $[CHROMIUM_LPATH],$[CHROMIUM_LIBS]]
  549. // Is gtk+-2 installed? This is only needed to build the pstats
  550. // program on Unix (or non-Windows) platforms.
  551. #define PKG_CONFIG pkg-config
  552. #define HAVE_GTK
  553. // Do we have Freetype 2.0 (or better)? If available, this package is
  554. // used to generate dynamic in-the-world text from font files.
  555. // On Unix, freetype comes with the freetype-config executable, which
  556. // tells us where to look for the various files. On Windows, we need to
  557. // supply this information explicitly.
  558. #defer FREETYPE_CONFIG $[if $[not $[WINDOWS_PLATFORM]],freetype-config]
  559. #defer HAVE_FREETYPE $[or $[libtest $[FREETYPE_LPATH],$[FREETYPE_LIBS]],$[bintest $[FREETYPE_CONFIG]]]
  560. #define FREETYPE_CFLAGS
  561. #define FREETYPE_IPATH
  562. #define FREETYPE_LPATH
  563. #define FREETYPE_LIBS
  564. // Define this true to compile in a default font, so every TextNode
  565. // will always have a font available without requiring the user to
  566. // specify one. Define it empty not to do this, saving a few
  567. // kilobytes on the generated library. Sorry, you can't pick a
  568. // particular font to be the default; it's hardcoded in the source
  569. // (although you can use the text-default-font prc variable to specify
  570. // a particular font file to load as the default, overriding the
  571. // compiled-in font).
  572. #define COMPILE_IN_DEFAULT_FONT 1
  573. // Is Maya installed? This matters only to programs in PANDATOOL.
  574. // Also, as of Maya 5.0 it seems the Maya library will not compile
  575. // properly with optimize level 4 set (we get link errors with ostream).
  576. #define MAYA_LOCATION /usr/aw/maya
  577. #defer MAYA_LIBS $[if $[WINDOWS_PLATFORM],Foundation.lib OpenMaya.lib OpenMayaAnim.lib OpenMayaUI.lib,Foundation OpenMaya OpenMayaAnim OpenMayaUI]
  578. // Optionally define this to the value of LM_LICENSE_FILE that should
  579. // be set before invoking Maya.
  580. #define MAYA_LICENSE_FILE
  581. #defer HAVE_MAYA $[and $[<= $[OPTIMIZE], 3],$[isdir $[MAYA_LOCATION]/include/maya]]
  582. // Define this if your version of Maya is earlier than 5.0 (e.g. Maya 4.5).
  583. #define MAYA_PRE_5_0
  584. // In the same fashion as mayaegg converter above, set softimage to egg converter as well
  585. #define SOFTIMAGE_LOCATION /c/Softimage/sdk_18sp2/SDK_1.8SP2/SAAPHIRE
  586. #defer SOFTIMAGE_LIBS SAA.lib
  587. #defer HAVE_SOFTIMAGE $[isdir $[SOFTIMAGE_LOCATION]/h]
  588. // Define this to generate static libraries and executables, rather than
  589. // dynamic libraries.
  590. //#define LINK_ALL_STATIC yes
  591. // Define this to export the templates from the DLL. This is only
  592. // meaningful if LINK_ALL_STATIC is not defined, and we are building
  593. // on Windows. Some Windows compilers may not support this syntax.
  594. #defer EXPORT_TEMPLATES yes
  595. // Define this to explicitly link in the various external drivers, which
  596. // are normally separate, as part of the Panda library.
  597. //#define LINK_IN_GL yes
  598. //#define LINK_IN_DX yes
  599. //#define LINK_IN_EGG yes
  600. //#define LINK_IN_PHYSICS yes
  601. // Define USE_COMPILER to switch the particular compiler that should
  602. // be used. A handful of tokens are recognized, depending on BUILD_TYPE.
  603. // This may also be further customized within Global.$[BUILD_TYPE].pp.
  604. // If BUILD_TYPE is "unix", this may be one of:
  605. // GCC (gcc/g++)
  606. // MIPS (Irix MIPSPro compiler)
  607. //
  608. // If BUILD_TYPE is "msvc" or "gmsvc", this may be one of:
  609. // MSVC (Microsoft Visual C++ 6.0)
  610. // MSVC7 (Microsoft Visual C++ 7.0)
  611. // BOUNDS (BoundsChecker)
  612. // INTEL (Intel C/C++ compiler)
  613. #if $[WINDOWS_PLATFORM]
  614. #if $[eq $[USE_COMPILER],]
  615. #define USE_COMPILER MSVC7
  616. #endif
  617. #elif $[eq $[PLATFORM], Irix]
  618. #define USE_COMPILER MIPS
  619. #elif $[eq $[PLATFORM], Linux]
  620. #define USE_COMPILER GCC
  621. #elif $[eq $[PLATFORM], osx]
  622. #define USE_COMPILER GCC
  623. #endif
  624. // Permission masks to install data and executable files,
  625. // respectively. This is only meaningful for Unix systems.
  626. #define INSTALL_UMASK_DATA 644
  627. #define INSTALL_UMASK_PROG 755
  628. // How to invoke bison and flex. Panda takes advantage of some
  629. // bison/flex features, and therefore specifically requires bison and
  630. // flex, not some other versions of yacc and lex. However, you only
  631. // need to have these programs if you need to make changes to the
  632. // bison or flex sources (see the next point, below).
  633. #defer BISON bison
  634. #defer FLEX flex
  635. // You may not even have bison and flex installed. If you don't, no
  636. // sweat; Panda ships with the pre-generated output of these programs,
  637. // so you don't need them unless you want to make changes to the
  638. // grammars themselves (files named *.yxx or *.lxx).
  639. #defer HAVE_BISON $[bintest $[BISON]]
  640. // How to invoke sed. A handful of make rules use this. Since some
  641. // platforms (specifically, non-Unix platforms like Windows) don't
  642. // have any kind of sed, ppremake performs some limited sed-like
  643. // functions. The default is to use ppremake in this capacity. In
  644. // this variable, $[source] is the name of the file to read, $[target]
  645. // is the name of the file to generate, and $[script] is the one-line
  646. // sed script to run.
  647. #defer SED ppremake -s "$[script]" <$[source] >$[target]
  648. // What directory name (within each source directory) should the .o
  649. // (or .obj) files be written to? This can be any name, and it can be
  650. // used to differentiate different builds within the same tree.
  651. // However, don't define this to be '.', or you will be very sad the
  652. // next time you run 'make clean'.
  653. //#defer ODIR Opt$[OPTIMIZE]-$[PLATFORM]$[USE_COMPILER]
  654. // ODIR_SUFFIX is optional, usually empty
  655. #defer ODIR Opt$[OPTIMIZE]-$[PLATFORM]$[ODIR_SUFFIX]
  656. // What is the normal extension of a compiled object file?
  657. #if $[WINDOWS_PLATFORM]
  658. #define OBJ .obj
  659. #else
  660. #define OBJ .o
  661. #endif
  662. ///////////////////////////////////////////////////////////////////////
  663. // The following variables are only meaningful when BUILD_TYPE is
  664. // "unix". These define the commands to invoke the compiler, linker,
  665. // etc.
  666. //////////////////////////////////////////////////////////////////////
  667. // How to invoke the C and C++ compilers.
  668. #if $[eq $[USE_COMPILER], GCC]
  669. #define CC gcc
  670. #define CXX g++
  671. // gcc might run into template limits on some parts of Panda.
  672. // I upped this from 25 to build on OS X (GCC 3.3) -- skyler.
  673. #define C++FLAGS_GEN -ftemplate-depth-30
  674. #else
  675. #define CC cc
  676. #define CXX CC
  677. #endif
  678. // How to compile a C or C++ file into a .o file. $[target] is the
  679. // name of the .o file, $[source] is the name of the source file,
  680. // $[ipath] is a space-separated list of directories to search for
  681. // include files, and $[flags] is a list of additional flags to pass
  682. // to the compiler.
  683. #defer COMPILE_C $[CC] $[CFLAGS_GEN] -c -o $[target] $[ipath:%=-I%] $[flags] $[source]
  684. #defer COMPILE_C++ $[CXX] $[C++FLAGS_GEN] -c -o $[target] $[ipath:%=-I%] $[flags] $[source]
  685. // What flags should be passed to both C and C++ compilers to enable
  686. // compiler optimizations? This will be supplied when OPTIMIZE
  687. // (above) is set to 2, 3, or 4.
  688. #defer OPTFLAGS -O2
  689. // What define variables should be passed to the compilers for each
  690. // value of OPTIMIZE? We separate this so we can pass these same
  691. // options to interrogate, guaranteeing that the correct interfaces
  692. // are generated. Do not include -D here; that will be supplied
  693. // automatically.
  694. #defer CDEFINES_OPT1 _DEBUG $[EXTRA_CDEFS]
  695. #defer CDEFINES_OPT2 _DEBUG $[EXTRA_CDEFS]
  696. #defer CDEFINES_OPT3 $[EXTRA_CDEFS]
  697. #defer CDEFINES_OPT4 NDEBUG $[EXTRA_CDEFS]
  698. // What additional flags should be passed for each value of OPTIMIZE
  699. // (above)? We separate out the compiler-optimization flags, above,
  700. // so we can compile certain files that give optimizers trouble (like
  701. // the output of lex and yacc) without them, but with all the other
  702. // relevant flags.
  703. #defer CFLAGS_OPT1 $[CDEFINES_OPT1:%=-D%] -Wall -g
  704. #defer CFLAGS_OPT2 $[CDEFINES_OPT2:%=-D%] -Wall -g $[OPTFLAGS]
  705. #defer CFLAGS_OPT3 $[CDEFINES_OPT3:%=-D%] $[OPTFLAGS]
  706. #defer CFLAGS_OPT4 $[CDEFINES_OPT4:%=-D%] $[OPTFLAGS]
  707. // What additional flags should be passed to both compilers when
  708. // building shared (relocatable) sources? Some architectures require
  709. // special support for this.
  710. #defer CFLAGS_SHARED -fPIC
  711. // How to generate a C or C++ executable from a collection of .o
  712. // files. $[target] is the name of the binary to generate, and
  713. // $[sources] is the list of .o files. $[libs] is a space-separated
  714. // list of dependent libraries, and $[lpath] is a space-separated list
  715. // of directories in which those libraries can be found.
  716. #defer LINK_BIN_C $[cc_ld] -o $[target] $[sources] $[flags] $[lpath:%=-L%] $[libs:%=-l%]\
  717. $[fpath:%=-Wl,-F%] $[patsubst %,-framework %, $[frameworks]]
  718. #defer LINK_BIN_C++ $[cxx_ld]\
  719. -o $[target] $[sources]\
  720. $[flags]\
  721. $[lpath:%=-L%] $[libs:%=-l%]\
  722. $[fpath:%=-Wl,-F%] $[patsubst %,-framework %, $[frameworks]]
  723. // How to generate a static C or C++ library. $[target] is the
  724. // name of the library to generate, and $[sources] is the list of .o
  725. // files that will go into the library.
  726. #if $[eq $[PLATFORM], osx]
  727. #defer STATIC_LIB_C libtool -static -o $[target] $[sources]
  728. #defer STATIC_LIB_C++ libtool -static -o $[target] $[sources]
  729. #else
  730. #defer STATIC_LIB_C ar cru $[target] $[sources]
  731. #defer STATIC_LIB_C++ ar cru $[target] $[sources]
  732. #endif
  733. // How to run ranlib, if necessary, after generating a static library.
  734. // $[target] is the name of the library. Set this to the empty string
  735. // if ranlib is not necessary on your platform.
  736. #defer RANLIB ranlib $[target]
  737. // Where to put the so_locations file, used by an Irix MIPSPro
  738. // compiler, to generate a map of shared library memory locations.
  739. #defer SO_LOCATIONS $[DTOOL_INSTALL]/etc/so_locations
  740. // How to generate a shared C or C++ library. $[source] and $[target]
  741. // as above, and $[libs] is a space-separated list of dependent
  742. // libraries, and $[lpath] is a space-separated list of directories in
  743. // which those libraries can be found.
  744. #if $[eq $[PLATFORM], osx]
  745. #defer SHARED_LIB_C $[cc_ld] -o $[target] -install_name $[notdir $[target]] $[sources] $[lpath:%=-L%] $[libs:%=-l%] $[patsubst %,-framework %, $[frameworks]]
  746. #defer SHARED_LIB_C++ $[cxx_ld] -dynamic -dynamiclib -o $[target] -install_name $[notdir $[target]] $[sources] $[lpath:%=-L%] $[libs:%=-l%] $[patsubst %,-framework %, $[frameworks]]
  747. #else
  748. #defer SHARED_LIB_C $[cc_ld] -shared -o $[target] $[sources] $[lpath:%=-L%] $[libs:%=-l%]
  749. #defer SHARED_LIB_C++ $[cxx_ld] -shared -o $[target] $[sources] $[lpath:%=-L%] $[libs:%=-l%]
  750. #endif
  751. // How to install a data file or executable file. $[local] is the
  752. // local name of the file to install, and $[dest] is the name of the
  753. // directory to put it in.
  754. // On Unix systems, we strongly prefer using the install program to
  755. // install files. This has nice features like automatically setting
  756. // the permissions bits, and also is usually clever enough to install
  757. // a running program without crashing the running instance. However,
  758. // it doesn't understanding installing a program from a subdirectory,
  759. // so we have to cd into the source directory first.
  760. #defer install_dash_p $[if $[KEEP_TIMESTAMPS],-p,]
  761. #defer INSTALL $[if $[ne $[dir $[local]], ./],cd ./$[dir $[local]] &&] install -m $[INSTALL_UMASK_DATA] $[install_dash_p] $[notdir $[local]] $[dest]/
  762. #defer INSTALL_PROG $[if $[ne $[dir $[local]], ./],cd ./$[dir $[local]] &&] install -m $[INSTALL_UMASK_PROG] $[install_dash_p] $[notdir $[local]] $[dest]/
  763. // Variable definitions for building with the Irix MIPSPro compiler.
  764. #if $[eq $[USE_COMPILER], MIPS]
  765. #define CC cc -n32 -mips3
  766. #define CXX CC -n32 -mips3
  767. // Turn off a few annoying warning messages.
  768. // 1174 - function 'blah' was declared but never used
  769. // 1201 - trailing comma is nonstandard.
  770. // 1209 - controlling expression is constant, e.g. if (0) { ... }
  771. // 1234 - access control not specified, 'public' by default
  772. // 1355 - extra ";" ignored
  773. // 1375 - destructor for base class is not virtual.
  774. // this one actually is bad. But we got alot of them from the classes
  775. // that we've derived from STL collections. Beware of this.
  776. // 3322 - omission of explicit type is nonstandard ("int" assumed)
  777. #define WOFF_LIST -woff 1174,1201,1209,1234,1355,1375,3322
  778. // Linker warnings
  779. // 85 - definition of SOMESYMBOL in SOMELIB preempts that of definition in
  780. // SOMEOTHERLIB.
  781. #define WOFF_LIST $[WOFF_LIST] -Wl,-LD_MSG:off=85
  782. #defer OPTFLAGS -O2 -OPT:Olimit=2500
  783. #defer CFLAGS_OPT1 $[CDEFINES_OPT1:%=-D%] $[WOFF_LIST] -g
  784. #defer CFLAGS_OPT2 $[CDEFINES_OPT2:%=-D%] $[WOFF_LIST]
  785. #defer CFLAGS_OPT3 $[CDEFINES_OPT3:%=-D%] $[WOFF_LIST]
  786. #defer CFLAGS_OPT4 $[CDEFINES_OPT4:%=-D%] $[WOFF_LIST]
  787. #defer CFLAGS_SHARED
  788. #defer STATIC_LIB_C $[CC] -ar -o $[target] $[sources]
  789. #defer STATIC_LIB_C++ $[CXX] -ar -o $[target] $[sources]
  790. #defer RANLIB
  791. #defer SHARED_FLAGS -Wl,-none -Wl,-update_registry,$[SO_LOCATIONS]
  792. #defer SHARED_LIB_C $[cc_ld] -shared $[SHARED_FLAGS] -o $[target] $[sources] $[lpath:%=-L%] $[libs:%=-l%]
  793. #defer SHARED_LIB_C++ $[cxx_ld] -shared $[SHARED_FLAGS] -o $[target] $[sources] $[lpath:%=-L%] $[libs:%=-l%]
  794. #endif
  795. //////////////////////////////////////////////////////////////////////
  796. // There are also some additional variables that control specific
  797. // compiler/platform features or characteristics, defined in the
  798. // platform specific file Config.platform.pp. Be sure to inspect
  799. // these variables for correctness too.
  800. //////////////////////////////////////////////////////////////////////