LocalSetup.pp 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  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. #output dtool_config.h notouch
  12. #format straight
  13. /* dtool_config.h. Generated automatically by $[PPREMAKE] $[PPREMAKE_VERSION] from $[SOURCEFILE]. */
  14. /* Define if we have Python installed. */
  15. $[cdefine HAVE_PYTHON]
  16. /* Define if we have RAD game tools, Miles Sound System installed. */
  17. $[cdefine HAVE_RAD_MSS]
  18. /* Define if we have Freetype 2.0 or better available. */
  19. $[cdefine HAVE_FREETYPE]
  20. /* Define if we have Maya available. */
  21. $[cdefine HAVE_MAYA]
  22. /* Define if we have NSPR installed. */
  23. $[cdefine HAVE_NSPR]
  24. /* Define if we have crypto++ installed. */
  25. $[cdefine HAVE_CRYPTO]
  26. /* Define if we have libjpeg installed. */
  27. $[cdefine HAVE_JPEG]
  28. /* Define if we have libjasper installed. */
  29. $[cdefine HAVE_JPEG2000]
  30. /* Define if we have libtiff installed. */
  31. $[cdefine HAVE_TIFF]
  32. /* Define if we have libfftw installed. */
  33. $[cdefine HAVE_FFTW]
  34. /* Define if we have NURBS++ installed. */
  35. $[cdefine HAVE_NURBSPP]
  36. /* Define if we have VRPN installed. */
  37. $[cdefine HAVE_VRPN]
  38. /* Define if we have zlib installed. */
  39. $[cdefine HAVE_ZLIB]
  40. /* Define if we have OpenGL installed and want to build for GL. */
  41. $[cdefine HAVE_GL]
  42. /* Define if we want to build with SGI OpenGL extensions. */
  43. $[cdefine HAVE_SGIGL]
  44. /* Define if we have GLX installed and want to build for GLX. */
  45. $[cdefine HAVE_GLX]
  46. /* Define if we have Windows-GL installed and want to build for Wgl. */
  47. $[cdefine HAVE_WGL]
  48. /* Define if we have Glut installed and want to build for Glut. */
  49. $[cdefine HAVE_GLUT]
  50. /* Define if we have DirectX installed and want to build for DX. */
  51. $[cdefine HAVE_DX]
  52. /* Define if we have Chromium OpenGL installed and want to build for GL. */
  53. $[cdefine HAVE_CHROMIUM]
  54. /* Define if we have Chromium installed and want to run it in Windows. */
  55. $[cdefine HAVE_WCR]
  56. /* Define if we want to build the Renderman interface. */
  57. $[cdefine HAVE_RIB]
  58. /* Define if we have sox libst installed. */
  59. $[cdefine HAVE_SOXST]
  60. /* Define if we want to use mikmod for audio. */
  61. $[cdefine HAVE_MIKMOD]
  62. /* Define if we want to compile the ipc code. */
  63. $[cdefine HAVE_IPC]
  64. /* Define if we want to compile the net code. */
  65. $[cdefine HAVE_NET]
  66. /* Define if we want to compile the audio code. */
  67. $[cdefine HAVE_AUDIO]
  68. /* Define if we have bison and flex available. */
  69. $[cdefine HAVE_BISON]
  70. /* Define if we want to use PStats. */
  71. $[cdefine DO_PSTATS]
  72. /* Define if we want to track callbacks from within the show code. */
  73. $[cdefine TRACK_IN_INTERPRETER]
  74. /* Define if we want to enable track-memory-usage. */
  75. $[cdefine DO_MEMORY_USAGE]
  76. /* Define if we want to compile in support for pipelining. */
  77. $[cdefine DO_PIPELINING]
  78. /* Define if we want to keep Notify debug messages around, or undefine
  79. to compile them out. */
  80. $[cdefine NOTIFY_DEBUG]
  81. /* Define if we want to export template classes from the DLL. Only
  82. makes sense to MSVC++. */
  83. $[cdefine EXPORT_TEMPLATES]
  84. /* Define if we are linking PANDAGL in with PANDA. */
  85. $[cdefine LINK_IN_GL]
  86. /* Define if we are linking PANDAPHYSICS in with PANDA. */
  87. $[cdefine LINK_IN_PHYSICS]
  88. /* Define if your processor stores words with the most significant
  89. byte first (like Motorola and SPARC, unlike Intel and VAX). */
  90. $[cdefine WORDS_BIGENDIAN]
  91. /* Define if the C++ compiler uses namespaces. */
  92. $[cdefine HAVE_NAMESPACE]
  93. /* Define if the C++ iostream library supports ios::binary. */
  94. $[cdefine HAVE_IOS_BINARY]
  95. /* Define if we can trust the compiler not to insert extra bytes in
  96. structs between base structs and derived structs. */
  97. $[cdefine SIMPLE_STRUCT_POINTERS]
  98. /* Define if we have Dinkumware STL installed. */
  99. $[cdefine HAVE_DINKUM]
  100. /* Define if we have a gettimeofday() function. */
  101. $[cdefine HAVE_GETTIMEOFDAY]
  102. /* Define if gettimeofday() takes only one parameter. */
  103. $[cdefine GETTIMEOFDAY_ONE_PARAM]
  104. /* Define if you have the getopt function. */
  105. $[cdefine HAVE_GETOPT]
  106. /* Define if you have the getopt_long_only function. */
  107. $[cdefine HAVE_GETOPT_LONG_ONLY]
  108. /* Define if you have ioctl(TIOCGWINSZ) to determine terminal width. */
  109. $[cdefine IOCTL_TERMINAL_WIDTH]
  110. /* Do the compiler or the system headers define a "streamsize" typedef? */
  111. $[cdefine HAVE_STREAMSIZE]
  112. /* Can we safely call getenv() at static init time? */
  113. $[cdefine STATIC_INIT_GETENV]
  114. /* Can we read the file /proc/self/environ to determine our
  115. environment variables at static init time? */
  116. $[cdefine HAVE_PROC_SELF_ENVIRON]
  117. /* Do we have a global pair of argc/argv variables that we can read at
  118. static init time? Should we prototype them? What are they called? */
  119. $[cdefine HAVE_GLOBAL_ARGV]
  120. $[cdefine PROTOTYPE_GLOBAL_ARGV]
  121. $[cdefine GLOBAL_ARGV]
  122. $[cdefine GLOBAL_ARGC]
  123. /* Can we read the file /proc/self/cmdline to determine our
  124. command-line arguments at static init time? */
  125. $[cdefine HAVE_PROC_SELF_CMDLINE]
  126. /* Define if you have the <io.h> header file. */
  127. $[cdefine HAVE_IO_H]
  128. /* Define if you have the <iostream> header file. */
  129. $[cdefine HAVE_IOSTREAM]
  130. /* Define if you have the <malloc.h> header file. */
  131. $[cdefine HAVE_MALLOC_H]
  132. /* Define if you have the <alloca.h> header file. */
  133. $[cdefine HAVE_ALLOCA_H]
  134. /* Define if you have the <minmax.h> header file. */
  135. $[cdefine HAVE_MINMAX_H]
  136. /* Define if you have the <sstream> header file. */
  137. $[cdefine HAVE_SSTREAM]
  138. /* Define if you have the <new> header file. */
  139. $[cdefine HAVE_NEW]
  140. /* Define if you have the <sys/types.h> header file. */
  141. $[cdefine HAVE_SYS_TYPES]
  142. /* Define if you have the <unistd.h> header file. */
  143. $[cdefine HAVE_UNISTD_H]
  144. /* Define if you have the <utime.h> header file. */
  145. $[cdefine HAVE_UTIME_H]
  146. /* Define if you have the <dirent.h> header file. */
  147. $[cdefine HAVE_DIRENT_H]
  148. /* Do we have <sys/soundcard.h> (and presumably a Linux-style audio
  149. interface)? */
  150. $[cdefine HAVE_SYS_SOUNDCARD_H]
  151. /* Do we have RTTI (and <typeinfo>)? */
  152. $[cdefine HAVE_RTTI]
  153. /* Must global operator new and delete functions throw exceptions? */
  154. $[cdefine GLOBAL_OPERATOR_NEW_EXCEPTIONS]
  155. /* What style STL allocator should we declare? */
  156. #define OLD_STYLE_ALLOCATOR
  157. #define GNU_STYLE_ALLOCATOR
  158. #define VC6_STYLE_ALLOCATOR
  159. #define MODERN_STYLE_ALLOCATOR
  160. #define NO_STYLE_ALLOCATOR
  161. #if $[eq $[OPTIMIZE], 4]
  162. // In optimize level 4, we never try to use custom allocators.
  163. #set NO_STYLE_ALLOCATOR 1
  164. #elif $[eq $[STL_ALLOCATOR], OLD]
  165. // "OLD": Irix 6.2-era STL.
  166. #set OLD_STYLE_ALLOCATOR 1
  167. #elif $[eq $[STL_ALLOCATOR], GNU]
  168. // "GNU": gcc 2.95-era.
  169. #set GNU_STYLE_ALLOCATOR 1
  170. #elif $[eq $[STL_ALLOCATOR], VC6]
  171. // "VC6": Microsoft Visual C++ 6.
  172. #set VC6_STYLE_ALLOCATOR 1
  173. #elif $[eq $[STL_ALLOCATOR], MODERN]
  174. // "MODERN": Have we finally come to a standard?
  175. #set MODERN_STYLE_ALLOCATOR 1
  176. #else
  177. // Anything else is "unknown". We won't try to define allocators at
  178. // all.
  179. #set NO_STYLE_ALLOCATOR 1
  180. #endif
  181. $[cdefine OLD_STYLE_ALLOCATOR]
  182. $[cdefine GNU_STYLE_ALLOCATOR]
  183. $[cdefine VC6_STYLE_ALLOCATOR]
  184. $[cdefine MODERN_STYLE_ALLOCATOR]
  185. $[cdefine NO_STYLE_ALLOCATOR]
  186. #end dtool_config.h