Global.pp 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829
  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 */ss_lib_target */lib_target */noinst_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. // These allow us to determine whether a particular local library is a
  37. // static or a dynamic library. If the library name appears in the
  38. // static_libs map, it is a static library (i.e. libname.a);
  39. // otherwise, it is a dynamic library (libname.so). The target
  40. // ss_lib_target is a special case: these libraries are dynamic where
  41. // it's easy to make them so (e.g. on Unix platforms), and static on
  42. // platforms where dynamic libraries aren't quite so robust (e.g. on
  43. // Windows).
  44. #if $[eq $[PLATFORM],Win32]
  45. #map static_libs TARGET(*/static_lib_target */ss_lib_target)
  46. #map dynamic_libs TARGET(*/lib_target */noinst_lib_target */metalib_target)
  47. #else
  48. #map static_libs TARGET(*/static_lib_target)
  49. #map dynamic_libs TARGET(*/lib_target */ss_lib_target */noinst_lib_target */metalib_target)
  50. #endif
  51. // This lets us identify which metalib, if any, is including each
  52. // named library. That is, $[module $[TARGET],name] will return
  53. // the name of the metalib that includes library name.
  54. #map module COMPONENT_LIBS(*/metalib_target)
  55. // This lets up look up components of a particular metalib.
  56. #map components TARGET(*/lib_target */noinst_lib_target)
  57. // And this lets us look up source directories by dirname.
  58. #map dirnames DIRNAME(*/)
  59. // Define some various compile flags, derived from the variables set
  60. // in Config.pp.
  61. #set INTERROGATE_PYTHON_INTERFACE $[and $[HAVE_PYTHON],$[INTERROGATE_PYTHON_INTERFACE]]
  62. #define run_interrogate $[HAVE_INTERROGATE]
  63. #define stl_ipath $[wildcard $[STL_IPATH]]
  64. #define stl_lpath $[wildcard $[STL_LPATH]]
  65. #define stl_cflags $[STL_CFLAGS]
  66. #define stl_libs $[STL_LIBS]
  67. #if $[HAVE_PYTHON]
  68. #define python_ipath $[wildcard $[PYTHON_IPATH]]
  69. #define python_lpath $[wildcard $[PYTHON_LPATH]]
  70. #endif
  71. #if $[HAVE_NSPR]
  72. #define nspr_ipath $[wildcard $[NSPR_IPATH]]
  73. #define nspr_lpath $[wildcard $[NSPR_LPATH]]
  74. #define nspr_cflags $[NSPR_CFLAGS]
  75. #define nspr_libs $[NSPR_LIBS]
  76. #endif
  77. #if $[HAVE_CRYPTO]
  78. #define crypto_ipath $[wildcard $[CRYPTO_IPATH]]
  79. #define crypto_lpath $[wildcard $[CRYPTO_LPATH]]
  80. #define crypto_cflags $[CRYPTO_CFLAGS]
  81. #define crypto_libs $[CRYPTO_LIBS]
  82. #endif
  83. #if $[HAVE_ZLIB]
  84. #define zlib_ipath $[wildcard $[ZLIB_IPATH]]
  85. #define zlib_lpath $[wildcard $[ZLIB_LPATH]]
  86. #define zlib_cflags $[ZLIB_CFLAGS]
  87. #define zlib_libs $[ZLIB_LIBS]
  88. #endif
  89. #if $[HAVE_SOXST]
  90. #define soxst_ipath $[wildcard $[SOXST_IPATH]]
  91. #define soxst_lpath $[wildcard $[SOXST_LPATH]]
  92. #define soxst_cflags $[SOXST_CFLAGS]
  93. #define soxst_libs $[SOXST_LIBS]
  94. #endif
  95. #if $[HAVE_GL]
  96. #define gl_ipath $[wildcard $[GL_IPATH]]
  97. #define gl_lpath $[wildcard $[GL_LPATH]]
  98. #define gl_cflags $[GL_CFLAGS]
  99. #define gl_libs $[GL_LIBS]
  100. #endif
  101. #if $[HAVE_CHROMIUM]
  102. #define chromium_ipath $[wildcard $[CHROMIUM_IPATH]]
  103. #define chromium_lpath $[wildcard $[CHROMIUM_LPATH]]
  104. #define chromium_cflags $[CHROMIUM_CFLAGS]
  105. #define chromium_libs $[CHROMIUM_LIBS]
  106. #endif
  107. #if $[HAVE_GLX]
  108. #define glx_ipath $[wildcard $[GLX_IPATH]]
  109. #define glx_lpath $[wildcard $[GLX_LPATH]]
  110. #define glx_cflags $[GLX_CFLAGS]
  111. #define glx_libs $[GLX_LIBS]
  112. #endif
  113. #if $[HAVE_GLUT]
  114. #define glut_ipath $[wildcard $[GLUT_IPATH]]
  115. #define glut_lpath $[wildcard $[GLUT_LPATH]]
  116. #define glut_cflags $[GLUT_CFLAGS]
  117. #define glut_libs $[GLUT_LIBS]
  118. #endif
  119. #if $[HAVE_DX]
  120. #define dx_ipath $[wildcard $[DX_IPATH]]
  121. #define dx_lpath $[wildcard $[DX_LPATH]]
  122. #define dx_cflags $[DX_CFLAGS]
  123. #define dx_libs $[DX_LIBS]
  124. #endif
  125. #if $[HAVE_JPEG]
  126. #define jpeg_ipath $[wildcard $[JPEG_IPATH]]
  127. #define jpeg_lpath $[wildcard $[JPEG_LPATH]]
  128. #define jpeg_cflags $[JPEG_CFLAGS]
  129. #define jpeg_libs $[JPEG_LIBS]
  130. #endif
  131. #if $[HAVE_TIFF]
  132. #define tiff_ipath $[wildcard $[TIFF_IPATH]]
  133. #define tiff_lpath $[wildcard $[TIFF_LPATH]]
  134. #define tiff_cflags $[TIFF_CFLAGS]
  135. #define tiff_libs $[TIFF_LIBS]
  136. #endif
  137. #if $[HAVE_FFTW]
  138. #define fftw_ipath $[wildcard $[FFTW_IPATH]]
  139. #define fftw_lpath $[wildcard $[FFTW_LPATH]]
  140. #define fftw_cflags $[FFTW_CFLAGS]
  141. #define fftw_libs $[FFTW_LIBS]
  142. #endif
  143. #if $[HAVE_NURBSPP]
  144. #define nurbspp_ipath $[wildcard $[NURBSPP_IPATH]]
  145. #define nurbspp_lpath $[wildcard $[NURBSPP_LPATH]]
  146. #define nurbspp_cflags $[NURBSPP_CFLAGS]
  147. #define nurbspp_libs $[NURBSPP_LIBS]
  148. #endif
  149. #if $[HAVE_VRPN]
  150. #define vrpn_ipath $[wildcard $[VRPN_IPATH]]
  151. #define vrpn_lpath $[wildcard $[VRPN_LPATH]]
  152. #define vrpn_cflags $[VRPN_CFLAGS]
  153. #define vrpn_libs $[VRPN_LIBS]
  154. #endif
  155. #if $[HAVE_MIKMOD]
  156. #define mikmod_ipath $[wildcard $[MIKMOD_IPATH]]
  157. #define mikmod_lpath $[wildcard $[MIKMOD_LPATH]]
  158. #define mikmod_cflags $[MIKMOD_CFLAGS]
  159. #define mikmod_libs $[MIKMOD_LIBS]
  160. #endif
  161. #if $[HAVE_GTKMM]
  162. #define gtkmm_ipath $[wildcard $[GTKMM_IPATH]]
  163. #define gtkmm_lpath $[wildcard $[GTKMM_LPATH]]
  164. #define gtkmm_cflags $[GTKMM_CFLAGS]
  165. #define gtkmm_libs $[GTKMM_LIBS]
  166. #endif
  167. #if $[HAVE_FREETYPE]
  168. #define freetype_ipath $[wildcard $[FREETYPE_IPATH]]
  169. #define freetype_lpath $[wildcard $[FREETYPE_LPATH]]
  170. #define freetype_cflags $[FREETYPE_CFLAGS]
  171. #define freetype_libs $[FREETYPE_LIBS]
  172. #endif
  173. #if $[and $[HAVE_MAYA],$[MAYA_LOCATION]]
  174. #define maya_ipath $[MAYA_LOCATION]/include
  175. #define maya_lpath $[MAYA_LOCATION]/lib
  176. #define maya_ld $[MAYA_LOCATION]/bin/mayald
  177. #endif
  178. #if $[HAVE_IPC]
  179. #define ipc_ipath $[wildcard $[IPC_IPATH]]
  180. #define ipc_lpath $[wildcard $[IPC_LPATH]]
  181. #define ipc_libs $[IPC_LIBS]
  182. #endif
  183. #if $[HAVE_NET]
  184. #define net_ipath $[wildcard $[NET_IPATH]]
  185. #define net_lpath $[wildcard $[NET_LPATH]]
  186. #define net_libs $[NET_LIBS]
  187. #endif
  188. #if $[HAVE_RAD_MSS]
  189. #define rad_mss_ipath $[wildcard $[RAD_MSS_IPATH]]
  190. #define rad_mss_lpath $[wildcard $[RAD_MSS_LPATH]]
  191. #define rad_mss_libs $[RAD_MSS_LIBS]
  192. #endif
  193. #if $[HAVE_CHROMIUM]
  194. #define chromium_ipath $[wildcard $[CHROMIUM_IPATH]]
  195. #define chromium_lpath $[wildcard $[CHROMIUM_LPATH]]
  196. #define chromium_libs $[CHROMIUM_LIBS]
  197. #endif
  198. // This variable, when evaluated in the scope of a particular directory,
  199. // will indicate true (i.e. nonempty) when the directory is truly built,
  200. // or false (empty) when the directory is not to be built.
  201. #defer build_directory \
  202. $[and \
  203. $[or $[not $[DIRECTORY_IF_PYTHON]],$[HAVE_PYTHON]], \
  204. $[or $[not $[DIRECTORY_IF_NSPR]],$[HAVE_NSPR]], \
  205. $[or $[not $[DIRECTORY_IF_CRYPTO]],$[HAVE_CRYPTO]], \
  206. $[or $[not $[DIRECTORY_IF_ZLIB]],$[HAVE_ZLIB]], \
  207. $[or $[not $[DIRECTORY_IF_SOXST]],$[HAVE_SOXST]], \
  208. $[or $[not $[DIRECTORY_IF_GL]],$[HAVE_GL]], \
  209. $[or $[not $[DIRECTORY_IF_CHROMIUM]],$[HAVE_CHROMIUM]], \
  210. $[or $[not $[DIRECTORY_IF_DX]],$[HAVE_DX]], \
  211. $[or $[not $[DIRECTORY_IF_GLX]],$[HAVE_GLX]], \
  212. $[or $[not $[DIRECTORY_IF_GLUT]],$[HAVE_GLUT]], \
  213. $[or $[not $[DIRECTORY_IF_WGL]],$[HAVE_WGL]], \
  214. $[or $[not $[DIRECTORY_IF_RIB]],$[HAVE_RIB]], \
  215. $[or $[not $[DIRECTORY_IF_PS2]],$[HAVE_PS2]], \
  216. $[or $[not $[DIRECTORY_IF_SGIGL]],$[HAVE_SGIGL]], \
  217. $[or $[not $[DIRECTORY_IF_JPEG]],$[HAVE_JPEG]], \
  218. $[or $[not $[DIRECTORY_IF_TIFF]],$[HAVE_TIFF]], \
  219. $[or $[not $[DIRECTORY_IF_FFTW]],$[HAVE_FFTW]], \
  220. $[or $[not $[DIRECTORY_IF_VRPN]],$[HAVE_VRPN]], \
  221. $[or $[not $[DIRECTORY_IF_GTKMM]],$[HAVE_GTKMM]], \
  222. $[or $[not $[DIRECTORY_IF_MAYA]],$[HAVE_MAYA]], \
  223. $[or $[not $[DIRECTORY_IF_IPC]],$[HAVE_IPC]], \
  224. $[or $[not $[DIRECTORY_IF_NET]],$[HAVE_NET]], \
  225. $[or $[not $[DIRECTORY_IF_AUDIO]],$[HAVE_AUDIO]], \
  226. $[or $[not $[DIRECTORY_IF_INTERROGATE]],$[HAVE_INTERROGATE]], \
  227. 1 ]
  228. // This variable, when evaluated in the scope of a particular target,
  229. // will indicated true when the target should be built, or false when
  230. // the target is not to be built.
  231. #defer build_target \
  232. $[and \
  233. $[or $[not $[TARGET_IF_PYTHON]],$[HAVE_PYTHON]], \
  234. $[or $[not $[TARGET_IF_NSPR]],$[HAVE_NSPR]], \
  235. $[or $[not $[TARGET_IF_CRYPTO]],$[HAVE_CRYPTO]], \
  236. $[or $[not $[TARGET_IF_ZLIB]],$[HAVE_ZLIB]], \
  237. $[or $[not $[TARGET_IF_SOXST]],$[HAVE_SOXST]], \
  238. $[or $[not $[TARGET_IF_GL]],$[HAVE_GL]], \
  239. $[or $[not $[TARGET_IF_CHROMIUM]],$[HAVE_CHROMIUM]], \
  240. $[or $[not $[TARGET_IF_DX]],$[HAVE_DX]], \
  241. $[or $[not $[TARGET_IF_GLX]],$[HAVE_GLX]], \
  242. $[or $[not $[TARGET_IF_GLUT]],$[HAVE_GLUT]], \
  243. $[or $[not $[TARGET_IF_WGL]],$[HAVE_WGL]], \
  244. $[or $[not $[TARGET_IF_RIB]],$[HAVE_RIB]], \
  245. $[or $[not $[TARGET_IF_PS2]],$[HAVE_PS2]], \
  246. $[or $[not $[TARGET_IF_SGIGL]],$[HAVE_SGIGL]], \
  247. $[or $[not $[TARGET_IF_JPEG]],$[HAVE_JPEG]], \
  248. $[or $[not $[TARGET_IF_TIFF]],$[HAVE_TIFF]], \
  249. $[or $[not $[TARGET_IF_FFTW]],$[HAVE_FFTW]], \
  250. $[or $[not $[TARGET_IF_VRPN]],$[HAVE_VRPN]], \
  251. $[or $[not $[TARGET_IF_GTKMM]],$[HAVE_GTKMM]], \
  252. $[or $[not $[TARGET_IF_MAYA]],$[HAVE_MAYA]], \
  253. $[or $[not $[TARGET_IF_IPC]],$[HAVE_IPC]], \
  254. $[or $[not $[TARGET_IF_NET]],$[HAVE_NET]], \
  255. $[or $[not $[TARGET_IF_AUDIO]],$[HAVE_AUDIO]], \
  256. 1 ]
  257. // This takes advantage of the above two variables to get the actual
  258. // list of local libraries we are to link with, eliminating those that
  259. // won't be built.
  260. #defer active_local_libs \
  261. $[all_libs $[if $[and $[build_directory],$[build_target]],$[TARGET]],$[LOCAL_LIBS]]
  262. #defer active_component_libs \
  263. $[all_libs $[if $[and $[build_directory],$[build_target]],$[TARGET]],$[COMPONENT_LIBS]]
  264. #defer active_libs $[active_local_libs] $[active_component_libs]
  265. // This variable, when evaluated within a target, will either be empty
  266. // string if the target is not to be built, or the target name if it
  267. // is.
  268. #defer active_target $[if $[build_target],$[TARGET]]
  269. #if $[USE_SINGLE_COMPOSITE_SOURCEFILE]
  270. // for non-composite dirs, want to avoid returning the composite default name
  271. #defer get_combined_sources $[if $[ne $[COMBINED_SOURCES],], $[TARGET]_composite.cxx,]
  272. #else
  273. #defer get_combined_sources $[COMBINED_SOURCES]
  274. #endif
  275. // This subroutine will set up the sources variable to reflect the
  276. // complete set of sources for this target, and also set the
  277. // alt_cflags, alt_libs, etc. as appropriate according to how the
  278. // various USE_* flags are set for the current target.
  279. // This variable returns the complete set of sources for the current
  280. // target.
  281. #defer get_sources \
  282. $[SOURCES] \
  283. $[PRECOMPILED_HEADER] \
  284. $[if $[ne $[NO_COMBINED_SOURCES],], $[INCLUDED_SOURCES], $[get_combined_sources]] \
  285. $[if $[HAVE_CRYPTO],$[IF_CRYPTO_SOURCES]] \
  286. $[if $[HAVE_TIFF],$[IF_TIFF_SOURCES]] \
  287. $[if $[HAVE_FFTW],$[IF_FFTW_SOURCES]] \
  288. $[if $[HAVE_NURBSPP],$[IF_NURBSPP_SOURCES]] \
  289. $[if $[HAVE_JPEG], $[IF_JPEG_SOURCES] $[if $[ne $[NO_COMBINED_SOURCES],], $[IF_JPEG_INCLUDED_SOURCES], $[IF_JPEG_COMBINED_SOURCES]]] \
  290. $[if $[HAVE_ZLIB], $[IF_ZLIB_SOURCES] $[if $[ne $[NO_COMBINED_SOURCES],], $[IF_ZLIB_INCLUDED_SOURCES], $[IF_ZLIB_COMBINED_SOURCES]]] \
  291. $[if $[HAVE_NET], $[IF_NET_SOURCES] $[if $[ne $[NO_COMBINED_SOURCES],], $[IF_NET_INCLUDED_SOURCES], $[IF_NET_COMBINED_SOURCES]]] \
  292. $[if $[HAVE_IPC],$[IF_IPC_SOURCES]] \
  293. $[if $[HAVE_PYTHON],$[IF_PYTHON_SOURCES]]
  294. #defer all_sources \
  295. $[SOURCES] \
  296. $[PRECOMPILED_HEADER] \
  297. $[if $[ne $[NO_COMBINED_SOURCES],], $[INCLUDED_SOURCES], $[get_combined_sources]] \
  298. $[IF_CRYPTO_SOURCES] \
  299. $[IF_TIFF_SOURCES] \
  300. $[IF_FFTW_SOURCES] \
  301. $[IF_NURBSPP_SOURCES] \
  302. $[if $[HAVE_JPEG], $[IF_JPEG_SOURCES] $[if $[ne $[NO_COMBINED_SOURCES],], $[IF_JPEG_INCLUDED_SOURCES], $[IF_JPEG_COMBINED_SOURCES]]] \
  303. $[if $[HAVE_ZLIB], $[IF_ZLIB_SOURCES] $[if $[ne $[NO_COMBINED_SOURCES],], $[IF_ZLIB_INCLUDED_SOURCES], $[IF_ZLIB_COMBINED_SOURCES]]] \
  304. $[if $[HAVE_NET], $[IF_NET_SOURCES] $[if $[ne $[NO_COMBINED_SOURCES],], $[IF_NET_INCLUDED_SOURCES], $[IF_NET_COMBINED_SOURCES]]] \
  305. $[IF_IPC_SOURCES] \
  306. $[IF_PYTHON_SOURCES]
  307. #defer included_sources $[INCLUDED_SOURCES] $[if $[HAVE_ZLIB],$[IF_ZLIB_INCLUDED_SOURCES]] $[if $[HAVE_NET],$[IF_NET_INCLUDED_SOURCES]] $[if $[USE_SINGLE_COMPOSITE_SOURCEFILE], $[COMBINED_SOURCES]] $[if $[HAVE_JPEG],$[IF_JPEG_INCLUDED_SOURCES]]
  308. // This variable returns the set of sources that are to be
  309. // interrogated for the current target.
  310. #defer get_igatescan \
  311. $[if $[and $[run_interrogate],$[IGATESCAN]], \
  312. $[if $[eq $[IGATESCAN], all], \
  313. $[filter-out %.I %.T %.lxx %.yxx %.N %_src.cxx,$[get_sources]], \
  314. $[IGATESCAN]]]
  315. // This variable returns the name of the interrogate database file
  316. // that will be generated for a particular target, or empty string if
  317. // the target is not to be interrogated.
  318. #defer get_igatedb \
  319. $[if $[and $[run_interrogate],$[IGATESCAN]], \
  320. lib$[TARGET]$[dllext].in]
  321. // This variable returns the name of the interrogate code file
  322. // that will be generated for a particular target, or empty string if
  323. // the target is not to be interrogated.
  324. #defer get_igateoutput \
  325. $[if $[and $[run_interrogate],$[IGATESCAN]], \
  326. lib$[TARGET]_igate.cxx]
  327. #defer get_precompiled_header $[PRECOMPILED_HEADER]
  328. // This variable returns the name of the fake precompiled header cxx
  329. // that will be used to force linking of the generated pch .obj into libs
  330. #defer get_pch_outputcxx \
  331. $[if $[and $[DO_PCH], $[PRECOMPILED_HEADER]], \
  332. $[patsubst %.h,%.cxx, $[PRECOMPILED_HEADER]]]
  333. // This variable returns the name of the interrogate module, if the
  334. // current metalib target should include one, or empty string if it
  335. // should not.
  336. #defer get_igatemscan \
  337. $[if $[and $[run_interrogate],$[components $[IGATESCAN],$[active_component_libs]]], \
  338. $[TARGET]]
  339. // This function returns the appropriate cflags for the target, based
  340. // on the various external packages this particular target claims to
  341. // require.
  342. #defun get_cflags
  343. #define alt_cflags $[stl_cflags] $[nspr_cflags] $[python_cflags]
  344. #if $[ne $[USE_CRYPTO] $[components $[USE_CRYPTO],$[active_component_libs]],]
  345. #set alt_cflags $[alt_cflags] $[crypto_cflags]
  346. #endif
  347. #if $[ne $[USE_ZLIB] $[components $[USE_ZLIB],$[active_component_libs]],]
  348. #set alt_cflags $[alt_cflags] $[zlib_cflags]
  349. #endif
  350. #if $[ne $[USE_GL] $[components $[USE_GL],$[active_component_libs]],]
  351. #set alt_cflags $[alt_cflags] $[gl_cflags]
  352. #endif
  353. #if $[ne $[USE_CHROMIUM] $[components $[USE_CHROMIUM],$[active_component_libs]],]
  354. #set alt_cflags $[alt_cflags] $[chromium_cflags]
  355. #endif
  356. #if $[ne $[USE_GLX] $[components $[USE_GLX],$[active_component_libs]],]
  357. #set alt_cflags $[alt_cflags] $[glx_cflags]
  358. #endif
  359. #if $[ne $[USE_GLUT] $[components $[USE_GLUT],$[active_component_libs]],]
  360. #set alt_cflags $[alt_cflags] $[glut_cflags]
  361. #endif
  362. #if $[ne $[USE_DX] $[components $[USE_DX],$[active_component_libs]],]
  363. #set alt_cflags $[alt_cflags] $[dx_cflags]
  364. #endif
  365. #if $[ne $[USE_SOXST] $[components $[USE_SOXST],$[active_component_libs]],]
  366. #set alt_cflags $[alt_cflags] $[soxst_cflags]
  367. #endif
  368. #if $[ne $[USE_IPC] $[components $[USE_IPC],$[active_component_libs]],]
  369. #set alt_cflags $[alt_cflags] $[ipc_cflags]
  370. #endif
  371. #if $[ne $[USE_NET] $[components $[USE_NET],$[active_component_libs]],]
  372. #set alt_cflags $[alt_cflags] $[net_cflags]
  373. #endif
  374. #if $[ne $[USE_JPEG] $[components $[USE_JPEG],$[active_component_libs]],]
  375. #set alt_cflags $[alt_cflags] $[jpeg_cflags]
  376. #endif
  377. #if $[ne $[USE_TIFF] $[components $[USE_TIFF],$[active_component_libs]],]
  378. #set alt_cflags $[alt_cflags] $[tiff_cflags]
  379. #endif
  380. #if $[ne $[USE_FFTW] $[components $[USE_FFTW],$[active_component_libs]],]
  381. #set alt_cflags $[alt_cflags] $[fftw_cflags]
  382. #endif
  383. #if $[ne $[USE_NURBSPP] $[components $[USE_NURBSPP],$[active_component_libs]],]
  384. #set alt_cflags $[alt_cflags] $[nurbspp_cflags]
  385. #endif
  386. #if $[ne $[USE_VRPN] $[components $[USE_VRPN],$[active_component_libs]],]
  387. #set alt_cflags $[alt_cflags] $[vrpn_cflags]
  388. #endif
  389. #if $[ne $[USE_RAD_MSS] $[components $[USE_RAD_MSS],$[active_component_libs]],]
  390. #set alt_cflags $[alt_cflags] $[rad_mss_cflags]
  391. #endif
  392. #if $[ne $[USE_MIKMOD] $[components $[USE_MIKMOD],$[active_component_libs]],]
  393. #set alt_cflags $[alt_cflags] $[mikmod_cflags]
  394. #endif
  395. #if $[ne $[USE_GTKMM] $[components $[USE_GTKMM],$[active_component_libs]],]
  396. #set alt_cflags $[alt_cflags] $[gtkmm_cflags]
  397. #endif
  398. #if $[ne $[USE_FREETYPE] $[components $[USE_FREETYPE],$[active_component_libs]],]
  399. #set alt_cflags $[alt_cflags] $[freetype_cflags]
  400. #endif
  401. #if $[ne $[USE_MAYA] $[components $[USE_MAYA],$[active_component_libs]],]
  402. #set alt_cflags $[alt_cflags] $[maya_cflags]
  403. #endif
  404. $[alt_cflags]
  405. #end get_cflags
  406. // This function returns the appropriate include path for the target,
  407. // based on the various external packages this particular target
  408. // claims to require. This returns a space-separated set of directory
  409. // names only; the -I switch is not included here.
  410. #defun get_ipath
  411. #define alt_ipath $[stl_ipath] $[nspr_ipath] $[python_ipath]
  412. #if $[ne $[USE_CRYPTO] $[components $[USE_CRYPTO],$[active_component_libs]],]
  413. #set alt_ipath $[alt_ipath] $[crypto_ipath]
  414. #endif
  415. #if $[ne $[USE_ZLIB] $[components $[USE_ZLIB],$[active_component_libs]],]
  416. #set alt_ipath $[alt_ipath] $[zlib_ipath]
  417. #endif
  418. #if $[ne $[USE_GL] $[components $[USE_GL],$[active_component_libs]],]
  419. #set alt_ipath $[alt_ipath] $[gl_ipath]
  420. #endif
  421. #if $[ne $[USE_CHROMIUM] $[components $[USE_CHROMIUM],$[active_component_libs]],]
  422. #set alt_ipath $[alt_ipath] $[chromium_ipath]
  423. #endif
  424. #if $[ne $[USE_GLX] $[components $[USE_GLX],$[active_component_libs]],]
  425. #set alt_ipath $[alt_ipath] $[glx_ipath]
  426. #endif
  427. #if $[ne $[USE_GLUT] $[components $[USE_GLUT],$[active_component_libs]],]
  428. #set alt_ipath $[alt_ipath] $[glut_ipath]
  429. #endif
  430. #if $[ne $[USE_DX] $[components $[USE_DX],$[active_component_libs]],]
  431. #set alt_ipath $[alt_ipath] $[dx_ipath]
  432. #endif
  433. #if $[ne $[USE_SOXST] $[components $[USE_SOXST],$[active_component_libs]],]
  434. #set alt_ipath $[alt_ipath] $[soxst_ipath]
  435. #endif
  436. #if $[ne $[USE_IPC] $[components $[USE_IPC],$[active_component_libs]],]
  437. #set alt_ipath $[alt_ipath] $[ipc_ipath]
  438. #endif
  439. #if $[ne $[USE_NET] $[components $[USE_NET],$[active_component_libs]],]
  440. #set alt_ipath $[alt_ipath] $[net_ipath]
  441. #endif
  442. #if $[ne $[USE_JPEG] $[components $[USE_JPEG],$[active_component_libs]],]
  443. #set alt_ipath $[alt_ipath] $[jpeg_ipath]
  444. #endif
  445. #if $[ne $[USE_TIFF] $[components $[USE_TIFF],$[active_component_libs]],]
  446. #set alt_ipath $[alt_ipath] $[tiff_ipath]
  447. #endif
  448. #if $[ne $[USE_FFTW] $[components $[USE_FFTW],$[active_component_libs]],]
  449. #set alt_ipath $[alt_ipath] $[fftw_ipath]
  450. #endif
  451. #if $[ne $[USE_NURBSPP] $[components $[USE_NURBSPP],$[active_component_libs]],]
  452. #set alt_ipath $[alt_ipath] $[nurbspp_ipath]
  453. #endif
  454. #if $[ne $[USE_VRPN] $[components $[USE_VRPN],$[active_component_libs]],]
  455. #set alt_ipath $[alt_ipath] $[vrpn_ipath]
  456. #endif
  457. #if $[ne $[USE_RAD_MSS] $[components $[USE_RAD_MSS],$[active_component_libs]],]
  458. #set alt_ipath $[alt_ipath] $[rad_mss_ipath]
  459. #endif
  460. #if $[ne $[USE_MIKMOD] $[components $[USE_MIKMOD],$[active_component_libs]],]
  461. #set alt_ipath $[alt_ipath] $[mikmod_ipath]
  462. #endif
  463. #if $[ne $[USE_GTKMM] $[components $[USE_GTKMM],$[active_component_libs]],]
  464. #set alt_ipath $[alt_ipath] $[gtkmm_ipath]
  465. #endif
  466. #if $[ne $[USE_FREETYPE] $[components $[USE_FREETYPE],$[active_component_libs]],]
  467. #set alt_ipath $[alt_ipath] $[freetype_ipath]
  468. #endif
  469. #if $[ne $[USE_MAYA] $[components $[USE_MAYA],$[active_component_libs]],]
  470. #set alt_ipath $[alt_ipath] $[maya_ipath]
  471. #endif
  472. $[alt_ipath]
  473. #end get_ipath
  474. // This function returns the appropriate library search path for the
  475. // target, based on the various external packages this particular
  476. // target claims to require. This returns a space-separated set of
  477. // directory names only; the -L switch is not included here.
  478. #defun get_lpath
  479. #define alt_lpath $[stl_lpath] $[nspr_lpath] $[python_lpath]
  480. #if $[eq $[PLATFORM],Win32]
  481. #set alt_lpath $[WIN32_PLATFORMSDK_LIBPATH] $[alt_lpath]
  482. #endif
  483. #if $[ne $[USE_CRYPTO] $[components $[USE_CRYPTO],$[active_component_libs] $[transitive_link]],]
  484. #set alt_lpath $[alt_lpath] $[crypto_lpath]
  485. #endif
  486. #if $[ne $[USE_ZLIB] $[components $[USE_ZLIB],$[active_component_libs] $[transitive_link]],]
  487. #set alt_lpath $[alt_lpath] $[zlib_lpath]
  488. #endif
  489. #if $[ne $[USE_GL] $[components $[USE_GL],$[active_component_libs] $[transitive_link]],]
  490. #set alt_lpath $[alt_lpath] $[gl_lpath]
  491. #endif
  492. #if $[ne $[USE_CHROMIUM] $[components $[USE_CHROMIUM],$[active_component_libs] $[transitive_link]],]
  493. #set alt_lpath $[alt_lpath] $[chromium_lpath]
  494. #endif
  495. #if $[ne $[USE_GLX] $[components $[USE_GLX],$[active_component_libs] $[transitive_link]],]
  496. #set alt_lpath $[alt_lpath] $[glx_lpath]
  497. #endif
  498. #if $[ne $[USE_GLUT] $[components $[USE_GLUT],$[active_component_libs] $[transitive_link]],]
  499. #set alt_lpath $[alt_lpath] $[glut_lpath]
  500. #endif
  501. #if $[ne $[USE_DX] $[components $[USE_DX],$[active_component_libs] $[transitive_link]],]
  502. #set alt_lpath $[alt_lpath] $[dx_lpath]
  503. #endif
  504. #if $[ne $[USE_SOXST] $[components $[USE_SOXST],$[active_component_libs] $[transitive_link]],]
  505. #set alt_lpath $[alt_lpath] $[soxst_lpath]
  506. #endif
  507. #if $[ne $[USE_IPC] $[components $[USE_IPC],$[active_component_libs] $[transitive_link]],]
  508. #set alt_lpath $[alt_lpath] $[ipc_lpath]
  509. #endif
  510. #if $[ne $[USE_NET] $[components $[USE_NET],$[active_component_libs] $[transitive_link]],]
  511. #set alt_lpath $[alt_lpath] $[net_lpath]
  512. #endif
  513. #if $[ne $[USE_JPEG] $[components $[USE_JPEG],$[active_component_libs] $[transitive_link]],]
  514. #set alt_lpath $[alt_lpath] $[jpeg_lpath]
  515. #endif
  516. #if $[ne $[USE_TIFF] $[components $[USE_TIFF],$[active_component_libs] $[transitive_link]],]
  517. #set alt_lpath $[alt_lpath] $[tiff_lpath]
  518. #endif
  519. #if $[ne $[USE_FFTW] $[components $[USE_FFTW],$[active_component_libs] $[transitive_link]],]
  520. #set alt_lpath $[alt_lpath] $[fftw_lpath]
  521. #endif
  522. #if $[ne $[USE_NURBSPP] $[components $[USE_NURBSPP],$[active_component_libs] $[transitive_link]],]
  523. #set alt_lpath $[alt_lpath] $[nurbspp_lpath]
  524. #endif
  525. #if $[ne $[USE_VRPN] $[components $[USE_VRPN],$[active_component_libs] $[transitive_link]],]
  526. #set alt_lpath $[alt_lpath] $[vrpn_lpath]
  527. #endif
  528. #if $[ne $[USE_RAD_MSS] $[components $[USE_RAD_MSS],$[active_component_libs] $[transitive_link]],]
  529. #set alt_lpath $[alt_lpath] $[rad_mss_lpath]
  530. #endif
  531. #if $[ne $[USE_MIKMOD] $[components $[USE_MIKMOD],$[active_component_libs] $[transitive_link]],]
  532. #set alt_lpath $[alt_lpath] $[mikmod_lpath]
  533. #endif
  534. #if $[ne $[USE_GTKMM] $[components $[USE_GTKMM],$[active_component_libs] $[transitive_link]],]
  535. #set alt_lpath $[alt_lpath] $[gtkmm_lpath]
  536. #endif
  537. #if $[ne $[USE_FREETYPE] $[components $[USE_FREETYPE],$[active_component_libs] $[transitive_link]],]
  538. #set alt_lpath $[alt_lpath] $[freetype_lpath]
  539. #endif
  540. #if $[ne $[USE_MAYA] $[components $[USE_MAYA],$[active_component_libs] $[transitive_link]],]
  541. #set alt_lpath $[alt_lpath] $[maya_lpath]
  542. #endif
  543. $[alt_lpath]
  544. #end get_lpath
  545. // This function returns the appropriate set of library names to link
  546. // with for the target, based on the various external packages this
  547. // particular target claims to require. This returns a
  548. // space-separated set of library names only; the -l switch is not
  549. // included here.
  550. #defun get_libs
  551. #define alt_libs $[stl_libs] $[nspr_libs] $[python_libs] $[TARGET_LIBS]
  552. #if $[ne $[USE_CRYPTO] $[components $[USE_CRYPTO],$[active_component_libs] $[transitive_link]],]
  553. #set alt_libs $[alt_libs] $[crypto_libs]
  554. #endif
  555. #if $[ne $[USE_ZLIB] $[components $[USE_ZLIB],$[active_component_libs] $[transitive_link]],]
  556. #set alt_libs $[alt_libs] $[zlib_libs]
  557. #endif
  558. #if $[ne $[USE_GL] $[components $[USE_GL],$[active_component_libs] $[transitive_link]],]
  559. #set alt_libs $[alt_libs] $[gl_libs]
  560. #endif
  561. #if $[ne $[USE_CHROMIUM] $[components $[USE_CHROMIUM],$[active_component_libs] $[transitive_link]],]
  562. #set alt_libs $[alt_libs] $[chromium_libs]
  563. #endif
  564. #if $[ne $[USE_GLX] $[components $[USE_GLX],$[active_component_libs] $[transitive_link]],]
  565. #set alt_libs $[alt_libs] $[glx_libs]
  566. #endif
  567. #if $[ne $[USE_GLUT] $[components $[USE_GLUT],$[active_component_libs] $[transitive_link]],]
  568. #set alt_libs $[alt_libs] $[glut_libs]
  569. #endif
  570. #if $[ne $[USE_DX] $[components $[USE_DX],$[active_component_libs] $[transitive_link]],]
  571. #set alt_libs $[alt_libs] $[dx_libs]
  572. #endif
  573. #if $[ne $[USE_SOXST] $[components $[USE_SOXST],$[active_component_libs] $[transitive_link]],]
  574. #set alt_libs $[alt_libs] $[soxst_libs]
  575. #endif
  576. #if $[ne $[USE_IPC] $[components $[USE_IPC],$[active_component_libs] $[transitive_link]],]
  577. #set alt_libs $[alt_libs] $[ipc_libs]
  578. #endif
  579. #if $[ne $[USE_NET] $[components $[USE_NET],$[active_component_libs] $[transitive_link]],]
  580. #set alt_libs $[alt_libs] $[net_libs]
  581. #endif
  582. #if $[ne $[USE_JPEG] $[components $[USE_JPEG],$[active_component_libs] $[transitive_link]],]
  583. #set alt_libs $[alt_libs] $[jpeg_libs]
  584. #endif
  585. #if $[ne $[USE_TIFF] $[components $[USE_TIFF],$[active_component_libs] $[transitive_link]],]
  586. #set alt_libs $[alt_libs] $[tiff_libs]
  587. #endif
  588. #if $[ne $[USE_FFTW] $[components $[USE_FFTW],$[active_component_libs] $[transitive_link]],]
  589. #set alt_libs $[alt_libs] $[fftw_libs]
  590. #endif
  591. #if $[ne $[USE_NURBSPP] $[components $[USE_NURBSPP],$[active_component_libs] $[transitive_link]],]
  592. #set alt_libs $[alt_libs] $[nurbspp_libs]
  593. #endif
  594. #if $[ne $[USE_VRPN] $[components $[USE_VRPN],$[active_component_libs] $[transitive_link]],]
  595. #set alt_libs $[alt_libs] $[vrpn_libs]
  596. #endif
  597. #if $[ne $[USE_RAD_MSS] $[components $[USE_RAD_MSS],$[active_component_libs] $[transitive_link]],]
  598. #set alt_libs $[alt_libs] $[rad_mss_libs]
  599. #endif
  600. #if $[ne $[USE_MIKMOD] $[components $[USE_MIKMOD],$[active_component_libs] $[transitive_link]],]
  601. #set alt_libs $[alt_libs] $[mikmod_libs]
  602. #endif
  603. #if $[ne $[USE_GTKMM] $[components $[USE_GTKMM],$[active_component_libs] $[transitive_link]],]
  604. #set alt_libs $[alt_libs] $[gtkmm_libs]
  605. #endif
  606. #if $[ne $[USE_FREETYPE] $[components $[USE_FREETYPE],$[active_component_libs] $[transitive_link]],]
  607. #set alt_libs $[alt_libs] $[freetype_libs]
  608. #endif
  609. #if $[ne $[USE_MAYA] $[components $[USE_MAYA],$[active_component_libs] $[transitive_link]],]
  610. #set alt_libs $[alt_libs] $[maya_libs]
  611. #endif
  612. #if $[UNIX_PLATFORM]
  613. #set alt_libs $[alt_libs] $[UNIX_SYS_LIBS] $[components $[UNIX_SYS_LIBS],$[active_component_libs] $[transitive_link]]
  614. #endif
  615. #if $[WINDOWS_PLATFORM]
  616. #set alt_libs $[alt_libs] $[WIN_SYS_LIBS] $[components $[WIN_SYS_LIBS],$[active_component_libs] $[transitive_link]]
  617. #endif
  618. $[alt_libs]
  619. #end get_libs
  620. // This function returns the appropriate value for ld for the target.
  621. #defun get_ld
  622. #if $[ne $[USE_MAYA] $[components $[USE_MAYA],$[COMPONENT_LD]],]
  623. $[maya_ld]
  624. #endif
  625. #end get_ld
  626. // This function determines the set of libraries our various targets
  627. // depend on. This is a complicated definition. It is the union of
  628. // all of our targets' dependencies, except:
  629. // If a target is part of a metalib, it depends (a) directly on all of
  630. // its normal library dependencies that are part of the same metalib,
  631. // and (b) indirectly on all of the metalibs that every other library
  632. // dependency is part of. If a target is not part of a metalib, it is
  633. // the same as case (b) above.
  634. #defun get_depend_libs
  635. #define depend_libs
  636. #forscopes lib_target noinst_lib_target
  637. #define metalib $[module $[TARGET],$[TARGET]]
  638. #if $[ne $[metalib],]
  639. // This library is included on a metalib.
  640. #foreach depend $[LOCAL_LIBS]
  641. #define depend_metalib $[module $[TARGET],$[depend]]
  642. #if $[eq $[depend_metalib],$[metalib]]
  643. // Here's a dependent library in the *same* metalib.
  644. #set depend_libs $[depend_libs] $[depend]
  645. #elif $[ne $[depend_metalib],]
  646. // This dependent library is in a *different* metalib.
  647. #set depend_libs $[depend_libs] $[depend_metalib]
  648. #else
  649. // This dependent library is not in any metalib.
  650. #set depend_libs $[depend_libs] $[depend]
  651. #endif
  652. #end depend
  653. #else
  654. // This library is *not* included on a metalib.
  655. #foreach depend $[LOCAL_LIBS]
  656. #define depend_metalib $[module $[TARGET],$[depend]]
  657. #if $[ne $[depend_metalib],]
  658. // This dependent library is on a metalib.
  659. #set depend_libs $[depend_libs] $[depend_metalib]
  660. #else
  661. // This dependent library is not in any metalib.
  662. #set depend_libs $[depend_libs] $[depend]
  663. #endif
  664. #end depend
  665. #endif
  666. #end lib_target noinst_lib_target
  667. // These will never be part of a metalib.
  668. #forscopes static_lib_target ss_lib_target bin_target noinst_bin_target metalib_target
  669. #foreach depend $[LOCAL_LIBS]
  670. #define depend_metalib $[module $[TARGET],$[depend]]
  671. #if $[ne $[depend_metalib],]
  672. // This dependent library is on a metalib.
  673. #set depend_libs $[depend_libs] $[depend_metalib]
  674. #else
  675. // This dependent library is not in any metalib.
  676. #set depend_libs $[depend_libs] $[depend]
  677. #endif
  678. #end depend
  679. #end static_lib_target ss_lib_target bin_target noinst_bin_target metalib_target
  680. // In case we're defining any metalibs, these depend directly on
  681. // their components as well.
  682. #set depend_libs $[depend_libs] $[COMPONENT_LIBS(metalib_target)]
  683. $[depend_libs]
  684. #end get_depend_libs
  685. // Define a few directories that will be useful.
  686. #define so_dir $[ODIR_SHARED]
  687. #define st_dir $[ODIR_STATIC]
  688. #define install_dir $[$[upcase $[PACKAGE]]_INSTALL]
  689. #if $[eq $[install_dir],]
  690. #error Variable $[upcase $[PACKAGE]]_INSTALL is not set! Cannot install!
  691. #endif
  692. #define other_trees
  693. #foreach tree $[NEEDS_TREES]
  694. #define tree_install $[$[upcase $[tree]]_INSTALL]
  695. #if $[eq $[tree_install],]
  696. Warning: Variable $[upcase $[tree]]_INSTALL is not set!
  697. #else
  698. #set other_trees $[other_trees] $[tree_install]
  699. #endif
  700. #end tree
  701. #define install_lib_dir $[install_dir]/lib
  702. #define install_bin_dir $[install_dir]/bin
  703. #define install_headers_dir $[install_dir]/include
  704. #define install_data_dir $[install_dir]/shared
  705. #define install_igatedb_dir $[install_dir]/etc
  706. #define install_config_dir $[install_dir]/etc
  707. #if $[ne $[DTOOL_INSTALL],]
  708. #define install_parser_inc_dir $[DTOOL_INSTALL]/include/parser-inc
  709. #else
  710. #define install_parser_inc_dir $[install_headers_dir]/parser-inc
  711. #endif
  712. // Set up the correct interrogate options.
  713. // $[dllext] is redefined in the Windows Global.platform.pp files to
  714. // the string _d if we are building a debug tree. This is inserted
  715. // into the .dll and .in filenames before the extension to make a
  716. // runtime distinction between debug and non-debug builds. For now,
  717. // we make a global definition to empty string, since non-Windows
  718. // platforms will leave this empty.
  719. #define dllext
  720. // Caution! interrogate_ipath might be redefined in the
  721. // Global.platform.pp file.
  722. #defer interrogate_ipath $[target_ipath:%=-I%]
  723. #defer interrogate_spath $[install_parser_inc_dir:%=-S%]
  724. #defer interrogate_options \
  725. -DCPPPARSER -D__cplusplus $[SYSTEM_IGATE_FLAGS] \
  726. $[interrogate_spath] $[interrogate_ipath] \
  727. $[CDEFINES_OPT$[OPTIMIZE]:%=-D%] \
  728. $[filter -D%,$[C++FLAGS]] \
  729. $[INTERROGATE_OPTIONS] \
  730. $[if $[INTERROGATE_PYTHON_INTERFACE],-python] \
  731. $[if $[INTERROGATE_C_INTERFACE],-c] \
  732. $[if $[TRACK_IN_INTERPRETER],-track-interpreter] \
  733. $[if $[<= $[OPTIMIZE], 1],-spam]
  734. #defer interrogate_module_options \
  735. $[if $[INTERROGATE_PYTHON_INTERFACE],-python] \
  736. $[if $[INTERROGATE_C_INTERFACE],-c] \
  737. $[if $[TRACK_IN_INTERPRETER],-track-interpreter]
  738. // Include the global definitions for this particular build_type, if
  739. // the file is there.
  740. #sinclude $[GLOBAL_TYPE_FILE]