mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
support new ppremake 1.1 and auto-composite files
This commit is contained in:
parent
2068d6f1dc
commit
c5a3916b44
@ -25,7 +25,10 @@
|
|||||||
#include <md5.h>
|
#include <md5.h>
|
||||||
#include <hex.h>
|
#include <hex.h>
|
||||||
#include <files.h>
|
#include <files.h>
|
||||||
#include <string>
|
|
||||||
|
// md5 defines this, but we'd rather do without it, because it
|
||||||
|
// conflicts with a similar macro defined in NSPR.
|
||||||
|
#undef IS_LITTLE_ENDIAN
|
||||||
|
|
||||||
USING_NAMESPACE(CryptoPP);
|
USING_NAMESPACE(CryptoPP);
|
||||||
USING_NAMESPACE(std);
|
USING_NAMESPACE(std);
|
||||||
|
@ -17,22 +17,3 @@
|
|||||||
glutGraphicsPipe.h glutGraphicsWindow.h
|
glutGraphicsPipe.h glutGraphicsWindow.h
|
||||||
|
|
||||||
#end lib_target
|
#end lib_target
|
||||||
|
|
||||||
#begin test_bin_target
|
|
||||||
#define TARGET test_glut
|
|
||||||
#define LOCAL_LIBS \
|
|
||||||
putil graph display mathutil gobj sgraph
|
|
||||||
|
|
||||||
#define SOURCES \
|
|
||||||
test_glut.cxx
|
|
||||||
|
|
||||||
#end test_bin_target
|
|
||||||
|
|
||||||
#begin test_bin_target
|
|
||||||
#define TARGET test_glut_win
|
|
||||||
|
|
||||||
#define SOURCES \
|
|
||||||
test_glut_win.cxx
|
|
||||||
|
|
||||||
#end test_bin_target
|
|
||||||
|
|
||||||
|
@ -31,64 +31,3 @@
|
|||||||
// when appropriate. Perhaps as simple as compiling it all the time,
|
// when appropriate. Perhaps as simple as compiling it all the time,
|
||||||
// but protecting the code itself within #ifdefs.
|
// but protecting the code itself within #ifdefs.
|
||||||
#define EXTRA_DIST ipc_nt_traits.cxx
|
#define EXTRA_DIST ipc_nt_traits.cxx
|
||||||
|
|
||||||
// test_lib_target is not implemented yet. This is a bogus
|
|
||||||
// test_bin_target until then.
|
|
||||||
#begin test_bin_target
|
|
||||||
#define TARGET loom
|
|
||||||
|
|
||||||
#define SOURCES \
|
|
||||||
loom.cxx loom.h loom_internal.h
|
|
||||||
|
|
||||||
#define LOCAL_LIBS ipc $[LOCAL_LIBS]
|
|
||||||
#end test_bin_target
|
|
||||||
|
|
||||||
|
|
||||||
#begin test_bin_target
|
|
||||||
#define TARGET test_diners
|
|
||||||
#define SOURCES test_diners.cxx
|
|
||||||
#define LOCAL_LIBS ipc $[LOCAL_LIBS]
|
|
||||||
#end test_bin_target
|
|
||||||
|
|
||||||
#begin test_bin_target
|
|
||||||
#define TARGET test_priority
|
|
||||||
#define SOURCES test_priority.cxx
|
|
||||||
#define LOCAL_LIBS ipc $[LOCAL_LIBS]
|
|
||||||
#end test_bin_target
|
|
||||||
|
|
||||||
#begin test_bin_target
|
|
||||||
#define TARGET test_prodcons
|
|
||||||
#define SOURCES test_prodcons.cxx
|
|
||||||
#define LOCAL_LIBS ipc $[LOCAL_LIBS]
|
|
||||||
#end test_bin_target
|
|
||||||
|
|
||||||
#begin test_bin_target
|
|
||||||
#define TARGET test_threaddata
|
|
||||||
#define SOURCES test_threaddata.cxx
|
|
||||||
#define LOCAL_LIBS ipc $[LOCAL_LIBS]
|
|
||||||
#end test_bin_target
|
|
||||||
|
|
||||||
#begin test_bin_target
|
|
||||||
#define TARGET loom_main
|
|
||||||
#define SOURCES loom_main.cxx
|
|
||||||
#define LOCAL_LIBS loom ipc $[LOCAL_LIBS]
|
|
||||||
#end test_bin_target
|
|
||||||
|
|
||||||
#begin test_bin_target
|
|
||||||
#define TARGET test_file
|
|
||||||
#define SOURCES test_file.cxx
|
|
||||||
#define LOCAL_LIBS loom ipc $[LOCAL_LIBS]
|
|
||||||
#end test_bin_target
|
|
||||||
|
|
||||||
// Oops, these are test .so's
|
|
||||||
#begin test_bin_target
|
|
||||||
#define TARGET loom_test1
|
|
||||||
#define SOURCES loom_test1.cxx
|
|
||||||
#define LOCAL_LIBS loom ipc $[LOCAL_LIBS]
|
|
||||||
#end test_bin_target
|
|
||||||
|
|
||||||
#begin test_bin_target
|
|
||||||
#define TARGET loom_test2
|
|
||||||
#define SOURCES loom_test2.cxx
|
|
||||||
#define LOCAL_LIBS loom ipc $[LOCAL_LIBS]
|
|
||||||
#end test_bin_target
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
#include "pgm.h"
|
#include "pgm.h"
|
||||||
#include "libpgm.h"
|
#include "libpgm.h"
|
||||||
|
|
||||||
static void putus ARGS((unsigned short n, FILE* file));
|
static void putus1 ARGS((unsigned short n, FILE* file));
|
||||||
static void pgm_writepgmrowplain ARGS((FILE* file, gray* grayrow, int cols, gray maxval));
|
static void pgm_writepgmrowplain ARGS((FILE* file, gray* grayrow, int cols, gray maxval));
|
||||||
#ifdef PBMPLUS_RAWBITS
|
#ifdef PBMPLUS_RAWBITS
|
||||||
static void pgm_writepgmrowraw ARGS((FILE* file, gray* grayrow, int cols, gray maxval));
|
static void pgm_writepgmrowraw ARGS((FILE* file, gray* grayrow, int cols, gray maxval));
|
||||||
@ -51,12 +51,12 @@ pgm_writepgminit( file, cols, rows, maxval, forceplain )
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
putus( n, file )
|
putus1( n, file )
|
||||||
unsigned short n;
|
unsigned short n;
|
||||||
FILE* file;
|
FILE* file;
|
||||||
{
|
{
|
||||||
if ( n >= 10 )
|
if ( n >= 10 )
|
||||||
putus((unsigned short)( n / 10), file );
|
putus1((unsigned short)( n / 10), file );
|
||||||
(void) putc( n % 10 + '0', file );
|
(void) putc( n % 10 + '0', file );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,8 +101,8 @@ pgm_writepgmrowplain(FILE* file,gray* grayrow,int cols,gray maxval)
|
|||||||
if ( *gP > maxval )
|
if ( *gP > maxval )
|
||||||
pm_error( "value out of bounds (%u > %u)", *gP, maxval );
|
pm_error( "value out of bounds (%u > %u)", *gP, maxval );
|
||||||
#endif /*DEBUG*/
|
#endif /*DEBUG*/
|
||||||
/* putus( (unsigned long) *gP, file ); */
|
/* putus1( (unsigned long) *gP, file ); */
|
||||||
putus( (unsigned short) *gP, file );
|
putus1( (unsigned short) *gP, file );
|
||||||
charcount += 3;
|
charcount += 3;
|
||||||
}
|
}
|
||||||
if ( charcount > 0 )
|
if ( charcount > 0 )
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
#include "color.h"
|
#include "color.h"
|
||||||
|
|
||||||
#ifdef WIN32VC
|
#ifdef WIN32_VC
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ void colr_color(register COLOR, register COLR);
|
|||||||
char *
|
char *
|
||||||
tempbuffer(unsigned len) /* get a temporary buffer */
|
tempbuffer(unsigned len) /* get a temporary buffer */
|
||||||
{
|
{
|
||||||
#ifndef WIN32VC
|
#ifndef WIN32_VC
|
||||||
extern char *malloc(size_t), *realloc(void *, size_t);
|
extern char *malloc(size_t), *realloc(void *, size_t);
|
||||||
#endif
|
#endif
|
||||||
static char *tempbuf = NULL;
|
static char *tempbuf = NULL;
|
||||||
|
@ -22,10 +22,12 @@
|
|||||||
|
|
||||||
#include "color.h"
|
#include "color.h"
|
||||||
|
|
||||||
|
#ifndef NULL
|
||||||
#define NULL 0
|
#define NULL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#define bmalloc malloc
|
#define bmalloc malloc
|
||||||
#ifndef WIN32VC
|
#ifndef WIN32_VC
|
||||||
extern char *bmalloc(int);
|
extern char *bmalloc(int);
|
||||||
#else
|
#else
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
@ -39,7 +41,7 @@ static BYTE *g_mant = NULL, *g_nexp = NULL;
|
|||||||
static BYTE (*g_bval)[256] = NULL;
|
static BYTE (*g_bval)[256] = NULL;
|
||||||
|
|
||||||
#ifndef pow
|
#ifndef pow
|
||||||
#ifndef WIN32VC
|
#ifndef WIN32_VC
|
||||||
extern double pow(double, double);
|
extern double pow(double, double);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -127,7 +127,7 @@
|
|||||||
#begin test_bin_target
|
#begin test_bin_target
|
||||||
#define TARGET test_bamRead
|
#define TARGET test_bamRead
|
||||||
#define LOCAL_LIBS \
|
#define LOCAL_LIBS \
|
||||||
putil graph
|
putil pgraph
|
||||||
|
|
||||||
#define SOURCES \
|
#define SOURCES \
|
||||||
test_bam.cxx test_bam.h test_bamRead.cxx
|
test_bam.cxx test_bam.h test_bamRead.cxx
|
||||||
@ -137,7 +137,7 @@
|
|||||||
#begin test_bin_target
|
#begin test_bin_target
|
||||||
#define TARGET test_bamWrite
|
#define TARGET test_bamWrite
|
||||||
#define LOCAL_LIBS \
|
#define LOCAL_LIBS \
|
||||||
putil graph
|
putil pgraph
|
||||||
|
|
||||||
#define SOURCES \
|
#define SOURCES \
|
||||||
test_bam.cxx test_bam.h test_bamWrite.cxx
|
test_bam.cxx test_bam.h test_bamWrite.cxx
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
#begin test_bin_target
|
#begin test_bin_target
|
||||||
#define TARGET test_wcr
|
#define TARGET test_wcr
|
||||||
#define LOCAL_LIBS \
|
#define LOCAL_LIBS \
|
||||||
putil graph display mathutil gobj sgraph wcrdisplay crgsg
|
putil display mathutil gobj pgraph wcrdisplay crgsg
|
||||||
|
|
||||||
#define SOURCES \
|
#define SOURCES \
|
||||||
test_wcr.cxx
|
test_wcr.cxx
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
#begin test_bin_target
|
#begin test_bin_target
|
||||||
#define TARGET test_wgl
|
#define TARGET test_wgl
|
||||||
#define LOCAL_LIBS \
|
#define LOCAL_LIBS \
|
||||||
putil graph display mathutil gobj sgraph wgldisplay glgsg
|
putil display mathutil gobj pgraph wgldisplay glgsg
|
||||||
|
|
||||||
#define SOURCES \
|
#define SOURCES \
|
||||||
test_wgl.cxx
|
test_wgl.cxx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user