Config.osxintel.pp 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. //
  2. // Config.osx.pp
  3. //
  4. // This file defines some custom config variables for the osx
  5. // platform. It makes some initial guesses about compiler features,
  6. // etc.
  7. //
  8. // *******************************************************************
  9. // NOTE: you should not attempt to copy this file verbatim as your own
  10. // personal Config.pp file. Instead, you should start with an empty
  11. // Config.pp file, and add lines to it when you wish to override
  12. // settings given in here. In the normal ppremake system, this file
  13. // will always be read first, and then your personal Config.pp file
  14. // will be read later, which gives you a chance to override the
  15. // default settings found in this file. However, if you start by
  16. // copying the entire file, it will be difficult to tell which
  17. // settings you have customized, and it will be difficult to upgrade
  18. // to a subsequent version of Panda.
  19. // *******************************************************************
  20. //#define PYTHON_IPATH /Library/Frameworks/Python.framework/Headers
  21. //#define PYTHON_LPATH /Library/Frameworks/Python.framework/Headers
  22. #define PYTHON_IPATH /Library/Frameworks/Python.framework/Headers
  23. #define HAVE_PYTHON 1
  24. #define PYTHON_FRAMEWORK Python
  25. // What additional flags should we pass to interrogate?
  26. #define SYSTEM_IGATE_FLAGS -D__FLT_EVAL_METHOD__=0 -D__i386__ -D__const=const -Dvolatile -D__LITTLE_ENDIAN__ -D__inline__=inline -D__GNUC__
  27. #define HAVE_GL 1
  28. #define IS_OSX 1
  29. //#define ZLIB_IPATH /usr/include
  30. //#define ZLIB_LPATH /usr/lib/
  31. //#define ZLIB_LIBS libz.dylib
  32. #define HAVE_ZLIB 1
  33. #define HAVE_JPEG 1
  34. #define HAVE_FREETYPE 1
  35. #print Before Configure Miles
  36. #define HAVE_RAD_MSS 1
  37. #define RAD_MSS_IPATH /Users/roger/m/include
  38. #define RAD_MSS_LPATH /Users/roger/m/redist/macx86
  39. #define RAD_MSS_LIBS MilesMachOx86
  40. #define rad_mss_ipath $[RAD_MSS_IPATH]
  41. #define rad_mss_lpath $[RAD_MSS_LPATH]
  42. #define rad_mss_libs $[RAD_MSS_LIBS]
  43. //#print -- $[RAD_MSS_IPATH]
  44. //#print --- $[RAD_MSS_LPATH]
  45. //#print ----$[RAD_MSS_LIBS]
  46. //#print ---$[rad_mss_ipath]
  47. //#print ---$[rad_mss_lpath]
  48. //#print ---$[rad_mss_libs]
  49. #define PNG_IPATH /opt/local/include
  50. #define PNG_LPATH /opt/local/lib
  51. #define PNG_LIBS png
  52. //#define HAVE_PNG 1
  53. #define HAVE_OPENSSL 1
  54. // Is libfftw installed, and where?
  55. #define FFTW_IPATH /opt/local/include
  56. #define FFTW_LPATH /opt/local/lib
  57. #define FFTW_LIBS drfftw dfftw
  58. //#define HAVE_FFTW 1
  59. #define TIFF_IPATH /opt/local/include
  60. #define TIFF_LPATH /opt/local/lib
  61. // Is the platform big-endian (like an SGI workstation) or
  62. // little-endian (like a PC)? Define this to the empty string to
  63. // indicate little-endian, or nonempty to indicate big-endian.
  64. #define WORDS_BIGENDIAN
  65. // Does the C++ compiler support namespaces?
  66. #define HAVE_NAMESPACE 1
  67. // Does the C++ compiler support ios::binary?
  68. #define HAVE_IOS_BINARY 1
  69. // How about the typename keyword?
  70. #define HAVE_TYPENAME 1
  71. // Will the compiler avoid inserting extra bytes in structs between a
  72. // base struct and its derived structs? It is safe to define this
  73. // false if you don't know, but if you know that you can get away with
  74. // this you may gain a tiny performance gain by defining this true.
  75. // If you define this true incorrectly, you will get lots of
  76. // assertion failures on execution.
  77. #define SIMPLE_STRUCT_POINTERS
  78. // Do we have a gettimeofday() function?
  79. #define HAVE_GETTIMEOFDAY 1
  80. // Does gettimeofday() take only one parameter?
  81. #define GETTIMEOFDAY_ONE_PARAM
  82. // Do we have getopt() and/or getopt_long_only() built into the
  83. // system?
  84. #define HAVE_GETOPT 1
  85. #define HAVE_GETOPT_LONG_ONLY
  86. // Are the above getopt() functions defined in getopt.h, or somewhere else?
  87. #define HAVE_GETOPT_H 1
  88. // Can we determine the terminal width by making an ioctl(TIOCGWINSZ) call?
  89. #define IOCTL_TERMINAL_WIDTH 1
  90. // Do the system headers define a "streamsize" typedef? How about the
  91. // ios::binary enumerated value? And other ios typedef symbols like
  92. // ios::openmode and ios::fmtflags?
  93. #define HAVE_STREAMSIZE 1
  94. #define HAVE_IOS_BINARY 1
  95. #define HAVE_IOS_TYPEDEFS 1
  96. // Can we safely call getenv() at static init time?
  97. #define STATIC_INIT_GETENV 1
  98. // Can we read the file /proc/self/environ to determine our
  99. // environment variables at static init time?
  100. #define HAVE_PROC_SELF_ENVIRON 1
  101. // Do we have a global pair of argc/argv variables that we can read at
  102. // static init time? Should we prototype them? What are they called?
  103. #define HAVE_GLOBAL_ARGV
  104. #define PROTOTYPE_GLOBAL_ARGV
  105. #define GLOBAL_ARGV __Argv
  106. #define GLOBAL_ARGC __Argc
  107. // Can we read the file /proc/self/cmdline to determine our
  108. // command-line arguments at static init time?
  109. #define HAVE_PROC_SELF_CMDLINE
  110. // Should we include <iostream> or <iostream.h>? Define HAVE_IOSTREAM
  111. // to nonempty if we should use <iostream>, or empty if we should use
  112. // <iostream.h>.
  113. #define HAVE_IOSTREAM 1
  114. // Do we have a true stringstream class defined in <sstream>?
  115. #define HAVE_SSTREAM 1
  116. // Does fstream::open() require a third parameter, specifying the
  117. // umask? Versions of gcc prior to 3.2 had this.
  118. #define HAVE_OPEN_MASK
  119. // Do the compiler or system libraries define wchar_t for you?
  120. #define HAVE_WCHAR_T 1
  121. // Does <string> define the typedef wstring? Most do, but for some
  122. // reason, versions of gcc before 3.0 didn't do this.
  123. #define HAVE_WSTRING 1
  124. // Do we have <new>?
  125. #define HAVE_NEW 1
  126. // Do we have <io.h>?
  127. #define HAVE_IO_H
  128. // Do we have <malloc.h>?
  129. #define HAVE_MALLOC_H
  130. // Do we have <alloca.h>?
  131. #define HAVE_ALLOCA_H 1
  132. // Do we have <locale.h>?
  133. #define HAVE_LOCALE_H 1
  134. // Do we have <minmax.h>?
  135. #define HAVE_MINMAX_H
  136. // Do we have <sys/types.h>?
  137. #define HAVE_SYS_TYPES_H 1
  138. #define HAVE_SYS_TIME_H 1
  139. // Do we have <unistd.h>?
  140. #define HAVE_UNISTD_H 1
  141. // Do we have <utime.h>?
  142. #define HAVE_UTIME_H 1
  143. // Do we have <dirent.h>?
  144. #define HAVE_DIRENT_H 1
  145. // Do we have <glob.h> (and do we want to use it instead of dirent.h)?
  146. #define HAVE_GLOB_H 1
  147. // Do we have <sys/soundcard.h> (and presumably a Linux-style audio
  148. // interface)?
  149. #define HAVE_SYS_SOUNDCARD_H 1
  150. // Do we have RTTI (and <typeinfo>)?
  151. #define HAVE_RTTI 1
  152. // Must global operator new and delete functions throw exceptions?
  153. #define GLOBAL_OPERATOR_NEW_EXCEPTIONS 1
  154. // Modern versions of gcc do support the latest STL allocator
  155. // definitions.
  156. #define USE_STL_ALLOCATOR 1
  157. // The dynamic library file extension (usually .so .dll or .dylib):
  158. #define DYNAMIC_LIB_EXT .dylib
  159. #define BUNDLE_EXT .so