LocalSetup.pp 9.0 KB

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