panda3d/pandaapp/Package.pp
2001-04-26 22:04:45 +00:00

60 lines
1.8 KiB
ObjectPascal

//
// Package.pp
//
// This file defines certain configuration variables that are to be
// written into the various make scripts. It is processed by ppremake
// (along with the Sources.pp files in each of the various
// directories) to generate build scripts appropriate to each
// environment.
//
// This is the package-specific file, which should be at the top of
// every source hierarchy. It generally gets the ball rolling, and is
// responsible for explicitly including all of the relevent Config.pp
// files.
// What is the name and version of this source tree?
#if $[eq $[PACKAGE],]
#define PACKAGE pandaapp
#define VERSION 0.80
#endif
// Where should we find the PANDATOOL source directory?
#if $[or $[CTPROJS],$[PANDATOOL]]
// If we are presently attached, use the environment variable.
#define PANDATOOL_SOURCE $[PANDATOOL]
#if $[eq $[PANDATOOL],]
#error You seem to be attached to some trees, but not PANDATOOL!
#endif
#else
// Otherwise, if we are not attached, we guess that the source is a
// sibling directory to this source root.
#define PANDATOOL_SOURCE $[standardize $[TOPDIR]/../pandatool]
#endif
// Where should we install PANDAAPP?
#if $[or $[CTPROJS],$[PANDAAPP]]
#define PANDAAPP_INSTALL $[PANDAAPP]
#define PANDAAPP_INSTALL_OTHER $(PANDAAPP)
#if $[eq $[PANDAAPP],]
#error You seem to be attached to some trees, but not PANDAAPP!
#endif
#else
#defer PANDAAPP_INSTALL $[INSTALL_DIR]
#defer PANDAAPP_INSTALL_OTHER $[INSTALL_DIR]
#endif
// Define the inter-tree dependencies.
#define NEEDS_TREES $[NEEDS_TREES] pandatool
// Also get the PANDATOOL Package file and everything that includes.
#if $[not $[isfile $[PANDATOOL_SOURCE]/Package.pp]]
#error PANDATOOL source directory not found! Are you attached properly?
#endif
#include $[PANDATOOL_SOURCE]/Package.pp