Global.pp 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978
  1. //
  2. // Global.pp
  3. //
  4. // This file is read in before any of the individual Sources.pp files
  5. // are read. It defines a few global variables that are useful to all
  6. // different kinds of build_types.
  7. //
  8. // We start off by defining a number of map variables. These are
  9. // special variables that can be used to look up a particular named
  10. // scope according to a key (that is, according to the value of some
  11. // variable defined within the scope).
  12. // A named scope is defined using the #begin name .. #end name
  13. // sequence. In general, we use these sequences in the various
  14. // Sources.pp files to define the various targets to build. Each
  15. // named scope carries around its set of variable declarations. The
  16. // named scopes are associated with the dirname of the directory in
  17. // which the Sources.pp file was found.
  18. // The first map variable lets us look up a particular library target
  19. // by its target name. The syntax here indicates that we are
  20. // declaring a map variable called "all_libs" whose key is the
  21. // variable $[TARGET] as defined in each instance of a named scope
  22. // called "static_lib_target," "lib_target," and so on in every
  23. // Sources.pp file. (The */ refers to all the Sources.pp files. We
  24. // could also identify a particular file by its directory name, or
  25. // omit the slash to refer to our own Sources.pp file.)
  26. // After defining this map variable, we can look up other variables
  27. // that are defined for the corresponding target. For instances,
  28. // $[all_libs $[SOURCES],dconfig] will return the value of the SOURCES
  29. // variable as set for the dconfig library (that is, the expression
  30. // $[SOURCES] is evaluated within the named scope whose key is
  31. // "dconfig"--whose variable $[TARGET] was defined to be "dconfig").
  32. #map all_libs TARGET(*/static_lib_target */dynamic_lib_target */ss_lib_target */lib_target */noinst_lib_target */test_lib_target */metalib_target)
  33. // This map variable allows us to look up global variables that might
  34. // be defined in a particular Sources.pp, e.g. in the "toplevel" file.
  35. #map dir_type DIR_TYPE(*/)
  36. #map libs TARGET(*/lib_target */static_lib_target */dynamic_lib_target */ss_lib_target */noinst_lib_target */test_lib_target */metalib_target)
  37. // This lets us identify which metalib, if any, is including each
  38. // named library. That is, $[module $[TARGET],name] will return
  39. // the name of the metalib that includes library name.
  40. #map module COMPONENT_LIBS(*/metalib_target)
  41. // This lets up look up components of a particular metalib.
  42. #map components TARGET(*/lib_target */noinst_lib_target */test_lib_target)
  43. // And this lets us look up source directories by dirname.
  44. #map dirnames DIRNAME(*/)
  45. // This is used by Template.models.pp.
  46. #if $[HAVE_SOFTIMAGE]
  47. #define SOFT2EGG soft -D libsoftegg soft2egg
  48. #else
  49. // We used to use the old converter from pre-Panda days. Now this
  50. // is no longer supported.
  51. // #define SOFT2EGG soft2egg
  52. #define SOFT2EGG soft -D libsoftegg soft2egg
  53. #endif
  54. // Define some various compile flags, derived from the variables set
  55. // in Config.pp.
  56. #set INTERROGATE_PYTHON_INTERFACE $[and $[HAVE_PYTHON],$[INTERROGATE_PYTHON_INTERFACE]]
  57. #define run_interrogate $[HAVE_INTERROGATE]
  58. #define stl_ipath $[wildcard $[STL_IPATH]]
  59. #define stl_lpath $[wildcard $[STL_LPATH]]
  60. #define stl_cflags $[STL_CFLAGS]
  61. #define stl_libs $[STL_LIBS]
  62. #define eigen_ipath $[wildcard $[EIGEN_IPATH]]
  63. #define eigen_cflags $[EIGEN_CFLAGS]
  64. #if $[HAVE_PYTHON]
  65. #define python_ipath $[wildcard $[PYTHON_IPATH]]
  66. #define python_lpath $[wildcard $[PYTHON_LPATH]]
  67. #define python_fpath $[wildcard $[PYTHON_FPATH]]
  68. #define python_cflags $[PYTHON_CFLAGS]
  69. #define python_lflags $[PYTHON_LFLAGS]
  70. #define python_libs $[PYTHON_LIBS]
  71. #define python_framework $[PYTHON_FRAMEWORK]
  72. #endif
  73. #if $[USE_TAU]
  74. #define tau_ipath $[wildcard $[TAU_IPATH]]
  75. #endif
  76. #if $[HAVE_THREADS]
  77. #define threads_ipath $[wildcard $[THREADS_IPATH]]
  78. #define threads_lpath $[wildcard $[THREADS_LPATH]]
  79. #define threads_cflags $[THREADS_CFLAGS]
  80. #define threads_libs $[THREADS_LIBS]
  81. #define threads_framework $[THREADS_FRAMEWORK]
  82. #endif
  83. #if $[HAVE_OPENSSL]
  84. #define openssl_ipath $[wildcard $[OPENSSL_IPATH]]
  85. #define openssl_lpath $[wildcard $[OPENSSL_LPATH]]
  86. #define openssl_cflags $[OPENSSL_CFLAGS]
  87. #define openssl_libs $[OPENSSL_LIBS]
  88. #endif
  89. #if $[HAVE_OPENSSL_MT]
  90. #define openssl_mt_ipath $[wildcard $[OPENSSL_MT_IPATH]]
  91. #define openssl_mt_lpath $[wildcard $[OPENSSL_MT_LPATH]]
  92. #define openssl_mt_cflags $[OPENSSL_MT_CFLAGS]
  93. #define openssl_mt_libs $[OPENSSL_MT_LIBS]
  94. #endif
  95. #if $[HAVE_ZLIB]
  96. #define zlib_ipath $[wildcard $[ZLIB_IPATH]]
  97. #define zlib_lpath $[wildcard $[ZLIB_LPATH]]
  98. #define zlib_cflags $[ZLIB_CFLAGS]
  99. #define zlib_libs $[ZLIB_LIBS]
  100. #endif
  101. #if $[HAVE_ZLIB_MT]
  102. #define zlib_mt_ipath $[wildcard $[ZLIB_MT_IPATH]]
  103. #define zlib_mt_lpath $[wildcard $[ZLIB_MT_LPATH]]
  104. #define zlib_mt_cflags $[ZLIB_MT_CFLAGS]
  105. #define zlib_mt_libs $[ZLIB_MT_LIBS]
  106. #endif
  107. #if $[HAVE_GL]
  108. #define gl_ipath $[wildcard $[GL_IPATH]]
  109. #define gl_lpath $[wildcard $[GL_LPATH]]
  110. #define gl_cflags $[GL_CFLAGS]
  111. #define gl_libs $[GL_LIBS]
  112. #define gl_framework $[GL_FRAMEWORK]
  113. #endif
  114. #if $[HAVE_GLES]
  115. #define gles_ipath $[wildcard $[GLES_IPATH]]
  116. #define gles_lpath $[wildcard $[GLES_LPATH]]
  117. #define gles_cflags $[GLES_CFLAGS]
  118. #define gles_libs $[GLES_LIBS]
  119. #endif
  120. #if $[HAVE_GLES2]
  121. #define gles2_ipath $[wildcard $[GLES2_IPATH]]
  122. #define gles2_lpath $[wildcard $[GLES2_LPATH]]
  123. #define gles2_cflags $[GLES2_CFLAGS]
  124. #define gles2_libs $[GLES2_LIBS]
  125. #endif
  126. #if $[HAVE_SDL]
  127. #define sdl_ipath $[wildcard $[SDL_IPATH]]
  128. #define sdl_lpath $[wildcard $[SDL_LPATH]]
  129. #define sdl_cflags $[SDL_CFLAGS]
  130. #define sdl_libs $[SDL_LIBS]
  131. #define sdl_framework $[SDL_FRAMEWORK]
  132. #endif
  133. #if $[HAVE_X11]
  134. #define x11_ipath $[wildcard $[X11_IPATH]]
  135. #define x11_lpath $[wildcard $[X11_LPATH]]
  136. #define x11_cflags $[X11_CFLAGS]
  137. #define x11_libs $[X11_LIBS]
  138. #define x11_framework $[X11_FRAMEWORK]
  139. #endif
  140. #if $[HAVE_XF86DGA]
  141. #define xf86dga_ipath $[wildcard $[XF86DGA_IPATH]]
  142. #define xf86dga_lpath $[wildcard $[XF86DGA_LPATH]]
  143. #define xf86dga_cflags $[XF86DGA_CFLAGS]
  144. #define xf86dga_libs $[XF86DGA_LIBS]
  145. #endif
  146. #if $[HAVE_XRANDR]
  147. #define xrandr_ipath $[wildcard $[XRANDR_IPATH]]
  148. #define xrandr_lpath $[wildcard $[XRANDR_LPATH]]
  149. #define xrandr_cflags $[XRANDR_CFLAGS]
  150. #define xrandr_libs $[XRANDR_LIBS]
  151. #endif
  152. #if $[HAVE_XCURSOR]
  153. #define xcursor_ipath $[wildcard $[XCURSOR_IPATH]]
  154. #define xcursor_lpath $[wildcard $[XCURSOR_LPATH]]
  155. #define xcursor_cflags $[XCURSOR_CFLAGS]
  156. #define xcursor_libs $[XCURSOR_LIBS]
  157. #endif
  158. #if $[HAVE_GLX]
  159. #define glx_ipath $[wildcard $[GLX_IPATH]]
  160. #define glx_lpath $[wildcard $[GLX_LPATH]]
  161. #define glx_cflags $[GLX_CFLAGS]
  162. #define glx_libs $[GLX_LIBS]
  163. #endif
  164. #if $[HAVE_EGL]
  165. #define egl_ipath $[wildcard $[EGL_IPATH]]
  166. #define egl_lpath $[wildcard $[EGL_LPATH]]
  167. #define egl_cflags $[EGL_CFLAGS]
  168. #define egl_libs $[EGL_LIBS]
  169. #endif
  170. #if $[HAVE_DX9]
  171. #define dx9_ipath $[wildcard $[DX9_IPATH]]
  172. #define dx9_lpath $[wildcard $[DX9_LPATH]]
  173. #define dx9_cflags $[DX9_CFLAGS]
  174. #define dx9_libs $[DX9_LIBS]
  175. #endif
  176. #if $[HAVE_OPENCV]
  177. #define opencv_ipath $[wildcard $[OPENCV_IPATH]]
  178. #define opencv_lpath $[wildcard $[OPENCV_LPATH]]
  179. #define opencv_cflags $[OPENCV_CFLAGS]
  180. #define opencv_libs $[OPENCV_LIBS]
  181. #define opencv_framework $[OPENCV_FRAMEWORK]
  182. #endif
  183. #if $[HAVE_FFMPEG]
  184. #define ffmpeg_ipath $[wildcard $[FFMPEG_IPATH]]
  185. #define ffmpeg_lpath $[wildcard $[FFMPEG_LPATH]]
  186. #define ffmpeg_cflags $[FFMPEG_CFLAGS]
  187. #define ffmpeg_libs $[FFMPEG_LIBS]
  188. #endif
  189. #if $[HAVE_ODE]
  190. #define ode_ipath $[wildcard $[ODE_IPATH]]
  191. #define ode_lpath $[wildcard $[ODE_LPATH]]
  192. #define ode_cflags $[ODE_CFLAGS]
  193. #define ode_libs $[ODE_LIBS]
  194. #endif
  195. #if $[HAVE_AWESOMIUM]
  196. #define awesomium_ipath $[wildcard $[AWESOMIUM_IPATH]]
  197. #define awesomium_lpath $[wildcard $[AWESOMIUM_LPATH]]
  198. #define awesomium_libs $[AWESOMIUM_LIBS]
  199. #define awesomium_framework $[AWESOMIUM_FRAMEWORK]
  200. #endif
  201. #if $[HAVE_NPAPI]
  202. #define npapi_ipath $[wildcard $[NPAPI_IPATH]]
  203. #define npapi_lpath $[wildcard $[NPAPI_LPATH]]
  204. #define npapi_cflags $[NPAPI_CFLAGS]
  205. #define npapi_libs $[NPAPI_LIBS]
  206. #define npapi_framework $[NPAPI_FRAMEWORK]
  207. #endif
  208. #if $[HAVE_JPEG]
  209. #define jpeg_ipath $[wildcard $[JPEG_IPATH]]
  210. #define jpeg_lpath $[wildcard $[JPEG_LPATH]]
  211. #define jpeg_cflags $[JPEG_CFLAGS]
  212. #define jpeg_libs $[JPEG_LIBS]
  213. #endif
  214. #if $[HAVE_JPEG_MT]
  215. #define jpeg_mt_ipath $[wildcard $[JPEG_MT_IPATH]]
  216. #define jpeg_mt_lpath $[wildcard $[JPEG_MT_LPATH]]
  217. #define jpeg_mt_cflags $[JPEG_MT_CFLAGS]
  218. #define jpeg_mt_libs $[JPEG_MT_LIBS]
  219. #endif
  220. #if $[HAVE_PNG]
  221. #define png_ipath $[wildcard $[PNG_IPATH]]
  222. #define png_lpath $[wildcard $[PNG_LPATH]]
  223. #define png_cflags $[PNG_CFLAGS]
  224. #define png_libs $[PNG_LIBS]
  225. #endif
  226. #if $[HAVE_PNG_MT]
  227. #define png_mt_ipath $[wildcard $[PNG_MT_IPATH]]
  228. #define png_mt_lpath $[wildcard $[PNG_MT_LPATH]]
  229. #define png_mt_cflags $[PNG_MT_CFLAGS]
  230. #define png_mt_libs $[PNG_MT_LIBS]
  231. #endif
  232. #if $[HAVE_TIFF]
  233. #define tiff_ipath $[wildcard $[TIFF_IPATH]]
  234. #define tiff_lpath $[wildcard $[TIFF_LPATH]]
  235. #define tiff_cflags $[TIFF_CFLAGS]
  236. #define tiff_libs $[TIFF_LIBS]
  237. #endif
  238. #if $[HAVE_TAR]
  239. #define tar_ipath $[wildcard $[TAR_IPATH]]
  240. #define tar_lpath $[wildcard $[TAR_LPATH]]
  241. #define tar_cflags $[TAR_CFLAGS]
  242. #define tar_libs $[TAR_LIBS]
  243. #endif
  244. #if $[HAVE_FFTW]
  245. #define fftw_ipath $[wildcard $[FFTW_IPATH]]
  246. #define fftw_lpath $[wildcard $[FFTW_LPATH]]
  247. #define fftw_cflags $[FFTW_CFLAGS]
  248. #define fftw_libs $[FFTW_LIBS]
  249. #endif
  250. #if $[HAVE_SQUISH]
  251. #define squish_ipath $[wildcard $[SQUISH_IPATH]]
  252. #define squish_lpath $[wildcard $[SQUISH_LPATH]]
  253. #define squish_cflags $[SQUISH_CFLAGS]
  254. #define squish_libs $[SQUISH_LIBS]
  255. #endif
  256. #if $[HAVE_BDB]
  257. #define bdb_ipath $[wildcard $[BDB_IPATH]]
  258. #define bdb_lpath $[wildcard $[BDB_LPATH]]
  259. #define bdb_cflags $[BDB_CFLAGS]
  260. #define bdb_libs $[BDB_LIBS]
  261. #endif
  262. #if $[HAVE_CG]
  263. #define cg_ipath $[wildcard $[CG_IPATH]]
  264. #define cg_lpath $[wildcard $[CG_LPATH]]
  265. #define cg_cflags $[CG_CFLAGS]
  266. #define cg_libs $[CG_LIBS]
  267. #define cg_framework $[CG_FRAMEWORK]
  268. #endif
  269. #if $[HAVE_CGGL]
  270. #define cggl_ipath $[wildcard $[CGGL_IPATH]]
  271. #define cggl_lpath $[wildcard $[CGGL_LPATH]]
  272. #define cggl_cflags $[CGGL_CFLAGS]
  273. #define cggl_libs $[CGGL_LIBS]
  274. #define cggl_framework $[CGGL_FRAMEWORK]
  275. #endif
  276. #if $[HAVE_CGDX9]
  277. #define cgdx9_ipath $[wildcard $[CGDX9_IPATH]]
  278. #define cgdx9_lpath $[wildcard $[CGDX9_LPATH]]
  279. #define cgdx9_cflags $[CGDX9_CFLAGS]
  280. #define cgdx9_libs $[CGDX9_LIBS]
  281. #endif
  282. #if $[HAVE_CGDX10]
  283. #define cgdx10_ipath $[wildcard $[CGDX10_IPATH]]
  284. #define cgdx10_lpath $[wildcard $[CGDX10_LPATH]]
  285. #define cgdx10_cflags $[CGDX10_CFLAGS]
  286. #define cgdx10_libs $[CGDX10_LIBS]
  287. #endif
  288. #if $[HAVE_VRPN]
  289. #define vrpn_ipath $[wildcard $[VRPN_IPATH]]
  290. #define vrpn_lpath $[wildcard $[VRPN_LPATH]]
  291. #define vrpn_cflags $[VRPN_CFLAGS]
  292. #define vrpn_libs $[VRPN_LIBS]
  293. #endif
  294. #if $[HAVE_HELIX]
  295. #define helix_ipath $[wildcard $[HELIX_IPATH]]
  296. #define helix_lpath $[wildcard $[HELIX_LPATH]]
  297. #define helix_cflags $[HELIX_CFLAGS]
  298. #define helix_libs $[HELIX_LIBS]
  299. #endif
  300. #if $[HAVE_MIKMOD]
  301. #define mikmod_ipath $[wildcard $[MIKMOD_IPATH]]
  302. #define mikmod_lpath $[wildcard $[MIKMOD_LPATH]]
  303. #define mikmod_cflags $[MIKMOD_CFLAGS]
  304. #define mikmod_libs $[MIKMOD_LIBS]
  305. #endif
  306. #if $[HAVE_GTK]
  307. #define gtk_ipath $[wildcard $[GTK_IPATH]]
  308. #define gtk_lpath $[wildcard $[GTK_LPATH]]
  309. #define gtk_cflags $[GTK_CFLAGS]
  310. #define gtk_libs $[GTK_LIBS]
  311. #endif
  312. #if $[HAVE_FREETYPE]
  313. #define freetype_ipath $[wildcard $[FREETYPE_IPATH]]
  314. #define freetype_lpath $[wildcard $[FREETYPE_LPATH]]
  315. #define freetype_cflags $[FREETYPE_CFLAGS]
  316. #define freetype_libs $[FREETYPE_LIBS]
  317. #define freetype_framework $[FREETYPE_FRAMEWORK]
  318. #endif
  319. #if $[HAVE_WX]
  320. #define wx_ipath $[wildcard $[WX_IPATH]]
  321. #define wx_lpath $[wildcard $[WX_LPATH]]
  322. #define wx_cflags $[WX_CFLAGS]
  323. #define wx_lflags $[WX_LFLAGS]
  324. #define wx_libs $[WX_LIBS]
  325. #define wx_framework $[WX_FRAMEWORK]
  326. #endif
  327. #if $[HAVE_FLTK]
  328. #define fltk_ipath $[wildcard $[FLTK_IPATH]]
  329. #define fltk_lpath $[wildcard $[FLTK_LPATH]]
  330. #define fltk_cflags $[FLTK_CFLAGS]
  331. #define fltk_lflags $[FLTK_LFLAGS]
  332. #define fltk_libs $[FLTK_LIBS]
  333. #define fltk_framework $[FLTK_FRAMEWORK]
  334. #endif
  335. #if $[and $[HAVE_MAYA],$[MAYA_LOCATION]]
  336. #define maya_ipath $[MAYA_LOCATION]/include
  337. #define maya_lpath $[MAYA_LOCATION]/lib
  338. #define maya_ld $[wildcard $[MAYA_LOCATION]/bin/mayald]
  339. #define maya_libs $[MAYA_LIBS]
  340. #endif
  341. #if $[and $[HAVE_SOFTIMAGE],$[SOFTIMAGE_LOCATION]]
  342. #define softimage_ipath $[SOFTIMAGE_LOCATION]/h
  343. #define softimage_lpath $[SOFTIMAGE_LOCATION]/dso
  344. #define softimage_libs $[SOFTIMAGE_LIBS]
  345. #endif
  346. #if $[HAVE_NET]
  347. #define net_ipath $[wildcard $[NET_IPATH]]
  348. #define net_lpath $[wildcard $[NET_LPATH]]
  349. #define net_libs $[NET_LIBS]
  350. #endif
  351. #if $[WANT_NATIVE_NET]
  352. #define native_net_ipath $[wildcard $[NATIVE_NET_IPATH]]
  353. #define native_net_lpath $[wildcard $[NATIVE_NET_LPATH]]
  354. #define native_net_libs $[NATIVE_NET_LIBS]
  355. #endif
  356. #if $[HAVE_RAD_MSS]
  357. #define rad_mss_ipath $[wildcard $[RAD_MSS_IPATH]]
  358. #define rad_mss_lpath $[wildcard $[RAD_MSS_LPATH]]
  359. #define rad_mss_libs $[RAD_MSS_LIBS]
  360. #endif
  361. #if $[HAVE_FMODEX]
  362. #define fmodex_ipath $[wildcard $[FMODEX_IPATH]]
  363. #define fmodex_lpath $[wildcard $[FMODEX_LPATH]]
  364. #define fmodex_cflags $[FMODEX_CFLAGS]
  365. #define fmodex_libs $[FMODEX_LIBS]
  366. #endif
  367. #if $[HAVE_OPENAL]
  368. #define openal_ipath $[wildcard $[OPENAL_IPATH]]
  369. #define openal_lpath $[wildcard $[OPENAL_LPATH]]
  370. #define openal_libs $[OPENAL_LIBS]
  371. #define openal_framework $[OPENAL_FRAMEWORK]
  372. #endif
  373. #if $[HAVE_PHYSX]
  374. #define physx_ipath $[wildcard $[PHYSX_IPATH]]
  375. #define physx_lpath $[wildcard $[PHYSX_LPATH]]
  376. #define physx_libs $[PHYSX_LIBS]
  377. #endif
  378. #if $[HAVE_SPEEDTREE]
  379. #define speedtree_ipath $[wildcard $[SPEEDTREE_IPATH]]
  380. #define speedtree_lpath $[wildcard $[SPEEDTREE_LPATH]]
  381. #define speedtree_libs $[SPEEDTREE_LIBS]
  382. #endif
  383. #if $[HAVE_FCOLLADA]
  384. #define fcollada_ipath $[wildcard $[FCOLLADA_IPATH]]
  385. #define fcollada_lpath $[wildcard $[FCOLLADA_LPATH]]
  386. #define fcollada_libs $[FCOLLADA_LIBS]
  387. #endif
  388. #if $[HAVE_COLLADA14DOM]
  389. #define collada14dom_ipath $[wildcard $[COLLADA14DOM_IPATH]]
  390. #define collada14dom_lpath $[wildcard $[COLLADA14DOM_LPATH]]
  391. #define collada14dom_libs $[COLLADA14DOM_LIBS]
  392. #endif
  393. #if $[HAVE_COLLADA15DOM]
  394. #define collada15dom_ipath $[wildcard $[COLLADA15DOM_IPATH]]
  395. #define collada15dom_lpath $[wildcard $[COLLADA15DOM_LPATH]]
  396. #define collada15dom_libs $[COLLADA15DOM_LIBS]
  397. #endif
  398. #if $[HAVE_ASSIMP]
  399. #define assimp_ipath $[wildcard $[ASSIMP_IPATH]]
  400. #define assimp_lpath $[wildcard $[ASSIMP_LPATH]]
  401. #define assimp_libs $[ASSIMP_LIBS]
  402. #endif
  403. #if $[HAVE_ARTOOLKIT]
  404. #define artoolkit_ipath $[wildcard $[ARTOOLKIT_IPATH]]
  405. #define artoolkit_lpath $[wildcard $[ARTOOLKIT_LPATH]]
  406. #define artoolkit_libs $[ARTOOLKIT_LIBS]
  407. #endif
  408. #if $[HAVE_ROCKET]
  409. #define rocket_ipath $[wildcard $[ROCKET_IPATH]]
  410. #define rocket_lpath $[wildcard $[ROCKET_LPATH]]
  411. #define rocket_libs $[ROCKET_LIBS]
  412. #endif
  413. #if $[HAVE_BULLET]
  414. #define bullet_ipath $[wildcard $[BULLET_IPATH]]
  415. #define bullet_lpath $[wildcard $[BULLET_LPATH]]
  416. #define bullet_libs $[BULLET_LIBS]
  417. #endif
  418. #if $[HAVE_VORBIS]
  419. #define vorbis_ipath $[wildcard $[VORBIS_IPATH]]
  420. #define vorbis_lpath $[wildcard $[VORBIS_LPATH]]
  421. #define vorbis_libs $[VORBIS_LIBS]
  422. #endif
  423. // We define these two variables true here in the global scope; a
  424. // particular Sources.pp file can redefine these to be false to
  425. // prevent a particular directory or target from being built in
  426. // certain circumstances.
  427. #define BUILD_DIRECTORY 1
  428. #define BUILD_TARGET 1
  429. // This is the default extension for a Maya file. It might be
  430. // overridden within a maya_char_egg rule to convert a .ma file
  431. // instead.
  432. #define MAYA_EXTENSION .mb
  433. // This variable, when evaluated in the scope of a particular directory,
  434. // will indicate true (i.e. nonempty) when the directory is truly built,
  435. // or false (empty) when the directory is not to be built.
  436. #defer build_directory $[BUILD_DIRECTORY]
  437. // It maps to a direct evaluation of the user-set variable,
  438. // BUILD_DIRECTORY, for historical reasons. This also allows us to
  439. // reserve the right to extend this variable to test other conditions
  440. // as well, should the need arise.
  441. // This variable, when evaluated in the scope of a particular target,
  442. // will indicated true when the target should be built, or false when
  443. // the target is not to be built.
  444. #defer build_target $[BUILD_TARGET]
  445. // If we have USE_TAU but not TAU_MAKEFILE, we invoke the tau
  446. // instrumentor and compiler directly.
  447. #define direct_tau $[and $[USE_TAU],$[not $[TAU_MAKEFILE]]]
  448. #if $[and $[USE_TAU],$[TAU_MAKEFILE]]
  449. // Use the makefile-based rules to run the tau instrumentor.
  450. #defer compile_c $(TAU_COMPILER) $[TAU_OPTS] $[if $[SELECT_TAU],-optTauSelectFile=$[SELECT_TAU]] $[COMPILE_C] $[TAU_CFLAGS]
  451. #defer compile_c++ $(TAU_COMPILER) $[TAU_OPTS] $[if $[SELECT_TAU],-optTauSelectFile=$[SELECT_TAU]] $[COMPILE_C++] $[TAU_CFLAGS] $[TAU_C++FLAGS]
  452. #defer link_bin_c $(TAU_COMPILER) $[TAU_OPTS] $[if $[SELECT_TAU],-optTauSelectFile=$[SELECT_TAU]] $[LINK_BIN_C] $[TAU_CFLAGS]
  453. #defer link_bin_c++ $(TAU_COMPILER) $[TAU_OPTS] $[if $[SELECT_TAU],-optTauSelectFile=$[SELECT_TAU]] $[LINK_BIN_C++] $[TAU_CFLAGS] $[TAU_C++FLAGS]
  454. #defer shared_lib_c $(TAU_COMPILER) $[TAU_OPTS] $[if $[SELECT_TAU],-optTauSelectFile=$[SELECT_TAU]] $[SHARED_LIB_C] $[TAU_CFLAGS]
  455. #defer shared_lib_c++ $(TAU_COMPILER) $[TAU_OPTS] $[if $[SELECT_TAU],-optTauSelectFile=$[SELECT_TAU]] $[SHARED_LIB_C++] $[TAU_CFLAGS] $[TAU_C++FLAGS]
  456. #else
  457. #defer compile_c $[COMPILE_C]
  458. #defer compile_c++ $[COMPILE_C++]
  459. #defer link_bin_c $[LINK_BIN_C]
  460. #defer link_bin_c++ $[LINK_BIN_C++]
  461. #defer shared_lib_c $[SHARED_LIB_C]
  462. #defer shared_lib_c++ $[SHARED_LIB_C++]
  463. #endif // USE_TAU
  464. #defer static_lib_c $[STATIC_LIB_C]
  465. #defer static_lib_c++ $[STATIC_LIB_C++]
  466. #defer bundle_lib_c $[BUNDLE_LIB_C++]
  467. #defer bundle_lib_c++ $[BUNDLE_LIB_C++]
  468. // "lib" is the default prefix applied to every generated library.
  469. // This comes from Unix convention. This can be redefined on a
  470. // per-target basis.
  471. #define LIB_PREFIX lib
  472. #defer lib_prefix $[LIB_PREFIX]
  473. // OSX has a "bundle" concept. This is kind of like a dylib, but not
  474. // quite. Sometimes you might want to link a library *as* a bundle
  475. // instead of as a dylib; sometimes you might want to link a library
  476. // into a dylib *and* a bundle.
  477. #defer bundle_ext $[BUNDLE_EXT]
  478. #defer link_as_bundle $[and $[OSX_PLATFORM],$[LINK_AS_BUNDLE]]
  479. // On OSX 10.4, we need to have both a .dylib and an .so file.
  480. #defer link_extra_bundle $[and $[OSX_PLATFORM],$[or $[LINK_EXTRA_BUNDLE],$[BUNDLE_EXT]],$[not $[LINK_AS_BUNDLE]],$[not $[LINK_ALL_STATIC]],$[not $[lib_is_static]]]
  481. // The default library extension various based on the OS.
  482. #defer dynamic_lib_ext $[DYNAMIC_LIB_EXT]
  483. #defer static_lib_ext $[STATIC_LIB_EXT]
  484. #defer lib_ext $[if $[link_as_bundle],$[bundle_ext],$[if $[lib_is_static],$[static_lib_ext],$[dynamic_lib_ext]]]
  485. #defer link_lib_c $[if $[link_as_bundle],$[bundle_lib_c],$[if $[lib_is_static],$[static_lib_c],$[shared_lib_c]]]
  486. #defer link_lib_c++ $[if $[link_as_bundle],$[bundle_lib_c++],$[if $[lib_is_static],$[static_lib_c++],$[shared_lib_c++]]]
  487. // If BUILD_COMPONENTS is not true, we don't actually build all the
  488. // libraries. In particular, we don't build any libraries that are
  489. // listed on a metalib. This variable can be evaluated within a
  490. // library's scope to determine whether it should be built according
  491. // to this rule.
  492. #defer build_lib $[or $[BUILD_COMPONENTS],$[eq $[module $[TARGET],$[TARGET]],]]
  493. // This variable is true if the lib has an associated pdb (Windows
  494. // only). It appears that pdb's are generated only for dll's, not for
  495. // static libs.
  496. #defer has_pdb $[and $[build_pdbs],$[not $[lib_is_static]]]
  497. // This takes advantage of the above two variables to get the actual
  498. // list of local libraries we are to link with, eliminating those that
  499. // won't be built.
  500. #defer active_local_libs \
  501. $[all_libs $[if $[and $[build_directory],$[build_target]],$[TARGET]],$[LOCAL_LIBS]]
  502. #defer active_component_libs \
  503. $[all_libs $[if $[and $[build_directory],$[build_target]],$[TARGET]],$[COMPONENT_LIBS]]
  504. #defer active_libs $[active_local_libs] $[active_component_libs]
  505. // We define $[complete_local_libs] as the full set of libraries (from
  506. // within this tree) that we must link a particular target with. It
  507. // is the transitive closure of our dependent libs: the libraries we
  508. // depend on, plus the libraries *those* libraries depend on, and so on.
  509. #defer nonunique_complete_local_libs $[closure all_libs,$[active_libs]]
  510. #defer complete_local_libs $[unique $[nonunique_complete_local_libs]]
  511. // And $[complete_ipath] is the list of directories (from within this
  512. // tree) we should add to our -I list. It's basically just one for
  513. // each directory named in the $[complete_local_libs], above, plus
  514. // whatever else the user might have explicitly named in
  515. // $[LOCAL_INCS]. LOCAL_INCS MUST be a ppremake src dir! (RELDIR only
  516. // checks those) To add an arbitrary extra include dir, define
  517. // EXTRA_IPATH in the Sources.pp
  518. #defer complete_ipath $[all_libs $[RELDIR],$[complete_local_libs]] $[RELDIR($[LOCAL_INCS:%=%/])] $[EXTRA_IPATH]
  519. // This variable, when evaluated within a target, will either be empty
  520. // string if the target is not to be built, or the target name if it
  521. // is.
  522. #defer active_target $[if $[build_target],$[TARGET]]
  523. #defer active_target_libprefext $[if $[build_target],$[lib_prefix]$[TARGET]$[lib_ext]]
  524. #defer active_target_bundleext $[if $[and $[build_target],$[link_extra_bundle]],$[lib_prefix]$[TARGET]$[bundle_ext]]
  525. #defer get_combined_sources $[COMBINED_SOURCES]
  526. // This subroutine will set up the sources variable to reflect the
  527. // complete set of sources for this target, and also set the
  528. // alt_cflags, alt_libs, etc. as appropriate according to how the
  529. // various USE_* flags are set for the current target.
  530. // This variable returns the complete set of sources for the current
  531. // target.
  532. #defer get_sources \
  533. $[SOURCES] \
  534. $[if $[or $[NO_COMBINED_SOURCES],$[USE_TAU]], $[INCLUDED_SOURCES], $[get_combined_sources]]
  535. #defer included_sources $[INCLUDED_SOURCES]
  536. // This variable returns the set of sources that are to be
  537. // interrogated for the current target.
  538. #defer get_igatescan \
  539. $[if $[and $[run_interrogate],$[IGATESCAN]], \
  540. $[if $[eq $[IGATESCAN], all], \
  541. $[filter-out %.I %.T %.lxx %.yxx %.N %_src.cxx,$[get_sources]] $[filter %_ext.I,$[get_sources]], \
  542. $[IGATESCAN]]]
  543. // This variable returns the name of the interrogate database file
  544. // that will be generated for a particular target, or empty string if
  545. // the target is not to be interrogated.
  546. #defer get_igatedb \
  547. $[if $[and $[run_interrogate],$[IGATESCAN]], \
  548. $[ODIR]/lib$[TARGET]$[dllext].in]
  549. // This variable returns the name of the interrogate code file
  550. // that will be generated for a particular target, or empty string if
  551. // the target is not to be interrogated.
  552. #defer get_igateoutput \
  553. $[if $[and $[run_interrogate],$[IGATESCAN]], \
  554. $[ODIR]/lib$[TARGET]_igate.cxx]
  555. // This variable is the set of .in files generated by all of our
  556. // component libraries. If it is nonempty, then we do need to
  557. // generate a module, and $[get_igatemout] is the name of the .cxx file
  558. // that interrogate will produce to make this module.
  559. #defer get_igatemscan $[components $[get_igatedb:%=$[RELDIR]/%],$[active_component_libs]] $[if $[not $[module $[TARGET],$[TARGET]]],$[get_igatedb]]
  560. #defer get_igatemout $[if $[get_igatemscan],$[ODIR]/lib$[TARGET]_module.cxx]
  561. // This variable returns the set of external packages used by this
  562. // target, and by all the components shared by this target.
  563. #defer use_packages $[unique $[USE_PACKAGES] $[all_libs $[USE_PACKAGES],$[active_component_libs] $[complete_local_libs]]]
  564. // This function returns the appropriate cflags for the target, based
  565. // on the various external packages this particular target claims to
  566. // require.
  567. #defun get_cflags
  568. // hack to add stl,python. should be removed
  569. #define alt_cflags $[if $[IGNORE_LIB_DEFAULTS_HACK],,$[stl_cflags] $[python_cflags] $[if $[HAVE_EIGEN],$[eigen_cflags]]]
  570. #foreach package $[use_packages]
  571. #set alt_cflags $[alt_cflags] $[$[package]_cflags]
  572. #end package
  573. $[alt_cflags]
  574. #end get_cflags
  575. // This function returns the appropriate lflags for the target, based
  576. // on the various external packages this particular target claims to
  577. // require.
  578. #defun get_lflags
  579. // hack to add stl,python. should be removed
  580. #define alt_lflags $[if $[IGNORE_LIB_DEFAULTS_HACK],,$[stl_lflags] $[python_lflags]]
  581. #foreach package $[use_packages]
  582. #set alt_lflags $[alt_lflags] $[$[package]_lflags]
  583. #end package
  584. $[alt_lflags]
  585. #end get_lflags
  586. // This function returns the appropriate include path for the target,
  587. // based on the various external packages this particular target
  588. // claims to require. This returns a space-separated set of directory
  589. // names only; the -I switch is not included here.
  590. #defun get_ipath
  591. // hack to add stl,python. should be removed
  592. #define alt_ipath $[if $[IGNORE_LIB_DEFAULTS_HACK],,$[stl_ipath] $[python_ipath] $[tau_ipath] $[if $[HAVE_EIGEN],$[eigen_ipath]]]
  593. #foreach package $[use_packages]
  594. #set alt_ipath $[alt_ipath] $[$[package]_ipath]
  595. #end package
  596. $[alt_ipath]
  597. #end get_ipath
  598. // This function returns the appropriate library search path for the
  599. // target, based on the various external packages this particular
  600. // target claims to require. This returns a space-separated set of
  601. // directory names only; the -L switch is not included here.
  602. #defun get_lpath
  603. #define alt_lpath $[if $[IGNORE_LIB_DEFAULTS_HACK],,$[stl_lpath] $[python_lpath]]
  604. #if $[WINDOWS_PLATFORM]
  605. #set alt_lpath $[WIN32_PLATFORMSDK_LIBPATH] $[alt_lpath]
  606. #endif
  607. #foreach package $[use_packages]
  608. #set alt_lpath $[alt_lpath] $[$[package]_lpath]
  609. #end package
  610. $[alt_lpath]
  611. #end get_lpath
  612. // This function returns the appropriate framework search path for the
  613. // target, based on the various external frameworks this particular
  614. // target claims to require. This returns a space-separated set of
  615. // directory names only; the -F switch is not included here.
  616. #defun get_fpath
  617. #define alt_fpath $[if $[IGNORE_LIB_DEFAULTS_HACK],,$[stl_fpath] $[python_fpath]]
  618. #foreach package $[use_packages]
  619. #set alt_fpath $[alt_fpath] $[$[package]_fpath]
  620. #end package
  621. $[alt_fpath]
  622. #end get_fpath
  623. // This function returns the appropriate framework for the
  624. // target, based on the various external frameworks this particular
  625. // target claims to require. This returns a space-separated set of
  626. // framework names only; the -framework switch is not included here.
  627. #defun get_frameworks
  628. #define alt_frameworks $[if $[IGNORE_LIB_DEFAULTS_HACK],,$[stl_framework] $[python_framework]]
  629. #if $[OSX_PLATFORM]
  630. #set alt_frameworks $[alt_frameworks] $[OSX_SYS_FRAMEWORKS]
  631. #endif
  632. #foreach package $[use_packages]
  633. #set alt_frameworks $[alt_frameworks] $[$[package]_framework]
  634. #end package
  635. $[alt_frameworks]
  636. #end get_frameworks
  637. // This function returns the appropriate set of library names to link
  638. // with for the target, based on the various external packages this
  639. // particular target claims to require. This returns a
  640. // space-separated set of library names only; the -l switch is not
  641. // included here.
  642. #defun get_libs
  643. #define alt_libs $[if $[IGNORE_LIB_DEFAULTS_HACK],,$[stl_libs] $[python_libs]]
  644. #define alt_libs $[alt_libs] $[EXTRA_LIBS]
  645. #if $[WINDOWS_PLATFORM]
  646. #set alt_libs $[alt_libs] $[WIN_SYS_LIBS] $[components $[WIN_SYS_LIBS],$[active_libs] $[transitive_link]]
  647. #elif $[OSX_PLATFORM]
  648. #set alt_libs $[alt_libs] $[OSX_SYS_LIBS] $[components $[OSX_SYS_LIBS],$[active_libs] $[transitive_link]]
  649. #elif $[eq $[PLATFORM], Android]
  650. #set alt_libs $[alt_libs] $[ANDROID_SYS_LIBS] $[components $[ANDROID_SYS_LIBS],$[active_libs] $[transitive_link]]
  651. #else
  652. #set alt_libs $[alt_libs] $[UNIX_SYS_LIBS] $[components $[UNIX_SYS_LIBS],$[active_libs] $[transitive_link]]
  653. #endif
  654. #foreach package $[use_packages]
  655. #set alt_libs $[alt_libs] $[$[package]_libs]
  656. #end package
  657. $[alt_libs]
  658. #end get_libs
  659. // This function returns the appropriate value for ld for the target.
  660. #defun get_ld
  661. #if $[filter maya,$[use_packages]]
  662. $[maya_ld]
  663. #endif
  664. #end get_ld
  665. // This function determines the set of files a given source file
  666. // depends on. It is based on the setting of the $[filename]_sources
  667. // variable to indicate the sources for composite files, etc.
  668. #defun get_depends source
  669. #if $[$[source]_sources]
  670. #if $[ne $[$[source]_sources],none]
  671. $[$[source]_sources] $[dependencies $[$[source]_sources]]
  672. #endif
  673. #else
  674. $[dependencies $[source]]
  675. #endif
  676. #end get_depends
  677. // This function determines the set of libraries our various targets
  678. // depend on. This is a complicated definition. It is the union of
  679. // all of our targets' dependencies, except:
  680. // If a target is part of a metalib, it depends (a) directly on all of
  681. // its normal library dependencies that are part of the same metalib,
  682. // and (b) indirectly on all of the metalibs that every other library
  683. // dependency is part of. If a target is not part of a metalib, it is
  684. // the same as case (b) above.
  685. #defun get_depend_libs
  686. #define depend_libs
  687. #forscopes lib_target noinst_lib_target test_lib_target
  688. #define metalib $[module $[TARGET],$[TARGET]]
  689. #if $[ne $[metalib],]
  690. // This library is included on a metalib.
  691. #foreach depend $[LOCAL_LIBS]
  692. #define depend_metalib $[module $[TARGET],$[depend]]
  693. #if $[eq $[depend_metalib],$[metalib]]
  694. // Here's a dependent library in the *same* metalib.
  695. #set depend_libs $[depend_libs] $[depend]
  696. #elif $[ne $[depend_metalib],]
  697. // This dependent library is in a *different* metalib.
  698. #set depend_libs $[depend_libs] $[depend_metalib]
  699. #else
  700. // This dependent library is not in any metalib.
  701. #set depend_libs $[depend_libs] $[depend]
  702. #endif
  703. #end depend
  704. #else
  705. // This library is *not* included on a metalib.
  706. #foreach depend $[LOCAL_LIBS]
  707. #define depend_metalib $[module $[TARGET],$[depend]]
  708. #if $[ne $[depend_metalib],]
  709. // This dependent library is on a metalib.
  710. #set depend_libs $[depend_libs] $[depend_metalib]
  711. #else
  712. // This dependent library is not in any metalib.
  713. #set depend_libs $[depend_libs] $[depend]
  714. #endif
  715. #end depend
  716. #endif
  717. #end lib_target noinst_lib_target test_lib_target
  718. // These will never be part of a metalib.
  719. #forscopes static_lib_target dynamic_lib_target ss_lib_target bin_target noinst_bin_target metalib_target
  720. #foreach depend $[LOCAL_LIBS]
  721. #define depend_metalib $[module $[TARGET],$[depend]]
  722. #if $[ne $[depend_metalib],]
  723. // This dependent library is on a metalib.
  724. #if $[eq $[depend_metalib],$[TARGET]]
  725. #print Warning: $[TARGET] circularly depends on $[depend].
  726. #else
  727. #set depend_libs $[depend_libs] $[depend_metalib]
  728. #endif
  729. #else
  730. // This dependent library is not in any metalib.
  731. #set depend_libs $[depend_libs] $[depend]
  732. #endif
  733. #end depend
  734. #end static_lib_target dynamic_lib_target ss_lib_target bin_target noinst_bin_target metalib_target
  735. // In case we're defining any metalibs, these depend directly on
  736. // their components as well.
  737. #set depend_libs $[depend_libs] $[COMPONENT_LIBS(metalib_target)]
  738. $[depend_libs]
  739. #end get_depend_libs
  740. // dtool/pptempl/Global.pp
  741. // Define a few directories that will be useful.
  742. #define install_dir $[$[upcase $[PACKAGE]]_INSTALL]
  743. #if $[eq $[install_dir],]
  744. #error Variable $[upcase $[PACKAGE]]_INSTALL is not set! Cannot install!
  745. #endif
  746. #define other_trees
  747. #define other_trees_lib
  748. #define other_trees_include
  749. #foreach tree $[NEEDS_TREES]
  750. #define tree_install $[$[upcase $[tree]]_INSTALL]
  751. #if $[eq $[tree_install],]
  752. Warning: Variable $[upcase $[tree]]_INSTALL is not set!
  753. #else
  754. #set other_trees $[other_trees] $[tree_install]
  755. #set other_trees_lib $[other_trees_lib] $[tree_install]/lib
  756. #set other_trees_include $[other_trees_include] $[tree_install]/include
  757. #endif
  758. #end tree
  759. #define install_lib_dir $[or $[INSTALL_LIB_DIR],$[install_dir]/lib]
  760. #define other_trees_lib $[or $[INSTALL_LIB_DIR],$[other_trees_lib]]
  761. #define install_headers_dir $[or $[INSTALL_HEADERS_DIR],$[install_dir]/include]
  762. #define other_trees_include $[or $[INSTALL_HEADERS_DIR],$[other_trees_include]]
  763. #define install_bin_dir $[or $[INSTALL_BIN_DIR],$[install_dir]/bin]
  764. #define install_data_dir $[or $[INSTALL_DATA_DIR],$[install_dir]/shared]
  765. #define install_igatedb_dir $[or $[INSTALL_IGATEDB_DIR],$[install_dir]/etc]
  766. #define install_config_dir $[or $[INSTALL_CONFIG_DIR],$[install_dir]/etc]
  767. #defer install_py_dir $[install_lib_dir]/$[PACKAGE]/$[DIRNAME]
  768. #defer install_py_package_dir $[install_lib_dir]/$[PACKAGE]
  769. #if $[ne $[DTOOL_INSTALL],]
  770. #define install_parser_inc_dir $[DTOOL_INSTALL]/include/parser-inc
  771. #else
  772. #define install_parser_inc_dir $[install_headers_dir]/parser-inc
  773. #endif
  774. // Set up the correct interrogate options.
  775. // $[dllext] is redefined in the Windows Global.platform.pp files to
  776. // the string _d if we are building a debug tree. This is inserted
  777. // into the .dll and .in filenames before the extension to make a
  778. // runtime distinction between debug and non-debug builds. For now,
  779. // we make a global definition to empty string, since non-Windows
  780. // platforms will leave this empty.
  781. #define dllext
  782. // $[obj_prefix] defines the prefix that is prepended to the name of
  783. // the object files. It can be used to avoid potential collisions
  784. // when a source file is used by multiple targets but with different
  785. // compile options for each.
  786. //
  787. // $[obj_prefix] may be redefined by one of the Global.platform.pp
  788. // files.
  789. #defer obj_prefix $[TARGET]_
  790. // Caution! interrogate_ipath might be redefined in the
  791. // Global.platform.pp file.
  792. #defer interrogate_ipath $[install_parser_inc_dir:%=-S%] $[INTERROGATE_SYSTEM_IPATH:%=-S%] $[target_ipath:%=-I%]
  793. #defer interrogate_options \
  794. -DCPPPARSER -D__STDC__=1 -D__cplusplus $[SYSTEM_IGATE_FLAGS] \
  795. $[interrogate_ipath] \
  796. $[CDEFINES_OPT$[OPTIMIZE]:%=-D%] \
  797. $[filter -D%,$[C++FLAGS]] \
  798. $[INTERROGATE_OPTIONS] \
  799. $[if $[INTERROGATE_PYTHON_INTERFACE],$[if $[PYTHON_NATIVE],-python-native,-python]] \
  800. $[if $[INTERROGATE_C_INTERFACE],-c] \
  801. $[if $[<= $[OPTIMIZE], 1],-spam]
  802. #defer interrogate_module_options \
  803. $[if $[INTERROGATE_PYTHON_INTERFACE],$[if $[PYTHON_NATIVE],-python-native,-python]] \
  804. $[if $[INTERROGATE_C_INTERFACE],-c]
  805. // The language stuff is used by model builds only.
  806. // Set language_filters to be "%_english %_castillian %_japanese %_german" etc.
  807. #if $[LANGUAGES]
  808. #define language_filters $[subst <pct>,%,$[LANGUAGES:%=<pct>_%]]
  809. #print Using language $[LANGUAGE]
  810. #else
  811. #define language_filters
  812. #endif
  813. #define language_egg_filters $[language_filters:%=%.egg]
  814. #define language_dna_filters $[language_filters:%=%.dna]
  815. // This is used for evaluating SoftImage unpack rules in Template.models.pp.
  816. #defer soft_scene_files $[matrix $[DATABASE]/SCENES/$[SCENE_PREFIX],$[MODEL] $[ANIMS],.1-0.dsc]
  817. // Include the global definitions for this particular build_type, if
  818. // the file is there.
  819. #sinclude $[GLOBAL_TYPE_FILE]