LocalSetup.pp 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  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_TINYXML]
  104. #print + TinyXML
  105. #else
  106. #print - Did not find TinyXML
  107. #endif
  108. #if $[HAVE_GTK]
  109. #print + gtk+-2
  110. #else
  111. #print - Did not find gtk+-2
  112. #endif
  113. #if $[HAVE_FREETYPE]
  114. #print + Freetype
  115. #else
  116. #print - Did not find Freetype
  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_MAYA]
  177. #print + OpenMaya
  178. #else
  179. #print - Did not find OpenMaya
  180. #endif
  181. #if $[HAVE_FCOLLADA]
  182. #print + FCollada
  183. #else
  184. #print - Did not find FCollada
  185. #endif
  186. #if $[HAVE_ARTOOLKIT]
  187. #print + ARToolKit
  188. #else
  189. #print - Did not find ARToolKit
  190. #endif
  191. #print
  192. #if $[and $[HAVE_INTERROGATE],$[HAVE_PYTHON]]
  193. #print Compilation will generate Python interfaces.
  194. #else
  195. #print Configuring Panda WITHOUT Python interfaces.
  196. #endif
  197. #if $[HAVE_THREADS]
  198. #if $[SIMPLE_THREADS]
  199. #print Compilation will include simulated threading support.
  200. #else
  201. #if $[DO_PIPELINING]
  202. #print Compilation will include full, pipelined threading support.
  203. #else
  204. #print Compilation will include nonpipelined threading support.
  205. #endif
  206. #endif
  207. #else
  208. #print Configuring Panda without threading support.
  209. #endif
  210. #print
  211. #print See dtool_config.h for more details about the specified configuration.
  212. #print
  213. // We don't include the ppremake version in the first comment line of
  214. // the output to dtool_config.h, below, to minimize unnecessary
  215. // complete rebuilds due to an updated ppremake version.
  216. #output dtool_config.h notouch
  217. #format straight
  218. /* dtool_config.h. Generated automatically by $[PPREMAKE] from $[SOURCEFILE]. */
  219. /* Debug / non-debug symbols. OPTIMIZE = $[OPTIMIZE] */
  220. #if $[<= $[OPTIMIZE],2]
  221. #define _DEBUG 1
  222. #elif $[= $[OPTIMIZE],4]
  223. #define NDEBUG 1
  224. #endif
  225. $[cdefine _DEBUG]
  226. $[cdefine NDEBUG]
  227. /* Define if we have Python installed. */
  228. $[cdefine HAVE_PYTHON]
  229. $[cdefine USE_DEBUG_PYTHON]
  230. /* Define if we have Python as a framework (Mac OS X). */
  231. $[cdefine PYTHON_FRAMEWORK]
  232. /* Define if we have RAD game tools, Miles Sound System installed. */
  233. $[cdefine HAVE_RAD_MSS]
  234. /* Define if we have FMODex installed. */
  235. $[cdefine HAVE_FMODEX]
  236. /* Define if we have OpenAL installed. */
  237. $[cdefine HAVE_OPENAL]
  238. /* Define if we have Ageia PhysX SDK installed. */
  239. $[cdefine HAVE_PHYSX]
  240. /* Define if we have Freetype 2.0 or better available. */
  241. $[cdefine HAVE_FREETYPE]
  242. /* Define if we want to compile in a default font. */
  243. $[cdefine COMPILE_IN_DEFAULT_FONT]
  244. /* Define if we have Maya available. */
  245. $[cdefine HAVE_MAYA]
  246. $[cdefine MAYA_PRE_5_0]
  247. /* Define if we have SoftImage available. */
  248. $[cdefine HAVE_SOFTIMAGE]
  249. /* Define if we have FCollada available. */
  250. $[cdefine HAVE_FCOLLADA]
  251. /* Define if we have ARToolKit available. */
  252. $[cdefine HAVE_ARTOOLKIT]
  253. /* Define if we have OpenSSL installed. */
  254. $[cdefine HAVE_OPENSSL]
  255. $[cdefine OPENSSL_097]
  256. $[cdefine REPORT_OPENSSL_ERRORS]
  257. /* Define if we have libjpeg installed. */
  258. $[cdefine HAVE_JPEG]
  259. /* Define if we have libpng installed. */
  260. $[cdefine HAVE_PNG]
  261. /* Define if we have libtiff installed. */
  262. $[cdefine HAVE_TIFF]
  263. /* Define if we want to build these other image file formats. */
  264. $[cdefine HAVE_SGI_RGB]
  265. $[cdefine HAVE_TGA]
  266. $[cdefine HAVE_IMG]
  267. $[cdefine HAVE_SOFTIMAGE_PIC]
  268. $[cdefine HAVE_BMP]
  269. $[cdefine HAVE_PNM]
  270. /* Define if we have libtar installed. */
  271. $[cdefine HAVE_TAR]
  272. /* Define if we have libfftw installed. */
  273. $[cdefine HAVE_FFTW]
  274. /* Define if we have libsquish installed. */
  275. $[cdefine HAVE_SQUISH]
  276. /* Define if we have Berkeley DB installed. */
  277. $[cdefine HAVE_BDB]
  278. /* Define if we have VRPN installed. */
  279. $[cdefine HAVE_VRPN]
  280. /* Define if we have HELIX installed. */
  281. $[cdefine HAVE_HELIX]
  282. /* Define if we have CG installed. */
  283. $[cdefine HAVE_CG]
  284. /* Define if we have CGGL installed. */
  285. $[cdefine HAVE_CGGL]
  286. /* Define if we have CGDX8 installed. */
  287. $[cdefine HAVE_CGDX8]
  288. /* Define if we have CGDX9 installed. */
  289. $[cdefine HAVE_CGDX9]
  290. /* Define if we have CGDX10 installed. */
  291. $[cdefine HAVE_CGDX10]
  292. /* Define if we have zlib installed. */
  293. $[cdefine HAVE_ZLIB]
  294. /* Define if we have OpenGL installed and want to build for GL. */
  295. $[cdefine HAVE_GL]
  296. $[cdefine HAVE_GLU]
  297. #if HAVE_GL
  298. # define MIN_GL_VERSION_MAJOR $[word 1,$[MIN_GL_VERSION]]
  299. # define MIN_GL_VERSION_MINOR $[word 2,$[MIN_GL_VERSION]]
  300. #endif
  301. /* Define if we have OpenGL ES installed and want to build for GLES. */
  302. $[cdefine HAVE_GLES]
  303. /* Define if we have OpenGL ES installed and want to build for GLES2. */
  304. $[cdefine HAVE_GLES2]
  305. /* Define if we have OpenCV installed and want to build for OpenCV. */
  306. $[cdefine HAVE_OPENCV]
  307. /* Define if we have FFMPEG installed and want to build for FFMPEG. */
  308. $[cdefine HAVE_FFMPEG]
  309. $[cdefine HAVE_SWSCALE]
  310. /* Define if we have ODE installed and want to build for ODE. */
  311. $[cdefine HAVE_ODE]
  312. /* Define if we have Mesa installed and want to build mesadisplay. */
  313. $[cdefine HAVE_MESA]
  314. $[cdefine MESA_MGL]
  315. #if HAVE_MESA
  316. # define MIN_MESA_VERSION_MAJOR $[word 1,$[MIN_MESA_VERSION]]
  317. # define MIN_MESA_VERSION_MINOR $[word 2,$[MIN_MESA_VERSION]]
  318. #endif
  319. /* Define if we have GLX installed and want to build for GLX. */
  320. $[cdefine HAVE_GLX]
  321. /* Define if we have EGL installed and want to build for EGL. */
  322. $[cdefine HAVE_EGL]
  323. /* Define if we have Windows-GL installed and want to build for Wgl. */
  324. $[cdefine HAVE_WGL]
  325. /* Define if we have DirectX installed and want to build for DX. */
  326. $[cdefine HAVE_DX8]
  327. /* Define if we have DirectX installed and want to build for DX. */
  328. $[cdefine HAVE_DX9]
  329. /* Define if we want to build tinydisplay. */
  330. $[cdefine HAVE_TINYDISPLAY]
  331. /* Define if we have the SDL library. */
  332. $[cdefine HAVE_SDL]
  333. /* Define if we have X11. */
  334. $[cdefine HAVE_X11]
  335. /* Define if we want to compile the threading code. */
  336. $[cdefine HAVE_THREADS]
  337. /* Define if we want to use fast, user-space simulated threads. */
  338. $[cdefine SIMPLE_THREADS]
  339. /* Define to enable deadlock detection, mutex recursion checks, etc. */
  340. $[cdefine DEBUG_THREADS]
  341. /* Define to implement mutexes and condition variables via a user-space spinlock. */
  342. $[cdefine MUTEX_SPINLOCK]
  343. /* Define to enable the PandaFileStream implementation of pfstream etc. */
  344. $[cdefine USE_PANDAFILESTREAM]
  345. /* Define if we want to compile the net code. */
  346. $[cdefine HAVE_NET]
  347. /* Define if we want to compile the egg code. */
  348. $[cdefine HAVE_EGG]
  349. /* Define if we want to compile the audio code. */
  350. $[cdefine HAVE_AUDIO]
  351. /* Define if we have bison and flex available. */
  352. $[cdefine HAVE_BISON]
  353. /* Define if we want to use PStats. */
  354. $[cdefine DO_PSTATS]
  355. /* Define if we want to type-check downcasts. */
  356. $[cdefine DO_DCAST]
  357. /* Define if we want to provide collision system recording and
  358. visualization tools. */
  359. $[cdefine DO_COLLISION_RECORDING]
  360. /* Define if we want to enable track-memory-usage. */
  361. $[cdefine DO_MEMORY_USAGE]
  362. /* Define if we want to enable min-lag and max-lag. */
  363. $[cdefine SIMULATE_NETWORK_DELAY]
  364. /* Define if we want to allow immediate mode OpenGL rendering. */
  365. $[cdefine SUPPORT_IMMEDIATE_MODE]
  366. /* Define if we want to compile in support for pipelining. */
  367. $[cdefine DO_PIPELINING]
  368. /* Define if we want to keep Notify debug messages around, or undefine
  369. to compile them out. */
  370. $[cdefine NOTIFY_DEBUG]
  371. /* Define if we want to export template classes from the DLL. Only
  372. makes sense to MSVC++. */
  373. $[cdefine EXPORT_TEMPLATES]
  374. /* Define if we are linking PANDAPHYSX in with PANDA. */
  375. $[cdefine LINK_IN_PHYSX]
  376. /* The compiled-in character(s) to expect to separate different
  377. components of a path list (e.g. $PRC_PATH). */
  378. # define DEFAULT_PATHSEP "$[DEFAULT_PATHSEP]"
  379. /* Many of the prc variables are exported by
  380. dtool/src/prc/prc_parameters.h.pp, instead of here. Only those prc
  381. variables that must be visible outside of the prc directory are
  382. exported here. */
  383. /* The filename that specifies the public keys to import into
  384. config. */
  385. # define PRC_PUBLIC_KEYS_FILENAME "$[unixfilename $[PRC_PUBLIC_KEYS_FILENAME]]"
  386. #if $[PRC_PUBLIC_KEYS_FILENAME]
  387. # define PRC_PUBLIC_KEYS_INCLUDE "$[osfilename $[PRC_PUBLIC_KEYS_FILENAME]]"
  388. #endif
  389. /* Define if you want to save the descriptions for ConfigVariables. */
  390. $[cdefine PRC_SAVE_DESCRIPTIONS]
  391. /* Define if your processor stores words with the most significant
  392. byte first (like Motorola and SPARC, unlike Intel and VAX). */
  393. $[cdefine WORDS_BIGENDIAN]
  394. /* Define if the C++ compiler uses namespaces. */
  395. $[cdefine HAVE_NAMESPACE]
  396. /* Define if fstream::open() accepts a third parameter for umask. */
  397. $[cdefine HAVE_OPEN_MASK]
  398. /* Define if some header file defines wchar_t. */
  399. $[cdefine HAVE_WCHAR_T]
  400. /* Define if the <string> header file defines wstring. */
  401. $[cdefine HAVE_WSTRING]
  402. /* Define if the C++ compiler supports the typename keyword. */
  403. $[cdefine HAVE_TYPENAME]
  404. /* Define if we can trust the compiler not to insert extra bytes in
  405. structs between base structs and derived structs. */
  406. $[cdefine SIMPLE_STRUCT_POINTERS]
  407. /* Define if we have Dinkumware STL installed. */
  408. $[cdefine HAVE_DINKUM]
  409. /* Define if we have STL hash_map etc. available */
  410. $[cdefine HAVE_STL_HASH]
  411. /* Define if we have a gettimeofday() function. */
  412. $[cdefine HAVE_GETTIMEOFDAY]
  413. /* Define if gettimeofday() takes only one parameter. */
  414. $[cdefine GETTIMEOFDAY_ONE_PARAM]
  415. /* Define if you have the getopt function. */
  416. $[cdefine HAVE_GETOPT]
  417. /* Define if you have the getopt_long_only function. */
  418. $[cdefine HAVE_GETOPT_LONG_ONLY]
  419. /* Define if getopt appears in getopt.h. */
  420. $[cdefine HAVE_GETOPT_H]
  421. /* Define if you have ioctl(TIOCGWINSZ) to determine terminal width. */
  422. $[cdefine IOCTL_TERMINAL_WIDTH]
  423. /* Do the system headers define a "streamsize" typedef? */
  424. $[cdefine HAVE_STREAMSIZE]
  425. /* Do the system headers define key ios typedefs like ios::openmode
  426. and ios::fmtflags? */
  427. $[cdefine HAVE_IOS_TYPEDEFS]
  428. /* Define if the C++ iostream library defines ios::binary. */
  429. $[cdefine HAVE_IOS_BINARY]
  430. /* Can we safely call getenv() at static init time? */
  431. $[cdefine STATIC_INIT_GETENV]
  432. /* Can we read the file /proc/self/environ to determine our
  433. environment variables at static init time? */
  434. $[cdefine HAVE_PROC_SELF_ENVIRON]
  435. /* Do we have a global pair of argc/argv variables that we can read at
  436. static init time? Should we prototype them? What are they called? */
  437. $[cdefine HAVE_GLOBAL_ARGV]
  438. $[cdefine PROTOTYPE_GLOBAL_ARGV]
  439. $[cdefine GLOBAL_ARGV]
  440. $[cdefine GLOBAL_ARGC]
  441. /* Can we read the file /proc/self/cmdline to determine our
  442. command-line arguments at static init time? */
  443. $[cdefine HAVE_PROC_SELF_CMDLINE]
  444. /* Define if you have the <io.h> header file. */
  445. $[cdefine HAVE_IO_H]
  446. /* Define if you have the <iostream> header file. */
  447. $[cdefine HAVE_IOSTREAM]
  448. /* Define if you have the <malloc.h> header file. */
  449. $[cdefine HAVE_MALLOC_H]
  450. /* Define if you have the <sys/malloc.h> header file. */
  451. $[cdefine HAVE_SYS_MALLOC_H]
  452. /* Define if you have the <alloca.h> header file. */
  453. $[cdefine HAVE_ALLOCA_H]
  454. /* Define if you have the <locale.h> header file. */
  455. $[cdefine HAVE_LOCALE_H]
  456. /* Define if you have the <string.h> header file. */
  457. $[cdefine HAVE_STRING_H]
  458. /* Define if you have the <stdlib.h> header file. */
  459. $[cdefine HAVE_STDLIB_H]
  460. /* Define if you have the <limits.h> header file. */
  461. $[cdefine HAVE_LIMITS_H]
  462. /* Define if you have the <minmax.h> header file. */
  463. $[cdefine HAVE_MINMAX_H]
  464. /* Define if you have the <sstream> header file. */
  465. $[cdefine HAVE_SSTREAM]
  466. /* Define if you have the <new> header file. */
  467. $[cdefine HAVE_NEW]
  468. /* Define if you have the <sys/types.h> header file. */
  469. $[cdefine HAVE_SYS_TYPES_H]
  470. /* Define if you have the <sys/time.h> header file. */
  471. $[cdefine HAVE_SYS_TIME_H]
  472. /* Define if you have the <unistd.h> header file. */
  473. $[cdefine HAVE_UNISTD_H]
  474. /* Define if you have the <utime.h> header file. */
  475. $[cdefine HAVE_UTIME_H]
  476. /* Define if you have the <glob.h> header file. */
  477. $[cdefine HAVE_GLOB_H]
  478. /* Define if you have the <dirent.h> header file. */
  479. $[cdefine HAVE_DIRENT_H]
  480. /* Define if you have the <drfftw.h> header file. */
  481. $[cdefine HAVE_DRFFTW_H]
  482. /* Do we have <sys/soundcard.h> (and presumably a Linux-style audio
  483. interface)? */
  484. $[cdefine HAVE_SYS_SOUNDCARD_H]
  485. /* Do we have <ucontext.h> (and therefore makecontext() /
  486. swapcontext())? */
  487. $[cdefine HAVE_UCONTEXT_H]
  488. /* Do we have <linux/input.h> ? This enables us to use raw mouse input. */
  489. $[cdefine HAVE_LINUX_INPUT_H]
  490. /* Do we have RTTI (and <typeinfo>)? */
  491. $[cdefine HAVE_RTTI]
  492. /* Do we have Posix threads? */
  493. $[cdefine HAVE_POSIX_THREADS]
  494. /* Is the code being compiled with the Tau profiler's instrumentor? */
  495. $[cdefine USE_TAU]
  496. /* Define if needed to have 64-bit file i/o */
  497. $[cdefine __USE_LARGEFILE64]
  498. /* Which memory allocation scheme should we use? */
  499. #define USE_MEMORY_DLMALLOC
  500. #define USE_MEMORY_PTMALLOC2
  501. #define USE_MEMORY_MALLOC
  502. #define USE_MEMORY_NOWRAPPERS
  503. #if $[ALTERNATIVE_MALLOC]
  504. #if $[and $[WIN32_PLATFORM], $[HAVE_THREADS], $[not $[SIMPLE_THREADS]]]
  505. // A fast thread-safe alternative implementation, but which only
  506. // seems to be a good choice on Windows. (It crashes on Linux and
  507. // isn't thread-safe on OSX).
  508. #set USE_MEMORY_PTMALLOC2 1
  509. #else
  510. // A faster, but non-thread-safe, alternative implementation.
  511. // When threading support is compiled in, we use a global mutex to
  512. // protect it.
  513. #set USE_MEMORY_DLMALLOC 1
  514. #endif
  515. #else
  516. #if $[DO_MEMORY_USAGE]
  517. // Redefine new and delete to malloc(), and also provide hooks for
  518. // the benefit of the MemoryUsage class.
  519. #set USE_MEMORY_MALLOC 1
  520. #else
  521. // Don't redefine new and delete at all.
  522. #set USE_MEMORY_NOWRAPPERS 1
  523. #endif
  524. #endif
  525. $[cdefine USE_MEMORY_DLMALLOC]
  526. $[cdefine USE_MEMORY_PTMALLOC2]
  527. $[cdefine USE_MEMORY_MALLOC]
  528. $[cdefine USE_MEMORY_NOWRAPPERS]
  529. // To activate the DELETED_CHAIN macros.
  530. $[cdefine USE_DELETED_CHAIN]
  531. // If we are to build the native net interfaces.
  532. $[cdefine WANT_NATIVE_NET]
  533. /* Turn off warnings for using scanf and such */
  534. #if $[eq $[USE_COMPILER],MSVC9]
  535. #print Will ignore CRT_SECURE warnings for MSVC9
  536. $[cdefine _CRT_SECURE_NO_WARNINGS]
  537. # pragma warning( disable : 4996 4275 )
  538. #endif
  539. /* Can we define a modern-style STL allocator? */
  540. $[cdefine USE_STL_ALLOCATOR]
  541. /* Static linkage instead of the normal dynamic linkage? */
  542. $[cdefine LINK_ALL_STATIC]
  543. /* Platform-identifying defines. */
  544. $[cdefine IS_OSX]
  545. $[cdefine IS_LINUX]
  546. $[cdefine IS_FREEBSD]
  547. $[cdefine BUILD_IPHONE]
  548. #end dtool_config.h