Skip to content

Commit c07eb09

Browse files
committed
Initial revision
1 parent 61e5654 commit c07eb09

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+8382
-0
lines changed

direct/Config.pp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//
2+
// Config.pp
3+
//
4+
// This file defines certain configuration variables that are written
5+
// into the various make scripts. It is processed by ppremake (along
6+
// with the Sources.pp files in each of the various directories) to
7+
// generate build scripts appropriate to each environment.
8+
//
9+
// There are not too many variables to declare at this level; most of
10+
// them are defined in the DTOOL-specific Config.pp.
11+
12+
13+
// Where should we find PANDA? This will come from the environment
14+
// variable if it is set.
15+
#if $[eq $[PANDA],]
16+
#define PANDA /usr/local/panda
17+
#endif
18+

direct/Package.pp

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
15+
16+
17+
// What is the name and version of this source tree?
18+
#if $[eq $[PACKAGE],]
19+
#define PACKAGE direct
20+
#define VERSION 0.80
21+
#endif
22+
23+
24+
// Pull in the package-level Config file. This contains a few
25+
// configuration variables that the user might want to fine-tune.
26+
#include $[THISDIRPREFIX]Config.pp
27+
28+
29+
// Also get the PANDA Package file and everything that includes.
30+
#if $[not $[isdir $[PANDA]]]
31+
#error Directory defined by $PANDA not found! Are you attached properly?
32+
#endif
33+
34+
#include $[PANDA]/Package.pp

direct/Sources.pp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// This is the toplevel directory. It contains configure.in and other
2+
// stuff.
3+
4+
#define DIR_TYPE toplevel
5+
6+
#define SAMPLE_SOURCE_FILE src/directbase/directbase.cxx
7+
#define REQUIRED_TREES dtool panda
8+
9+
#define EXTRA_DIST \
10+
Sources.pp Config.pp Package.pp

direct/metalibs/Sources.pp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// This is a group directory: a directory level above a number of
2+
// source subdirectories.
3+
4+
#define DIR_TYPE group
5+
6+
// The metalibs directory always depends on the src directory.
7+
#define DEPENDS src

direct/metalibs/direct/Sources.pp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// DIR_TYPE "metalib" indicates we are building a shared library that
2+
// consists mostly of references to other shared libraries. Under
3+
// Windows, this directly produces a DLL (as opposed to the regular
4+
// src libraries, which don't produce anything but a pile of OBJ files
5+
// under Windows).
6+
7+
#define DIR_TYPE metalib
8+
#define BUILDING_DLL BUILDING_DIRECT
9+
10+
#define COMPONENT_LIBS \
11+
directbase dcparse showbase
12+
13+
#define OTHER_LIBS panda dtool
14+
15+
#begin metalib_target
16+
#define TARGET direct
17+
18+
#define SOURCES direct.cxx
19+
#end metalib_target
20+

direct/metalibs/direct/direct.cxx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Filename: direct.cxx
2+
// Created by: drose (18May00)
3+
//
4+
////////////////////////////////////////////////////////////////////
5+
6+
// This is a dummy file whose sole purpose is to give the compiler
7+
// something to compile when making libdirect.so in NO_DEFER mode,
8+
// which generates an empty library that itself links with all the
9+
// other shared libraries that make up libdirect.

direct/src/Sources.pp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// This is a group directory: a directory level above a number of
2+
// source subdirectories.
3+
4+
#define DIR_TYPE group

0 commit comments

Comments
 (0)