LocalSetup.pp 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770
  1. //
  2. // LocalSetup.pp
  3. //
  4. // This file contains further instructions to set up the DTOOL package
  5. // when using ppremake. In particular, it creates the dtool_config.h
  6. // file based on the user's selected configure variables. This script
  7. // need not execute when BUILD_TYPE is "autoconf"; in this case, the
  8. // dtool_config.h file will automatically be correctly generated by
  9. // configure.
  10. //
  11. #print
  12. #print Configuring support for the following optional third-party packages:
  13. #if $[HAVE_EIGEN]
  14. #print + Eigen linear algebra library
  15. #if $[LINMATH_ALIGN]
  16. #print + (vectorization enabled in build)
  17. #else
  18. #print - (vectorization NOT enabled in build)
  19. #endif
  20. #else
  21. #print - Did not find Eigen linear algebra library
  22. #endif
  23. #if $[HAVE_OPENSSL]
  24. #print + OpenSSL
  25. #else
  26. #print - Did not find OpenSSL
  27. #endif
  28. #if $[HAVE_JPEG]
  29. #print + libjpeg
  30. #else
  31. #print - Did not find libjpeg
  32. #endif
  33. #if $[HAVE_PNG]
  34. #print + libpng
  35. #else
  36. #print - Did not find libpng
  37. #endif
  38. #if $[HAVE_TIFF]
  39. #print + libtiff
  40. #else
  41. #print - Did not find libtiff
  42. #endif
  43. #if $[HAVE_TAR]
  44. #print + libtar
  45. #else
  46. #print - Did not find libtar
  47. #endif
  48. #if $[HAVE_FFTW]
  49. #print + fftw
  50. #else
  51. #print - Did not find fftw
  52. #endif
  53. #if $[HAVE_SQUISH]
  54. #print + squish
  55. #else
  56. #print - Did not find squish
  57. #endif
  58. #if $[HAVE_CG]
  59. #print + Nvidia Cg High Level Shading Language
  60. #else
  61. #print - Did not find Nvidia Cg High Level Shading Language
  62. #endif
  63. #if $[HAVE_CGGL]
  64. #print + Cg OpenGL API
  65. #else
  66. #print - Did not find Cg OpenGL API
  67. #endif
  68. #if $[HAVE_CGDX8]
  69. #print + Cg DX8 API
  70. #else
  71. #print - Did not find Cg DX8 API
  72. #endif
  73. #if $[HAVE_CGDX9]
  74. #print + Cg DX9 API
  75. #else
  76. #print - Did not find Cg DX9 API
  77. #endif
  78. #if $[HAVE_CGDX10]
  79. #print + Cg DX10 API
  80. #else
  81. #print - Did not find Cg DX10 API
  82. #endif
  83. #if $[HAVE_VRPN]
  84. #print + VRPN
  85. #else
  86. #print - Did not find VRPN
  87. #endif
  88. #if $[HAVE_ZLIB]
  89. #print + zlib
  90. #else
  91. #print - Did not find zlib
  92. #endif
  93. #if $[HAVE_RAD_MSS]
  94. #print + Miles Sound System
  95. #else
  96. #print - Did not find Miles Sound System
  97. #endif
  98. #if $[HAVE_FMODEX]
  99. #print + FMOD Ex sound library
  100. #else
  101. #print - Did not find FMOD Ex sound library
  102. #endif
  103. #if $[HAVE_OPENAL]
  104. #print + OpenAL sound library
  105. #else
  106. #print - Did not find OpenAL sound library
  107. #endif
  108. #if $[HAVE_PHYSX]
  109. #print + Ageia PhysX
  110. #else
  111. #print - Did not find Ageia PhysX
  112. #endif
  113. #if $[HAVE_SPEEDTREE]
  114. #print + SpeedTree
  115. #else
  116. #print - Did not find SpeedTree
  117. #endif
  118. #if $[HAVE_GTK]
  119. #print + gtk+-2
  120. #else
  121. #print - Did not find gtk+-2
  122. #endif
  123. #if $[HAVE_FREETYPE]
  124. #print + Freetype
  125. #else
  126. #print - Did not find Freetype
  127. #endif
  128. #if $[HAVE_WX]
  129. #print + WxWidgets
  130. #else
  131. #print - Did not find WxWidgets
  132. #endif
  133. #if $[HAVE_FLTK]
  134. #print + FLTK
  135. #else
  136. #print - Did not find FLTK
  137. #endif
  138. #if $[HAVE_GL]
  139. #print + OpenGL
  140. #else
  141. #print - Did not find OpenGL
  142. #endif
  143. #if $[HAVE_GLES]
  144. #print + OpenGL ES 1
  145. #else
  146. #print - Did not find OpenGL ES 1
  147. #endif
  148. #if $[HAVE_GLES2]
  149. #print + OpenGL ES 2
  150. #else
  151. #print - Did not find OpenGL ES 2
  152. #endif
  153. #if $[HAVE_DX8]
  154. #print + DirectX8
  155. #else
  156. #print - Did not find DirectX8
  157. #endif
  158. #if $[HAVE_DX9]
  159. #print + DirectX9
  160. #else
  161. #print - Did not find DirectX9
  162. #endif
  163. #if $[HAVE_TINYDISPLAY]
  164. #print + Tinydisplay
  165. #else
  166. #print - Not building Tinydisplay
  167. #endif
  168. //#if $[HAVE_SDL]
  169. //#print + SDL
  170. //#else
  171. //#print - Did not find SDL
  172. //#endif
  173. #if $[HAVE_X11]
  174. #print + X11
  175. #else
  176. #print - Did not find X11
  177. #endif
  178. #if $[HAVE_MESA]
  179. #print + Mesa
  180. #else
  181. #print - Did not find Mesa
  182. #endif
  183. #if $[HAVE_OPENCV]
  184. #print + OpenCV
  185. #else
  186. #print - Did not find OpenCV
  187. #endif
  188. #if $[HAVE_FFMPEG]
  189. #print + FFMPEG
  190. #else
  191. #print - Did not find FFMPEG
  192. #endif
  193. #if $[HAVE_ODE]
  194. #print + ODE
  195. #else
  196. #print - Did not find ODE
  197. #endif
  198. #if $[HAVE_AWESOMIUM]
  199. #print + AWESOMIUM
  200. #else
  201. #print - Did not find AWESOMIUM
  202. #endif
  203. #if $[HAVE_MAYA]
  204. #print + OpenMaya
  205. #else
  206. #print - Did not find OpenMaya
  207. #endif
  208. #if $[HAVE_FCOLLADA]
  209. #print + FCollada
  210. #else
  211. #print - Did not find FCollada
  212. #endif
  213. #if $[or $[HAVE_COLLADA14DOM],$[HAVE_COLLADA15DOM]]
  214. #print + COLLADA DOM
  215. #else
  216. #print - Did not find COLLADA DOM
  217. #endif
  218. #if $[HAVE_ASSIMP]
  219. #print + Assimp
  220. #else
  221. #print - Did not find Assimp
  222. #endif
  223. #if $[HAVE_ARTOOLKIT]
  224. #print + ARToolKit
  225. #else
  226. #print - Did not find ARToolKit
  227. #endif
  228. #if $[HAVE_ROCKET]
  229. #if $[HAVE_ROCKET_PYTHON]
  230. #print + libRocket with Python bindings
  231. #else
  232. #print + libRocket without Python bindings
  233. #endif
  234. #else
  235. #print - Did not find libRocket
  236. #endif
  237. #if $[HAVE_BULLET]
  238. #print + Bullet Physics
  239. #else
  240. #print - Did not find Bullet Physics
  241. #endif
  242. #if $[HAVE_VORBIS]
  243. #print + libvorbis (Ogg Vorbis Decoder)
  244. #else
  245. #print - Did not find libvorbis (Ogg Vorbis Decoder)
  246. #endif
  247. #print
  248. #if $[and $[HAVE_INTERROGATE],$[HAVE_PYTHON]]
  249. #print Compilation will generate Python interfaces.
  250. #else
  251. #print Configuring Panda WITHOUT Python interfaces.
  252. #endif
  253. #if $[HAVE_THREADS]
  254. #if $[SIMPLE_THREADS]
  255. #print Compilation will include simulated threading support.
  256. #else
  257. #if $[DO_PIPELINING]
  258. #print Compilation will include full, pipelined threading support.
  259. #else
  260. #print Compilation will include nonpipelined threading support.
  261. #endif
  262. #endif
  263. #else
  264. #print Configuring Panda without threading support.
  265. #endif
  266. #if $[OSX_PLATFORM]
  267. #if $[UNIVERSAL_BINARIES]
  268. #print Compilation will create universal binaries.
  269. #else
  270. #print Compilation will not create universal binaries.
  271. #endif
  272. #endif
  273. #print
  274. #print See dtool_config.h for more details about the specified configuration.
  275. #print
  276. // We don't include the ppremake version in the first comment line of
  277. // the output to dtool_config.h, below, to minimize unnecessary
  278. // complete rebuilds due to an updated ppremake version.
  279. #output dtool_config.h notouch
  280. #format straight
  281. /* dtool_config.h. Generated automatically by $[PPREMAKE] from $[SOURCEFILE]. */
  282. /* Debug / non-debug symbols. OPTIMIZE = $[OPTIMIZE] */
  283. #if $[<= $[OPTIMIZE],2]
  284. #define _DEBUG 1
  285. #elif $[= $[OPTIMIZE],4]
  286. #define NDEBUG 1
  287. #endif
  288. $[cdefine _DEBUG]
  289. $[cdefine NDEBUG]
  290. /* Define if we have Eigen available. */
  291. $[cdefine HAVE_EIGEN]
  292. $[cdefine LINMATH_ALIGN]
  293. /* Define if we have Python installed. */
  294. $[cdefine HAVE_PYTHON]
  295. $[cdefine USE_DEBUG_PYTHON]
  296. /* Define if we have Python as a framework (Mac OS X). */
  297. $[cdefine PYTHON_FRAMEWORK]
  298. /* Define if we have RAD game tools, Miles Sound System installed. */
  299. $[cdefine HAVE_RAD_MSS]
  300. /* Define if we have FMODex installed. */
  301. $[cdefine HAVE_FMODEX]
  302. /* Define if we have OpenAL installed. */
  303. $[cdefine HAVE_OPENAL]
  304. /* Define if we have Freetype 2.0 or better available. */
  305. $[cdefine HAVE_FREETYPE]
  306. /* Define if we are using SpeedTree. */
  307. $[cdefine HAVE_SPEEDTREE]
  308. /* Define if we want to compile in a default font. */
  309. $[cdefine COMPILE_IN_DEFAULT_FONT]
  310. /* Define to use doubles for most numbers, intead of single-precision floats. */
  311. $[cdefine STDFLOAT_DOUBLE]
  312. /* Define if we have Maya available. */
  313. $[cdefine HAVE_MAYA]
  314. $[cdefine MAYA_PRE_5_0]
  315. /* Define if we have libRocket available and built with the Rocket Debugger. */
  316. $[cdefine HAVE_ROCKET_DEBUGGER]
  317. /* Define if we have built libRocket available and built with Python support. */
  318. $[cdefine HAVE_ROCKET_PYTHON]
  319. /* Define if we have SoftImage available. */
  320. $[cdefine HAVE_SOFTIMAGE]
  321. /* Define if we have FCollada available. */
  322. $[cdefine HAVE_FCOLLADA]
  323. /* Define if we have ARToolKit available. */
  324. $[cdefine HAVE_ARTOOLKIT]
  325. /* Define if we have libvorbisfile available. */
  326. $[cdefine HAVE_VORBIS]
  327. /* Define if we have OpenSSL installed. */
  328. $[cdefine HAVE_OPENSSL]
  329. $[cdefine REPORT_OPENSSL_ERRORS]
  330. /* Define if we have libjpeg installed. */
  331. $[cdefine HAVE_JPEG]
  332. $[cdefine PHAVE_JPEGINT_H]
  333. /* Define to build video-for-linux. */
  334. $[cdefine HAVE_VIDEO4LINUX]
  335. /* Define if we have libpng installed. */
  336. $[cdefine HAVE_PNG]
  337. /* Define if we have libtiff installed. */
  338. $[cdefine HAVE_TIFF]
  339. /* Define if we want to build these other image file formats. */
  340. $[cdefine HAVE_SGI_RGB]
  341. $[cdefine HAVE_TGA]
  342. $[cdefine HAVE_IMG]
  343. $[cdefine HAVE_SOFTIMAGE_PIC]
  344. $[cdefine HAVE_BMP]
  345. $[cdefine HAVE_PNM]
  346. /* Define if we have libtar installed. */
  347. $[cdefine HAVE_TAR]
  348. /* Define if we have libfftw installed. */
  349. $[cdefine HAVE_FFTW]
  350. /* Define if we have libsquish installed. */
  351. $[cdefine HAVE_SQUISH]
  352. /* Define if we have Berkeley DB installed. */
  353. $[cdefine HAVE_BDB]
  354. /* Define if we have HELIX installed. */
  355. $[cdefine HAVE_HELIX]
  356. /* Define if we have CG installed. */
  357. $[cdefine HAVE_CG]
  358. /* Define if we have CGGL installed. */
  359. $[cdefine HAVE_CGGL]
  360. /* Define if we have CGDX8 installed. */
  361. $[cdefine HAVE_CGDX8]
  362. /* Define if we have CGDX9 installed. */
  363. $[cdefine HAVE_CGDX9]
  364. /* Define if we have CGDX10 installed. */
  365. $[cdefine HAVE_CGDX10]
  366. /* Define for dxerr.h instead of dxerr9.h. */
  367. $[cdefine USE_GENERIC_DXERR_LIBRARY]
  368. /* Define if we have zlib installed. */
  369. $[cdefine HAVE_ZLIB]
  370. /* Define if we have OpenGL installed and want to build for GL. */
  371. $[cdefine HAVE_GL]
  372. #if HAVE_GL
  373. # define MIN_GL_VERSION_MAJOR $[word 1,$[MIN_GL_VERSION]]
  374. # define MIN_GL_VERSION_MINOR $[word 2,$[MIN_GL_VERSION]]
  375. #endif
  376. /* Define if we have OpenGL ES installed and want to build for GLES. */
  377. $[cdefine HAVE_GLES]
  378. /* Define if we have OpenGL ES installed and want to build for GLES2. */
  379. $[cdefine HAVE_GLES2]
  380. /* Define if we have OpenCV installed and want to build for OpenCV. */
  381. $[cdefine HAVE_OPENCV]
  382. $[cdefine OPENCV_VER_23]
  383. /* Define if we have FFMPEG installed and want to build for FFMPEG. */
  384. $[cdefine HAVE_FFMPEG]
  385. $[cdefine HAVE_SWSCALE]
  386. $[cdefine HAVE_SWRESAMPLE]
  387. /* Define if we have ODE installed and want to build for ODE. */
  388. $[cdefine HAVE_ODE]
  389. /* Define if we have AWESOMIUM installed and want to build for AWESOMIUM. */
  390. $[cdefine HAVE_AWESOMIUM]
  391. /* Define if we have Mesa installed and want to build mesadisplay. */
  392. $[cdefine HAVE_MESA]
  393. $[cdefine MESA_MGL]
  394. #if HAVE_MESA
  395. # define MIN_MESA_VERSION_MAJOR $[word 1,$[MIN_MESA_VERSION]]
  396. # define MIN_MESA_VERSION_MINOR $[word 2,$[MIN_MESA_VERSION]]
  397. #endif
  398. /* Define if we have GLX installed and want to build for GLX. */
  399. $[cdefine HAVE_GLX]
  400. /* Define if we have EGL installed and want to build for EGL. */
  401. $[cdefine HAVE_EGL]
  402. /* Define if we have Windows-GL installed and want to build for Wgl. */
  403. $[cdefine HAVE_WGL]
  404. /* Define if we have DirectX installed and want to build for DX. */
  405. $[cdefine HAVE_DX8]
  406. /* Define if we have DirectX installed and want to build for DX. */
  407. $[cdefine HAVE_DX9]
  408. /* The choice of generic vs. the specific dxerr library largely
  409. depends on which SDK you have installed. */
  410. $[cdefine USE_GENERIC_DXERR_LIBRARY]
  411. /* Define if we want to build tinydisplay. */
  412. $[cdefine HAVE_TINYDISPLAY]
  413. /* Define if we have the SDL library. */
  414. $[cdefine HAVE_SDL]
  415. /* Define if we have X11. */
  416. $[cdefine HAVE_X11]
  417. /* Define if we have the XFree86-DGA extension. */
  418. $[cdefine HAVE_XF86DGA]
  419. /* Define if we have the XRandR extension. */
  420. $[cdefine HAVE_XRANDR]
  421. /* Define if we have the XCursor extension. */
  422. $[cdefine HAVE_XCURSOR]
  423. /* Define if we want to compile the threading code. */
  424. $[cdefine HAVE_THREADS]
  425. /* Define if we want to use fast, user-space simulated threads. */
  426. $[cdefine SIMPLE_THREADS]
  427. /* Define if SIMPLE_THREADS should be implemented with the OS-provided
  428. threading layer (if available). */
  429. $[cdefine OS_SIMPLE_THREADS]
  430. /* Define to enable deadlock detection, mutex recursion checks, etc. */
  431. $[cdefine DEBUG_THREADS]
  432. /* Define to implement mutexes and condition variables via a user-space spinlock. */
  433. $[cdefine MUTEX_SPINLOCK]
  434. /* Define to enable the PandaFileStream implementation of pfstream etc. */
  435. $[cdefine USE_PANDAFILESTREAM]
  436. /* Define if we want to compile the net code. */
  437. $[cdefine HAVE_NET]
  438. /* Define if we want to compile the egg code. */
  439. $[cdefine HAVE_EGG]
  440. /* Define if we want to compile the audio code. */
  441. $[cdefine HAVE_AUDIO]
  442. /* Define if we have bison and flex available. */
  443. $[cdefine HAVE_BISON]
  444. /* Define if we want to use PStats. */
  445. $[cdefine DO_PSTATS]
  446. /* Define if we want to type-check downcasts. */
  447. $[cdefine DO_DCAST]
  448. /* Define if we want to provide collision system recording and
  449. visualization tools. */
  450. $[cdefine DO_COLLISION_RECORDING]
  451. /* Define if we want to enable track-memory-usage. */
  452. $[cdefine DO_MEMORY_USAGE]
  453. /* Define if we want to enable min-lag and max-lag. */
  454. $[cdefine SIMULATE_NETWORK_DELAY]
  455. /* Define if we want to allow immediate mode OpenGL rendering. */
  456. $[cdefine SUPPORT_IMMEDIATE_MODE]
  457. /* Define for either of the alternative malloc schemes. */
  458. $[cdefine USE_MEMORY_DLMALLOC]
  459. $[cdefine USE_MEMORY_PTMALLOC2]
  460. /* Define if we want to compile in support for pipelining. */
  461. $[cdefine DO_PIPELINING]
  462. /* Define if we want to keep Notify debug messages around, or undefine
  463. to compile them out. */
  464. $[cdefine NOTIFY_DEBUG]
  465. /* Define if we want to export template classes from the DLL. Only
  466. makes sense to MSVC++. */
  467. $[cdefine EXPORT_TEMPLATES]
  468. /* Define if we are linking PANDAPHYSX in with PANDA. */
  469. $[cdefine LINK_IN_PHYSX]
  470. /* The compiled-in character(s) to expect to separate different
  471. components of a path list (e.g. $PRC_PATH). */
  472. # define DEFAULT_PATHSEP "$[DEFAULT_PATHSEP]"
  473. /* Many of the prc variables are exported by
  474. dtool/src/prc/prc_parameters.h.pp, instead of here. Only those prc
  475. variables that must be visible outside of the prc directory are
  476. exported here. */
  477. /* The filename that specifies the public keys to import into
  478. config. */
  479. # define PRC_PUBLIC_KEYS_FILENAME "$[unixfilename $[PRC_PUBLIC_KEYS_FILENAME]]"
  480. #if $[PRC_PUBLIC_KEYS_FILENAME]
  481. # define PRC_PUBLIC_KEYS_INCLUDE "$[osfilename $[PRC_PUBLIC_KEYS_FILENAME]]"
  482. #endif
  483. /* Define if you want to save the descriptions for ConfigVariables. */
  484. $[cdefine PRC_SAVE_DESCRIPTIONS]
  485. /* Define if your processor stores words with the most significant
  486. byte first (like Motorola and SPARC, unlike Intel and VAX). */
  487. $[cdefine WORDS_BIGENDIAN]
  488. /* Define if the C++ compiler uses namespaces. */
  489. $[cdefine HAVE_NAMESPACE]
  490. /* Define if fstream::open() accepts a third parameter for umask. */
  491. $[cdefine HAVE_OPEN_MASK]
  492. /* Define if we have a lockf() function. */
  493. $[cdefine HAVE_LOCKF]
  494. /* Define if some header file defines wchar_t. */
  495. $[cdefine HAVE_WCHAR_T]
  496. /* Define if the <string> header file defines wstring. */
  497. $[cdefine HAVE_WSTRING]
  498. /* Define if the C++ compiler supports the typename keyword. */
  499. $[cdefine HAVE_TYPENAME]
  500. /* Define if we can trust the compiler not to insert extra bytes in
  501. structs between base structs and derived structs. */
  502. $[cdefine SIMPLE_STRUCT_POINTERS]
  503. /* Define if we have Dinkumware STL installed. */
  504. $[cdefine HAVE_DINKUM]
  505. /* Define if we have STL hash_map etc. available */
  506. $[cdefine HAVE_STL_HASH]
  507. /* Define if gettimeofday() takes only one parameter. */
  508. $[cdefine GETTIMEOFDAY_ONE_PARAM]
  509. /* Define if you have the getopt function. */
  510. $[cdefine HAVE_GETOPT]
  511. /* Define if you have the getopt_long_only function. */
  512. $[cdefine HAVE_GETOPT_LONG_ONLY]
  513. /* Define if getopt appears in getopt.h. */
  514. $[cdefine PHAVE_GETOPT_H]
  515. /* Define if you have ioctl(TIOCGWINSZ) to determine terminal width. */
  516. $[cdefine IOCTL_TERMINAL_WIDTH]
  517. /* Do the system headers define a "streamsize" typedef? */
  518. $[cdefine HAVE_STREAMSIZE]
  519. /* Do the system headers define key ios typedefs like ios::openmode
  520. and ios::fmtflags? */
  521. $[cdefine HAVE_IOS_TYPEDEFS]
  522. /* Define if the C++ iostream library defines ios::binary. */
  523. $[cdefine HAVE_IOS_BINARY]
  524. /* Can we safely call getenv() at static init time? */
  525. $[cdefine STATIC_INIT_GETENV]
  526. /* Can we read the file /proc/self/[*] to determine our
  527. environment variables at static init time? */
  528. $[cdefine HAVE_PROC_SELF_EXE]
  529. $[cdefine HAVE_PROC_SELF_MAPS]
  530. $[cdefine HAVE_PROC_SELF_ENVIRON]
  531. $[cdefine HAVE_PROC_SELF_CMDLINE]
  532. $[cdefine HAVE_PROC_CURPROC_FILE]
  533. $[cdefine HAVE_PROC_CURPROC_MAP]
  534. $[cdefine HAVE_PROC_CURPROC_CMDLINE]
  535. /* Do we have a global pair of argc/argv variables that we can read at
  536. static init time? Should we prototype them? What are they called? */
  537. $[cdefine HAVE_GLOBAL_ARGV]
  538. $[cdefine PROTOTYPE_GLOBAL_ARGV]
  539. $[cdefine GLOBAL_ARGV]
  540. $[cdefine GLOBAL_ARGC]
  541. /* Define if you have the <io.h> header file. */
  542. $[cdefine PHAVE_IO_H]
  543. /* Define if you have the <iostream> header file. */
  544. $[cdefine PHAVE_IOSTREAM]
  545. /* Define if you have the <malloc.h> header file. */
  546. $[cdefine PHAVE_MALLOC_H]
  547. /* Define if you have the <sys/malloc.h> header file. */
  548. $[cdefine PHAVE_SYS_MALLOC_H]
  549. /* Define if you have the <alloca.h> header file. */
  550. $[cdefine PHAVE_ALLOCA_H]
  551. /* Define if you have the <locale.h> header file. */
  552. $[cdefine PHAVE_LOCALE_H]
  553. /* Define if you have the <string.h> header file. */
  554. $[cdefine PHAVE_STRING_H]
  555. /* Define if you have the <stdlib.h> header file. */
  556. $[cdefine PHAVE_STDLIB_H]
  557. /* Define if you have the <limits.h> header file. */
  558. $[cdefine PHAVE_LIMITS_H]
  559. /* Define if you have the <minmax.h> header file. */
  560. $[cdefine PHAVE_MINMAX_H]
  561. /* Define if you have the <sstream> header file. */
  562. $[cdefine PHAVE_SSTREAM]
  563. /* Define if you have the <new> header file. */
  564. $[cdefine PHAVE_NEW]
  565. /* Define if you have the <sys/types.h> header file. */
  566. $[cdefine PHAVE_SYS_TYPES_H]
  567. /* Define if you have the <sys/time.h> header file. */
  568. $[cdefine PHAVE_SYS_TIME_H]
  569. /* Define if you have the <unistd.h> header file. */
  570. $[cdefine PHAVE_UNISTD_H]
  571. /* Define if you have the <utime.h> header file. */
  572. $[cdefine PHAVE_UTIME_H]
  573. /* Define if you have the <glob.h> header file. */
  574. $[cdefine PHAVE_GLOB_H]
  575. /* Define if you have the <dirent.h> header file. */
  576. $[cdefine PHAVE_DIRENT_H]
  577. /* Define if you have the <drfftw.h> header file. */
  578. $[cdefine PHAVE_DRFFTW_H]
  579. /* Do we have <sys/soundcard.h> (and presumably a Linux-style audio
  580. interface)? */
  581. $[cdefine PHAVE_SYS_SOUNDCARD_H]
  582. /* Do we have <ucontext.h> (and therefore makecontext() /
  583. swapcontext())? */
  584. $[cdefine PHAVE_UCONTEXT_H]
  585. /* Do we have <linux/input.h> ? This enables us to use raw mouse input. */
  586. $[cdefine PHAVE_LINUX_INPUT_H]
  587. /* Do we have <stdint.h>? */
  588. $[cdefine PHAVE_STDINT_H]
  589. /* Do we have RTTI (and <typeinfo>)? */
  590. $[cdefine HAVE_RTTI]
  591. /* Do we have Posix threads? */
  592. $[cdefine HAVE_POSIX_THREADS]
  593. /* Is the code being compiled with the Tau profiler's instrumentor? */
  594. $[cdefine USE_TAU]
  595. /* Define if needed to have 64-bit file i/o */
  596. $[cdefine __USE_LARGEFILE64]
  597. // To activate the DELETED_CHAIN macros.
  598. $[cdefine USE_DELETED_CHAIN]
  599. // To build the Windows TOUCHINPUT interfaces (requires Windows 7).
  600. $[cdefine HAVE_WIN_TOUCHINPUT]
  601. // If we are to build the native net interfaces.
  602. $[cdefine WANT_NATIVE_NET]
  603. /* Turn off warnings for using scanf and such */
  604. #if $[or $[eq $[USE_COMPILER],MSVC9], $[eq $[USE_COMPILER],MSVC9x64]]
  605. #print Will ignore CRT_SECURE warnings for MSVC9
  606. $[cdefine _CRT_SECURE_NO_WARNINGS]
  607. # pragma warning( disable : 4996 4275 4267 4099 4049 4013 4005 )
  608. #endif
  609. /* Static linkage instead of the normal dynamic linkage? */
  610. $[cdefine LINK_ALL_STATIC]
  611. /* Define to compile the plugin code. */
  612. $[cdefine HAVE_P3D_PLUGIN]
  613. /* Define to compile for Cocoa or Carbon on Mac OS X. */
  614. $[cdefine HAVE_COCOA]
  615. $[cdefine HAVE_CARBON]
  616. /* Platform-identifying defines. */
  617. $[cdefine IS_OSX]
  618. $[cdefine IS_LINUX]
  619. $[cdefine IS_FREEBSD]
  620. $[cdefine BUILD_IPHONE]
  621. $[cdefine UNIVERSAL_BINARIES]
  622. #if $[DTOOL_PLATFORM]
  623. # define DTOOL_PLATFORM "$[DTOOL_PLATFORM]"
  624. #endif
  625. #end dtool_config.h