LocalSetup.pp 8.2 KB

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