ppremake.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*
  2. // Filename: ppremake.h
  3. // Created by: drose (25Sep00)
  4. //
  5. ////////////////////////////////////////////////////////////////////
  6. */
  7. #ifndef PPREMAKE_H
  8. #define PPREMAKE_H
  9. #ifdef _MSC_VER
  10. /* For Visual C, include the special config.h file. */
  11. #include "config_msvc.h"
  12. #else
  13. /* Otherwise, include the normal automatically-generated file. */
  14. #include "config.h"
  15. #endif
  16. #ifdef __cplusplus
  17. #ifdef HAVE_IOSTREAM
  18. #include <iostream>
  19. #include <fstream>
  20. #include <strstream>
  21. #else
  22. #include <iostream.h>
  23. #include <fstream.h>
  24. #include <strstream.h>
  25. #endif
  26. #if defined(HAVE_CYGWIN) || defined(WIN32_VC)
  27. // Either Cygwin or Visual C++ is a Win32 environment.
  28. #define WIN32
  29. #endif
  30. #include <string>
  31. #ifdef HAVE_NAMESPACE
  32. using namespace std;
  33. #endif
  34. #endif /* __cplusplus */
  35. #ifndef HAVE_ALLOCA_H
  36. /* If we don't have alloca.h, use malloc() to implement gnu_regex. */
  37. #define REGEX_MALLOC 1
  38. #endif
  39. #define PACKAGE_FILENAME "Package.pp"
  40. #define SOURCE_FILENAME "Sources.pp"
  41. #define COMMAND_PREFIX '#'
  42. #define VARIABLE_PREFIX '$'
  43. #define VARIABLE_OPEN_BRACE '['
  44. #define VARIABLE_CLOSE_BRACE ']'
  45. #define PATTERN_WILDCARD '%'
  46. #define BEGIN_COMMENT "//"
  47. #define FUNCTION_PARAMETER_SEPARATOR ','
  48. #define VARIABLE_OPEN_NESTED '('
  49. #define VARIABLE_CLOSE_NESTED ')'
  50. #define VARIABLE_PATSUBST ":"
  51. #define VARIABLE_PATSUBST_DELIM "="
  52. #define SCOPE_DIRNAME_SEPARATOR '/'
  53. #define SCOPE_DIRNAME_WILDCARD "*"
  54. #define SCOPE_DIRNAME_CURRENT "."
  55. #ifdef __cplusplus
  56. /* These are set from the similarly-named variables defined in
  57. System.pp. */
  58. extern bool unix_platform;
  59. extern bool windows_platform;
  60. /* This is a command-line global parameter. */
  61. extern bool dry_run;
  62. extern bool verbose_dry_run;
  63. #endif
  64. /* These are defined so that we may build Filename, DSearchPath, and
  65. GlobPattern, which are copied from dtool and panda. We have to
  66. copy these files in since ppremake must be built first, and stands
  67. outside of Panda; but we want to minimize the changes we must make
  68. to these files so that we can easily recopy them at need.
  69. These symbols just make the build environment a bit more
  70. Panda-like. */
  71. #define PUBLISHED public
  72. #define INLINE inline
  73. #define EXPCL_DTOOL
  74. #define EXPCL_PANDA
  75. #endif