LocalSetup.pp 18 KB

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