Package.pp 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 pandatool
  17. #define VERSION 0.80
  18. #endif
  19. // Where should we find the PANDA source directory?
  20. #if $[or $[CTPROJS],$[PANDA]]
  21. // If we are presently attached, use the environment variable.
  22. #define PANDA_SOURCE $[unixfilename $[PANDA]]
  23. #if $[eq $[PANDA],]
  24. #error You seem to be attached to some trees, but not PANDA!
  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 PANDA_SOURCE $[standardize $[TOPDIR]/../panda]
  30. #endif
  31. // Where should we install PANDATOOL?
  32. #if $[or $[CTPROJS],$[PANDATOOL]]
  33. #set PANDATOOL $[unixfilename $[PANDATOOL]]
  34. #define PANDATOOL_INSTALL $[PANDATOOL]/built
  35. #if $[eq $[PANDATOOL],]
  36. #error You seem to be attached to some trees, but not PANDATOOL!
  37. #endif
  38. #else
  39. #defer PANDATOOL_INSTALL $[unixfilename $[INSTALL_DIR]]
  40. #endif
  41. // Also get the PANDA Package file and everything that includes.
  42. #if $[not $[isfile $[PANDA_SOURCE]/Package.pp]]
  43. #printvar PANDA_SOURCE
  44. #error PANDA source directory not found from pandatool! Are you attached properly?
  45. #endif
  46. #include $[PANDA_SOURCE]/Package.pp
  47. // Define the inter-tree dependencies.
  48. #define NEEDS_TREES panda $[NEEDS_TREES]
  49. #define DEPENDABLE_HEADER_DIRS $[DEPENDABLE_HEADER_DIRS] $[PANDA_INSTALL]/include