Global.pp 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547
  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 $[WINDOWS_PLATFORM]
  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_SSL]
  78. #define ssl_ipath $[wildcard $[SSL_IPATH]]
  79. #define ssl_lpath $[wildcard $[SSL_LPATH]]
  80. #define ssl_cflags $[SSL_CFLAGS]
  81. #define ssl_libs $[SSL_LIBS]
  82. #endif
  83. #if $[HAVE_CRYPTO]
  84. #define crypto_ipath $[wildcard $[CRYPTO_IPATH]]
  85. #define crypto_lpath $[wildcard $[CRYPTO_LPATH]]
  86. #define crypto_cflags $[CRYPTO_CFLAGS]
  87. #define crypto_libs $[CRYPTO_LIBS]
  88. #endif
  89. #if $[HAVE_ZLIB]
  90. #define zlib_ipath $[wildcard $[ZLIB_IPATH]]
  91. #define zlib_lpath $[wildcard $[ZLIB_LPATH]]
  92. #define zlib_cflags $[ZLIB_CFLAGS]
  93. #define zlib_libs $[ZLIB_LIBS]
  94. #endif
  95. #if $[HAVE_SOXST]
  96. #define soxst_ipath $[wildcard $[SOXST_IPATH]]
  97. #define soxst_lpath $[wildcard $[SOXST_LPATH]]
  98. #define soxst_cflags $[SOXST_CFLAGS]
  99. #define soxst_libs $[SOXST_LIBS]
  100. #endif
  101. #if $[HAVE_GL]
  102. #define gl_ipath $[wildcard $[GL_IPATH]]
  103. #define gl_lpath $[wildcard $[GL_LPATH]]
  104. #define gl_cflags $[GL_CFLAGS]
  105. #define gl_libs $[GL_LIBS]
  106. #endif
  107. #if $[HAVE_CHROMIUM]
  108. #define chromium_ipath $[wildcard $[CHROMIUM_IPATH]]
  109. #define chromium_lpath $[wildcard $[CHROMIUM_LPATH]]
  110. #define chromium_cflags $[CHROMIUM_CFLAGS]
  111. #define chromium_libs $[CHROMIUM_LIBS]
  112. #endif
  113. #if $[HAVE_GLX]
  114. #define glx_ipath $[wildcard $[GLX_IPATH]]
  115. #define glx_lpath $[wildcard $[GLX_LPATH]]
  116. #define glx_cflags $[GLX_CFLAGS]
  117. #define glx_libs $[GLX_LIBS]
  118. #endif
  119. #if $[HAVE_GLUT]
  120. #define glut_ipath $[wildcard $[GLUT_IPATH]]
  121. #define glut_lpath $[wildcard $[GLUT_LPATH]]
  122. #define glut_cflags $[GLUT_CFLAGS]
  123. #define glut_libs $[GLUT_LIBS]
  124. #endif
  125. #if $[HAVE_DX]
  126. #define dx_ipath $[wildcard $[DX_IPATH]]
  127. #define dx_lpath $[wildcard $[DX_LPATH]]
  128. #define dx_cflags $[DX_CFLAGS]
  129. #define dx_libs $[DX_LIBS]
  130. #endif
  131. #if $[HAVE_JPEG]
  132. #define jpeg_ipath $[wildcard $[JPEG_IPATH]]
  133. #define jpeg_lpath $[wildcard $[JPEG_LPATH]]
  134. #define jpeg_cflags $[JPEG_CFLAGS]
  135. #define jpeg_libs $[JPEG_LIBS]
  136. #endif
  137. #if $[HAVE_JPEG2000]
  138. #define jpeg2000_ipath $[wildcard $[JPEG2000_IPATH]]
  139. #define jpeg2000_lpath $[wildcard $[JPEG2000_LPATH]]
  140. #define jpeg2000_cflags $[JPEG2000_CFLAGS]
  141. #define jpeg2000_libs $[JPEG2000_LIBS]
  142. #endif
  143. #if $[HAVE_TIFF]
  144. #define tiff_ipath $[wildcard $[TIFF_IPATH]]
  145. #define tiff_lpath $[wildcard $[TIFF_LPATH]]
  146. #define tiff_cflags $[TIFF_CFLAGS]
  147. #define tiff_libs $[TIFF_LIBS]
  148. #endif
  149. #if $[HAVE_FFTW]
  150. #define fftw_ipath $[wildcard $[FFTW_IPATH]]
  151. #define fftw_lpath $[wildcard $[FFTW_LPATH]]
  152. #define fftw_cflags $[FFTW_CFLAGS]
  153. #define fftw_libs $[FFTW_LIBS]
  154. #endif
  155. #if $[HAVE_NURBSPP]
  156. #define nurbspp_ipath $[wildcard $[NURBSPP_IPATH]]
  157. #define nurbspp_lpath $[wildcard $[NURBSPP_LPATH]]
  158. #define nurbspp_cflags $[NURBSPP_CFLAGS]
  159. #define nurbspp_libs $[NURBSPP_LIBS]
  160. #endif
  161. #if $[HAVE_VRPN]
  162. #define vrpn_ipath $[wildcard $[VRPN_IPATH]]
  163. #define vrpn_lpath $[wildcard $[VRPN_LPATH]]
  164. #define vrpn_cflags $[VRPN_CFLAGS]
  165. #define vrpn_libs $[VRPN_LIBS]
  166. #endif
  167. #if $[HAVE_MIKMOD]
  168. #define mikmod_ipath $[wildcard $[MIKMOD_IPATH]]
  169. #define mikmod_lpath $[wildcard $[MIKMOD_LPATH]]
  170. #define mikmod_cflags $[MIKMOD_CFLAGS]
  171. #define mikmod_libs $[MIKMOD_LIBS]
  172. #endif
  173. #if $[HAVE_GTKMM]
  174. #define gtkmm_ipath $[wildcard $[GTKMM_IPATH]]
  175. #define gtkmm_lpath $[wildcard $[GTKMM_LPATH]]
  176. #define gtkmm_cflags $[GTKMM_CFLAGS]
  177. #define gtkmm_libs $[GTKMM_LIBS]
  178. #endif
  179. #if $[HAVE_FREETYPE]
  180. #define freetype_ipath $[wildcard $[FREETYPE_IPATH]]
  181. #define freetype_lpath $[wildcard $[FREETYPE_LPATH]]
  182. #define freetype_cflags $[FREETYPE_CFLAGS]
  183. #define freetype_libs $[FREETYPE_LIBS]
  184. #endif
  185. #if $[and $[HAVE_MAYA],$[MAYA_LOCATION]]
  186. #define maya_ipath $[MAYA_LOCATION]/include
  187. #define maya_lpath $[MAYA_LOCATION]/lib
  188. #define maya_ld $[wildcard $[MAYA_LOCATION]/bin/mayald]
  189. #define maya_libs $[MAYA_LIBS]
  190. #endif
  191. #if $[HAVE_NET]
  192. #define net_ipath $[wildcard $[NET_IPATH]]
  193. #define net_lpath $[wildcard $[NET_LPATH]]
  194. #define net_libs $[NET_LIBS]
  195. #endif
  196. #if $[HAVE_RAD_MSS]
  197. #define rad_mss_ipath $[wildcard $[RAD_MSS_IPATH]]
  198. #define rad_mss_lpath $[wildcard $[RAD_MSS_LPATH]]
  199. #define rad_mss_libs $[RAD_MSS_LIBS]
  200. #endif
  201. #if $[HAVE_CHROMIUM]
  202. #define chromium_ipath $[wildcard $[CHROMIUM_IPATH]]
  203. #define chromium_lpath $[wildcard $[CHROMIUM_LPATH]]
  204. #define chromium_libs $[CHROMIUM_LIBS]
  205. #endif
  206. // We define these two variables true here in the global scope; a
  207. // particular Sources.pp file can redefine these to be false to
  208. // prevent a particular directory or target from being built in
  209. // certain circumstances.
  210. #define BUILD_DIRECTORY 1
  211. #define BUILD_TARGET 1
  212. // This variable, when evaluated in the scope of a particular directory,
  213. // will indicate true (i.e. nonempty) when the directory is truly built,
  214. // or false (empty) when the directory is not to be built.
  215. #defer build_directory $[BUILD_DIRECTORY]
  216. // It maps to a direct evaluation of the user-set variable,
  217. // BUILD_DIRECTORY, for historical reasons. This also allows us to
  218. // reserve the right to extend this variable to test other conditions
  219. // as well, should the need arise.
  220. // This variable, when evaluated in the scope of a particular target,
  221. // will indicated true when the target should be built, or false when
  222. // the target is not to be built.
  223. #defer build_target $[BUILD_TARGET]
  224. // This takes advantage of the above two variables to get the actual
  225. // list of local libraries we are to link with, eliminating those that
  226. // won't be built.
  227. #defer active_local_libs \
  228. $[all_libs $[if $[and $[build_directory],$[build_target]],$[TARGET]],$[LOCAL_LIBS]]
  229. #defer active_component_libs \
  230. $[all_libs $[if $[and $[build_directory],$[build_target]],$[TARGET]],$[COMPONENT_LIBS]]
  231. #defer active_libs $[active_local_libs] $[active_component_libs]
  232. // This variable, when evaluated within a target, will either be empty
  233. // string if the target is not to be built, or the target name if it
  234. // is.
  235. #defer active_target $[if $[build_target],$[TARGET]]
  236. #defer get_combined_sources $[COMBINED_SOURCES]
  237. // This subroutine will set up the sources variable to reflect the
  238. // complete set of sources for this target, and also set the
  239. // alt_cflags, alt_libs, etc. as appropriate according to how the
  240. // various USE_* flags are set for the current target.
  241. // This variable returns the complete set of sources for the current
  242. // target.
  243. #defer get_sources \
  244. $[SOURCES] \
  245. $[if $[ne $[NO_COMBINED_SOURCES],], $[INCLUDED_SOURCES], $[get_combined_sources]]
  246. #defer included_sources $[INCLUDED_SOURCES]
  247. // This variable returns the set of sources that are to be
  248. // interrogated for the current target.
  249. #defer get_igatescan \
  250. $[if $[and $[run_interrogate],$[IGATESCAN]], \
  251. $[if $[eq $[IGATESCAN], all], \
  252. $[filter-out %.I %.T %.lxx %.yxx %.N %_src.cxx,$[get_sources]], \
  253. $[IGATESCAN]]]
  254. // This variable returns the name of the interrogate database file
  255. // that will be generated for a particular target, or empty string if
  256. // the target is not to be interrogated.
  257. #defer get_igatedb \
  258. $[if $[and $[run_interrogate],$[IGATESCAN]], \
  259. $[ODIR]/lib$[TARGET]$[dllext].in]
  260. // This variable returns the name of the interrogate code file
  261. // that will be generated for a particular target, or empty string if
  262. // the target is not to be interrogated.
  263. #defer get_igateoutput \
  264. $[if $[and $[run_interrogate],$[IGATESCAN]], \
  265. $[ODIR]/lib$[TARGET]_igate.cxx]
  266. // This variable is the set of .in files generated by all of our
  267. // component libraries. If it is nonempty, then we do need to
  268. // generate a module, and $[get_igatemout] is the name of the .cxx file
  269. // that interrogate will produce to make this module.
  270. #defer get_igatemscan $[components $[get_igatedb:%=$[RELDIR]/%],$[active_component_libs]]
  271. #defer get_igatemout $[if $[get_igatemscan],$[ODIR]/lib$[TARGET]_module.cxx]
  272. // This variable returns the set of external packages used by this
  273. // target, and by all the components shared by this target.
  274. #defer use_packages $[sort $[USE_PACKAGES] $[components $[USE_PACKAGES],$[active_component_libs]]]
  275. // This function returns the appropriate cflags for the target, based
  276. // on the various external packages this particular target claims to
  277. // require.
  278. #defun get_cflags
  279. #define alt_cflags $[stl_cflags] $[nspr_cflags] $[python_cflags]
  280. #foreach package $[use_packages]
  281. #set alt_cflags $[alt_cflags] $[$[package]_cflags]
  282. #end package
  283. $[alt_cflags]
  284. #end get_cflags
  285. // This function returns the appropriate include path for the target,
  286. // based on the various external packages this particular target
  287. // claims to require. This returns a space-separated set of directory
  288. // names only; the -I switch is not included here.
  289. #defun get_ipath
  290. #define alt_ipath $[stl_ipath] $[nspr_ipath] $[python_ipath]
  291. #foreach package $[use_packages]
  292. #set alt_ipath $[alt_ipath] $[$[package]_ipath]
  293. #end package
  294. $[alt_ipath]
  295. #end get_ipath
  296. // This function returns the appropriate library search path for the
  297. // target, based on the various external packages this particular
  298. // target claims to require. This returns a space-separated set of
  299. // directory names only; the -L switch is not included here.
  300. #defun get_lpath
  301. #define alt_lpath $[stl_lpath] $[nspr_lpath] $[python_lpath]
  302. #if $[WINDOWS_PLATFORM]
  303. #set alt_lpath $[WIN32_PLATFORMSDK_LIBPATH] $[alt_lpath]
  304. #endif
  305. #foreach package $[use_packages]
  306. #set alt_lpath $[alt_lpath] $[$[package]_lpath]
  307. #end package
  308. $[alt_lpath]
  309. #end get_lpath
  310. // This function returns the appropriate set of library names to link
  311. // with for the target, based on the various external packages this
  312. // particular target claims to require. This returns a
  313. // space-separated set of library names only; the -l switch is not
  314. // included here.
  315. #defun get_libs
  316. #define alt_libs $[stl_libs] $[nspr_libs] $[python_libs] $[TARGET_LIBS]
  317. #if $[WINDOWS_PLATFORM]
  318. #set alt_libs $[alt_libs] $[WIN_SYS_LIBS] $[components $[WIN_SYS_LIBS],$[active_component_libs] $[transitive_link]]
  319. #else
  320. #set alt_libs $[alt_libs] $[UNIX_SYS_LIBS] $[components $[UNIX_SYS_LIBS],$[active_component_libs] $[transitive_link]]
  321. #endif
  322. #foreach package $[use_packages]
  323. #set alt_libs $[alt_libs] $[$[package]_libs]
  324. #end package
  325. $[alt_libs]
  326. #end get_libs
  327. // This function returns the appropriate value for ld for the target.
  328. #defun get_ld
  329. #if $[filter maya,$[use_packages]]
  330. $[maya_ld]
  331. #endif
  332. #end get_ld
  333. // This function determines the set of files a given source file
  334. // depends on. It is based on the setting of the $[filename]_sources
  335. // variable to indicate the sources for composite files, etc.
  336. #defun get_depends source
  337. #if $[$[source]_sources]
  338. #if $[ne $[$[source]_sources],none]
  339. $[$[source]_sources] $[dependencies $[$[source]_sources]]
  340. #endif
  341. #else
  342. $[dependencies $[source]]
  343. #endif
  344. #end get_depends
  345. // This function determines the set of libraries our various targets
  346. // depend on. This is a complicated definition. It is the union of
  347. // all of our targets' dependencies, except:
  348. // If a target is part of a metalib, it depends (a) directly on all of
  349. // its normal library dependencies that are part of the same metalib,
  350. // and (b) indirectly on all of the metalibs that every other library
  351. // dependency is part of. If a target is not part of a metalib, it is
  352. // the same as case (b) above.
  353. #defun get_depend_libs
  354. #define depend_libs
  355. #forscopes lib_target noinst_lib_target
  356. #define metalib $[module $[TARGET],$[TARGET]]
  357. #if $[ne $[metalib],]
  358. // This library is included on a metalib.
  359. #foreach depend $[LOCAL_LIBS]
  360. #define depend_metalib $[module $[TARGET],$[depend]]
  361. #if $[eq $[depend_metalib],$[metalib]]
  362. // Here's a dependent library in the *same* metalib.
  363. #set depend_libs $[depend_libs] $[depend]
  364. #elif $[ne $[depend_metalib],]
  365. // This dependent library is in a *different* metalib.
  366. #set depend_libs $[depend_libs] $[depend_metalib]
  367. #else
  368. // This dependent library is not in any metalib.
  369. #set depend_libs $[depend_libs] $[depend]
  370. #endif
  371. #end depend
  372. #else
  373. // This library is *not* included on a metalib.
  374. #foreach depend $[LOCAL_LIBS]
  375. #define depend_metalib $[module $[TARGET],$[depend]]
  376. #if $[ne $[depend_metalib],]
  377. // This dependent library is on a metalib.
  378. #set depend_libs $[depend_libs] $[depend_metalib]
  379. #else
  380. // This dependent library is not in any metalib.
  381. #set depend_libs $[depend_libs] $[depend]
  382. #endif
  383. #end depend
  384. #endif
  385. #end lib_target noinst_lib_target
  386. // These will never be part of a metalib.
  387. #forscopes static_lib_target ss_lib_target bin_target noinst_bin_target metalib_target
  388. #foreach depend $[LOCAL_LIBS]
  389. #define depend_metalib $[module $[TARGET],$[depend]]
  390. #if $[ne $[depend_metalib],]
  391. // This dependent library is on a metalib.
  392. #set depend_libs $[depend_libs] $[depend_metalib]
  393. #else
  394. // This dependent library is not in any metalib.
  395. #set depend_libs $[depend_libs] $[depend]
  396. #endif
  397. #end depend
  398. #end static_lib_target ss_lib_target bin_target noinst_bin_target metalib_target
  399. // In case we're defining any metalibs, these depend directly on
  400. // their components as well.
  401. #set depend_libs $[depend_libs] $[COMPONENT_LIBS(metalib_target)]
  402. $[depend_libs]
  403. #end get_depend_libs
  404. // Define a few directories that will be useful.
  405. #define install_dir $[$[upcase $[PACKAGE]]_INSTALL]
  406. #if $[eq $[install_dir],]
  407. #error Variable $[upcase $[PACKAGE]]_INSTALL is not set! Cannot install!
  408. #endif
  409. #define other_trees
  410. #foreach tree $[NEEDS_TREES]
  411. #define tree_install $[$[upcase $[tree]]_INSTALL]
  412. #if $[eq $[tree_install],]
  413. Warning: Variable $[upcase $[tree]]_INSTALL is not set!
  414. #else
  415. #set other_trees $[other_trees] $[tree_install]
  416. #endif
  417. #end tree
  418. #define install_lib_dir $[install_dir]/lib
  419. #define install_bin_dir $[install_dir]/bin
  420. #define install_headers_dir $[install_dir]/include
  421. #define install_data_dir $[install_dir]/shared
  422. #define install_igatedb_dir $[install_dir]/etc
  423. #define install_config_dir $[install_dir]/etc
  424. #if $[ne $[DTOOL_INSTALL],]
  425. #define install_parser_inc_dir $[DTOOL_INSTALL]/include/parser-inc
  426. #else
  427. #define install_parser_inc_dir $[install_headers_dir]/parser-inc
  428. #endif
  429. // Set up the correct interrogate options.
  430. // $[dllext] is redefined in the Windows Global.platform.pp files to
  431. // the string _d if we are building a debug tree. This is inserted
  432. // into the .dll and .in filenames before the extension to make a
  433. // runtime distinction between debug and non-debug builds. For now,
  434. // we make a global definition to empty string, since non-Windows
  435. // platforms will leave this empty.
  436. #define dllext
  437. // Caution! interrogate_ipath might be redefined in the
  438. // Global.platform.pp file.
  439. #defer interrogate_ipath $[target_ipath:%=-I%]
  440. #defer interrogate_spath $[install_parser_inc_dir:%=-S%] -S/usr/include
  441. #defer interrogate_options \
  442. -DCPPPARSER -D__STDC__=1 -D__cplusplus $[SYSTEM_IGATE_FLAGS] \
  443. $[interrogate_spath] $[interrogate_ipath] \
  444. $[CDEFINES_OPT$[OPTIMIZE]:%=-D%] \
  445. $[filter -D%,$[C++FLAGS]] \
  446. $[INTERROGATE_OPTIONS] \
  447. $[if $[INTERROGATE_PYTHON_INTERFACE],-python] \
  448. $[if $[INTERROGATE_C_INTERFACE],-c] \
  449. $[if $[TRACK_IN_INTERPRETER],-track-interpreter] \
  450. $[if $[<= $[OPTIMIZE], 1],-spam]
  451. #defer interrogate_module_options \
  452. $[if $[INTERROGATE_PYTHON_INTERFACE],-python] \
  453. $[if $[INTERROGATE_C_INTERFACE],-c] \
  454. $[if $[TRACK_IN_INTERPRETER],-track-interpreter]
  455. // Include the global definitions for this particular build_type, if
  456. // the file is there.
  457. #sinclude $[GLOBAL_TYPE_FILE]