Package.pp 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. //
  2. // Package.pp
  3. //
  4. // This file defines certain configuration variables that are to be
  5. // written into the various make scripts. It is processed by ppremake
  6. // (along with the Sources.pp files in each of the various
  7. // directories) to generate build scripts appropriate to each
  8. // environment.
  9. //
  10. // This is the package-specific file, which should be at the top of
  11. // every source hierarchy. It generally gets the ball rolling, and is
  12. // responsible for explicitly including all of the relevent Config.pp
  13. // files.
  14. // What is the name and version of this source tree?
  15. #if $[eq $[PACKAGE],]
  16. #define PACKAGE dmodels
  17. #define VERSION 0.80
  18. #endif
  19. // Where should we find the DIRECT source directory?
  20. #if $[or $[CTPROJS],$[DIRECT]]
  21. // If we are presently attached, use the environment variable.
  22. #define DIRECT_SOURCE $[DIRECT]
  23. #if $[eq $[DIRECT],]
  24. #error You seem to be attached to some trees, but not DIRECT!
  25. #endif
  26. #else
  27. // Otherwise, if we are not attached, we guess that the source is a
  28. // sibling directory to this source root.
  29. #define DIRECT_SOURCE $[standardize $[TOPDIR]/../direct]
  30. #endif
  31. // Where should we install DMODELS?
  32. #if $[DMODELS_INSTALL]
  33. #define DMODELS_INSTALL $[unixfilename $[DMODELS_INSTALL]]
  34. #elif $[or $[CTPROJS],$[DMODELS]]
  35. #define DMODELS_INSTALL $[DMODELS]/built
  36. #if $[eq $[DMODELS],]
  37. #error You seem to be attached to some trees, but not DMODELS!
  38. #endif
  39. #else
  40. #defer DMODELS_INSTALL $[INSTALL_DIR]
  41. #endif
  42. // Define the inter-tree dependencies.
  43. #define NEEDS_TREES $[NEEDS_TREES] direct
  44. // Also get the DIRECT Package file and everything that includes.
  45. #if $[not $[isfile $[DIRECT_SOURCE]/Package.pp]]
  46. #printvar DIRECT_SOURCE
  47. #error DIRECT source directory not found from dmodels! Are you attached properly?
  48. #endif
  49. #include $[DIRECT_SOURCE]/Package.pp
  50. // Define some global variables for this tree.
  51. #define FLT2EGG_OPTS -no -uo ft