LocalSetup.pp 18 KB

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