LocalSetup.pp 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  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_BDB]
  44. #print + Berkeley DB
  45. #else
  46. #print - Did not find Berkeley DB
  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_GTK]
  94. #print + gtk+-2
  95. #else
  96. #print - Did not find gtk+-2
  97. #endif
  98. #if $[HAVE_FREETYPE]
  99. #print + Freetype
  100. #else
  101. #print - Did not find Freetype
  102. #endif
  103. #if $[HAVE_GL]
  104. #print + OpenGL
  105. #else
  106. #print - Did not find OpenGL
  107. #endif
  108. #if $[HAVE_DX8]
  109. #print + DirectX8
  110. #else
  111. #print - Did not find DirectX8
  112. #endif
  113. #if $[HAVE_DX9]
  114. #print + DirectX9
  115. #else
  116. #print - Did not find DirectX9
  117. #endif
  118. #if $[HAVE_OPENCV]
  119. #print + OpenCV
  120. #else
  121. #print - Did not find OpenCV
  122. #endif
  123. #if $[HAVE_FFMPEG]
  124. #print + FFMPEG
  125. #else
  126. #print - Did not find FFMPEG
  127. #endif
  128. #if $[HAVE_ODE]
  129. #print + ODE
  130. #else
  131. #print - Did not find ODE
  132. #endif
  133. #if $[HAVE_MAYA]
  134. #print + OpenMaya
  135. #else
  136. #print - Did not find OpenMaya
  137. #endif
  138. #print
  139. #if $[and $[HAVE_INTERROGATE],$[HAVE_PYTHON]]
  140. #print Compilation will generate Python interfaces.
  141. #else
  142. #print Configuring Panda WITHOUT Python interfaces.
  143. #endif
  144. #print
  145. #print See dtool_config.h for more details about the specified configuration.
  146. #print
  147. // We don't include the ppremake version in the first comment line of
  148. // the output to dtool_config.h, below, to minimize unnecessary
  149. // complete rebuilds due to an updated ppremake version.
  150. #output dtool_config.h notouch
  151. #format straight
  152. /* dtool_config.h. Generated automatically by $[PPREMAKE] from $[SOURCEFILE]. */
  153. /* Define if we have Python installed. */
  154. $[cdefine HAVE_PYTHON]
  155. $[cdefine USE_DEBUG_PYTHON]
  156. /* Define if we have Python as a framework (Mac OS X). */
  157. $[cdefine PYTHON_FRAMEWORK]
  158. /* Define if we have RAD game tools, Miles Sound System installed. */
  159. $[cdefine HAVE_RAD_MSS]
  160. /* Define if we have FMODex installed. */
  161. $[cdefine HAVE_FMODEX]
  162. /* Define if we have Freetype 2.0 or better available. */
  163. $[cdefine HAVE_FREETYPE]
  164. /* Define if we want to compile in a default font. */
  165. $[cdefine COMPILE_IN_DEFAULT_FONT]
  166. /* Define if we have Maya available. */
  167. $[cdefine HAVE_MAYA]
  168. $[cdefine MAYA_PRE_5_0]
  169. /* Define if we have SoftImage available. */
  170. $[cdefine HAVE_SOFTIMAGE]
  171. /* Define if we have OpenSSL installed. */
  172. $[cdefine HAVE_OPENSSL]
  173. $[cdefine OPENSSL_097]
  174. $[cdefine REPORT_OPENSSL_ERRORS]
  175. /* Define if we have libjpeg installed. */
  176. $[cdefine HAVE_JPEG]
  177. /* Define if we have libpng installed. */
  178. $[cdefine HAVE_PNG]
  179. /* Define if we have libtiff installed. */
  180. $[cdefine HAVE_TIFF]
  181. /* Define if we have libtar installed. */
  182. $[cdefine HAVE_TAR]
  183. /* Define if we have libfftw installed. */
  184. $[cdefine HAVE_FFTW]
  185. /* Define if we have Berkeley DB installed. */
  186. $[cdefine HAVE_BDB]
  187. /* Define if we have VRPN installed. */
  188. $[cdefine HAVE_VRPN]
  189. /* Define if we have HELIX installed. */
  190. $[cdefine HAVE_HELIX]
  191. /* Define if we have CG installed. */
  192. $[cdefine HAVE_CG]
  193. /* Define if we have CGGL installed. */
  194. $[cdefine HAVE_CGGL]
  195. /* Define if we have CGDX8 installed. */
  196. $[cdefine HAVE_CGDX8]
  197. /* Define if we have CGDX9 installed. */
  198. $[cdefine HAVE_CGDX9]
  199. /* Define if we have CGDX10 installed. */
  200. $[cdefine HAVE_CGDX10]
  201. /* Define if we have zlib installed. */
  202. $[cdefine HAVE_ZLIB]
  203. /* Define if we have OpenGL installed and want to build for GL. */
  204. $[cdefine HAVE_GL]
  205. $[cdefine HAVE_GLU]
  206. /* Define if we have OpenCV installed and want to build for OpenCV. */
  207. $[cdefine HAVE_OPENCV]
  208. /* Define if we have FFMPEG installed and want to build for FFMPEG. */
  209. $[cdefine HAVE_FFMPEG]
  210. /* Define if we have ODE installed and want to build for ODE. */
  211. $[cdefine HAVE_ODE]
  212. /* Define if we have Mesa installed and want to build mesadisplay. */
  213. $[cdefine HAVE_MESA]
  214. $[cdefine MESA_MGL]
  215. /* Define if we want to build with SGI OpenGL extensions. */
  216. $[cdefine HAVE_SGIGL]
  217. /* Define if we have GLX installed and want to build for GLX. */
  218. $[cdefine HAVE_GLX]
  219. /* Define if we have Windows-GL installed and want to build for Wgl. */
  220. $[cdefine HAVE_WGL]
  221. /* Define if we have DirectX installed and want to build for DX. */
  222. $[cdefine HAVE_DX8]
  223. /* Define if we have DirectX installed and want to build for DX. */
  224. $[cdefine HAVE_DX9]
  225. /* Define if we have Chromium installed and want to use it. */
  226. $[cdefine HAVE_CHROMIUM]
  227. /* Define if we want to compile the threading code. */
  228. $[cdefine HAVE_THREADS]
  229. /* Define to enable deadlock detection, mutex recursion checks, etc. */
  230. $[cdefine DEBUG_THREADS]
  231. /* Define to implement mutexes and condition variables via a user-space spinlock. */
  232. $[cdefine MUTEX_SPINLOCK]
  233. /* Define if we want to compile the net code. */
  234. $[cdefine HAVE_NET]
  235. /* Define if we want to compile the audio code. */
  236. $[cdefine HAVE_AUDIO]
  237. /* Define if we have bison and flex available. */
  238. $[cdefine HAVE_BISON]
  239. /* Define if we want to use PStats. */
  240. $[cdefine DO_PSTATS]
  241. /* Define if we want to type-check downcasts. */
  242. $[cdefine DO_DCAST]
  243. /* Define if we want to provide collision system recording and
  244. visualization tools. */
  245. $[cdefine DO_COLLISION_RECORDING]
  246. /* Define if we want to track callbacks from within the show code. */
  247. $[cdefine TRACK_IN_INTERPRETER]
  248. /* Define if we want to enable track-memory-usage. */
  249. $[cdefine DO_MEMORY_USAGE]
  250. $[cdefine REDEFINE_GLOBAL_OPERATOR_NEW]
  251. /* Define if we want to enable min-lag and max-lag. */
  252. $[cdefine SIMULATE_NETWORK_DELAY]
  253. /* Define if we want to allow immediate mode OpenGL rendering. */
  254. $[cdefine SUPPORT_IMMEDIATE_MODE]
  255. /* Define if we want to compile in support for pipelining. */
  256. $[cdefine DO_PIPELINING]
  257. /* Define if we want to keep Notify debug messages around, or undefine
  258. to compile them out. */
  259. $[cdefine NOTIFY_DEBUG]
  260. /* Define if we want to export template classes from the DLL. Only
  261. makes sense to MSVC++. */
  262. $[cdefine EXPORT_TEMPLATES]
  263. /* Define if we are linking PANDAGL in with PANDA. */
  264. $[cdefine LINK_IN_GL]
  265. /* Define if we are linking PANDAPHYSICS in with PANDA. */
  266. $[cdefine LINK_IN_PHYSICS]
  267. /* The compiled-in character(s) to expect to separate different
  268. components of a path list (e.g. $PRC_PATH). */
  269. # define DEFAULT_PATHSEP "$[DEFAULT_PATHSEP]"
  270. /* Many of the prc variables are exported by
  271. dtool/src/prc/prc_parameters.h.pp, instead of here. Only those prc
  272. variables that must be visible outside of the prc directory are
  273. exported here. */
  274. /* The filename that specifies the public keys to import into
  275. config. */
  276. # define PRC_PUBLIC_KEYS_FILENAME "$[unixfilename $[PRC_PUBLIC_KEYS_FILENAME]]"
  277. #if $[PRC_PUBLIC_KEYS_FILENAME]
  278. # define PRC_PUBLIC_KEYS_INCLUDE "$[osfilename $[PRC_PUBLIC_KEYS_FILENAME]]"
  279. #endif
  280. /* Define if you want to save the descriptions for ConfigVariables. */
  281. $[cdefine PRC_SAVE_DESCRIPTIONS]
  282. /* Define if your processor stores words with the most significant
  283. byte first (like Motorola and SPARC, unlike Intel and VAX). */
  284. $[cdefine WORDS_BIGENDIAN]
  285. /* Define if the C++ compiler uses namespaces. */
  286. $[cdefine HAVE_NAMESPACE]
  287. /* Define if fstream::open() accepts a third parameter for umask. */
  288. $[cdefine HAVE_OPEN_MASK]
  289. /* Define if some header file defines wchar_t. */
  290. $[cdefine HAVE_WCHAR_T]
  291. /* Define if the <string> header file defines wstring. */
  292. $[cdefine HAVE_WSTRING]
  293. /* Define if the C++ compiler supports the typename keyword. */
  294. $[cdefine HAVE_TYPENAME]
  295. /* Define if we can trust the compiler not to insert extra bytes in
  296. structs between base structs and derived structs. */
  297. $[cdefine SIMPLE_STRUCT_POINTERS]
  298. /* Define if we have Dinkumware STL installed. */
  299. $[cdefine HAVE_DINKUM]
  300. /* Define if we have STL hash_map etc. available */
  301. $[cdefine HAVE_STL_HASH]
  302. /* Define if we have a gettimeofday() function. */
  303. $[cdefine HAVE_GETTIMEOFDAY]
  304. /* Define if gettimeofday() takes only one parameter. */
  305. $[cdefine GETTIMEOFDAY_ONE_PARAM]
  306. /* Define if you have the getopt function. */
  307. $[cdefine HAVE_GETOPT]
  308. /* Define if you have the getopt_long_only function. */
  309. $[cdefine HAVE_GETOPT_LONG_ONLY]
  310. /* Define if getopt appears in getopt.h. */
  311. $[cdefine HAVE_GETOPT_H]
  312. /* Define if you have ioctl(TIOCGWINSZ) to determine terminal width. */
  313. $[cdefine IOCTL_TERMINAL_WIDTH]
  314. /* Do the system headers define a "streamsize" typedef? */
  315. $[cdefine HAVE_STREAMSIZE]
  316. /* Do the system headers define key ios typedefs like ios::openmode
  317. and ios::fmtflags? */
  318. $[cdefine HAVE_IOS_TYPEDEFS]
  319. /* Define if the C++ iostream library defines ios::binary. */
  320. $[cdefine HAVE_IOS_BINARY]
  321. /* Can we safely call getenv() at static init time? */
  322. $[cdefine STATIC_INIT_GETENV]
  323. /* Can we read the file /proc/self/environ to determine our
  324. environment variables at static init time? */
  325. $[cdefine HAVE_PROC_SELF_ENVIRON]
  326. /* Do we have a global pair of argc/argv variables that we can read at
  327. static init time? Should we prototype them? What are they called? */
  328. $[cdefine HAVE_GLOBAL_ARGV]
  329. $[cdefine PROTOTYPE_GLOBAL_ARGV]
  330. $[cdefine GLOBAL_ARGV]
  331. $[cdefine GLOBAL_ARGC]
  332. /* Can we read the file /proc/self/cmdline to determine our
  333. command-line arguments at static init time? */
  334. $[cdefine HAVE_PROC_SELF_CMDLINE]
  335. /* Define if you have the <io.h> header file. */
  336. $[cdefine HAVE_IO_H]
  337. /* Define if you have the <iostream> header file. */
  338. $[cdefine HAVE_IOSTREAM]
  339. /* Define if you have the <malloc.h> header file. */
  340. $[cdefine HAVE_MALLOC_H]
  341. /* Define if you have the <sys/malloc.h> header file. */
  342. $[cdefine HAVE_SYS_MALLOC_H]
  343. /* Define if you have the <alloca.h> header file. */
  344. $[cdefine HAVE_ALLOCA_H]
  345. /* Define if you have the <locale.h> header file. */
  346. $[cdefine HAVE_LOCALE_H]
  347. /* Define if you have the <minmax.h> header file. */
  348. $[cdefine HAVE_MINMAX_H]
  349. /* Define if you have the <sstream> header file. */
  350. $[cdefine HAVE_SSTREAM]
  351. /* Define if you have the <new> header file. */
  352. $[cdefine HAVE_NEW]
  353. /* Define if you have the <sys/types.h> header file. */
  354. $[cdefine HAVE_SYS_TYPES_H]
  355. /* Define if you have the <sys/time.h> header file. */
  356. $[cdefine HAVE_SYS_TIME_H]
  357. /* Define if you have the <unistd.h> header file. */
  358. $[cdefine HAVE_UNISTD_H]
  359. /* Define if you have the <utime.h> header file. */
  360. $[cdefine HAVE_UTIME_H]
  361. /* Define if you have the <glob.h> header file. */
  362. $[cdefine HAVE_GLOB_H]
  363. /* Define if you have the <dirent.h> header file. */
  364. $[cdefine HAVE_DIRENT_H]
  365. /* Do we have <sys/soundcard.h> (and presumably a Linux-style audio
  366. interface)? */
  367. $[cdefine HAVE_SYS_SOUNDCARD_H]
  368. /* Do we have RTTI (and <typeinfo>)? */
  369. $[cdefine HAVE_RTTI]
  370. /* Do we have Posix threads? */
  371. $[cdefine HAVE_POSIX_THREADS]
  372. /* Do we want to build for Linux native threads? */
  373. $[cdefine HAVE_LINUX_NATIVE_THREADS]
  374. /* Is the code being compiled with the Tau profiler's instrumentor? */
  375. $[cdefine USE_TAU]
  376. /* Define if needed to have 64-bit file i/o */
  377. $[cdefine __USE_LARGEFILE64]
  378. /* Must global operator new and delete functions throw exceptions? */
  379. $[cdefine GLOBAL_OPERATOR_NEW_EXCEPTIONS]
  380. /* Which memory allocation scheme should we use? */
  381. #define USE_MEMORY_DLMALLOC
  382. #define USE_MEMORY_PTMALLOC2
  383. #define USE_MEMORY_MALLOC
  384. #define USE_MEMORY_NOWRAPPERS
  385. #if $[ALTERNATIVE_MALLOC]
  386. #if $[HAVE_THREADS]
  387. // A fast thread-safe alternative implementation.
  388. #set USE_MEMORY_PTMALLOC2 1
  389. #else
  390. // A faster, but non-thread-safe, alternative implementation.
  391. #set USE_MEMORY_DLMALLOC 1
  392. #endif
  393. #else
  394. #if $[DO_MEMORY_USAGE]
  395. // Redefine new and delete to malloc(), and also provide hooks for
  396. // the benefit of the MemoryUsage class.
  397. #set USE_MEMORY_MALLOC 1
  398. #else
  399. // Don't redefine new and delete at all.
  400. #set USE_MEMORY_NOWRAPPERS 1
  401. #endif
  402. #endif
  403. $[cdefine USE_MEMORY_DLMALLOC]
  404. $[cdefine USE_MEMORY_PTMALLOC2]
  405. $[cdefine USE_MEMORY_MALLOC]
  406. $[cdefine USE_MEMORY_NOWRAPPERS]
  407. // If we are to build the native net interfaces.
  408. $[cdefine WANT_NATIVE_NET]
  409. /* Can we define a modern-style STL allocator? */
  410. $[cdefine USE_STL_ALLOCATOR]
  411. /* Platform-identifying defines. */
  412. $[cdefine IS_OSX]
  413. $[cdefine IS_LINUX]
  414. #end dtool_config.h