Package.pp 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 $[PANDATOOL_INSTALL]
  33. #define PANDATOOL_INSTALL $[unixfilename $[PANDATOOL_INSTALL]]
  34. #elif $[CTPROJS]
  35. #set PANDATOOL $[unixfilename $[PANDATOOL]]
  36. #define PANDATOOL_INSTALL $[PANDATOOL]/built
  37. #if $[eq $[PANDATOOL],]
  38. #error You seem to be attached to some trees, but not PANDATOOL!
  39. #endif
  40. #else
  41. #defer PANDATOOL_INSTALL $[unixfilename $[INSTALL_DIR]]
  42. #endif
  43. // Also get the PANDA Package file and everything that includes.
  44. #if $[not $[isfile $[PANDA_SOURCE]/Package.pp]]
  45. #printvar PANDA_SOURCE
  46. #error PANDA source directory not found from pandatool! Are you attached properly?
  47. #endif
  48. #include $[PANDA_SOURCE]/Package.pp
  49. // Define the inter-tree dependencies.
  50. #define NEEDS_TREES panda $[NEEDS_TREES]
  51. #define DEPENDABLE_HEADER_DIRS $[DEPENDABLE_HEADER_DIRS] $[PANDA_INSTALL]/include