Package.pp 1.9 KB

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