mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
build rules
This commit is contained in:
parent
33af8bd0a3
commit
56a52075c4
@ -1,9 +1,9 @@
|
||||
// This directory is still experimental. Define HAVE_P3D_PLUGIN in
|
||||
// your Config.pp to build it.
|
||||
#define BUILD_DIRECTORY $[and $[HAVE_P3D_PLUGIN],$[HAVE_TINYXML],$[HAVE_OPENSSL],$[HAVE_ZLIB]]
|
||||
#define BUILD_DIRECTORY $[HAVE_P3D_PLUGIN]
|
||||
|
||||
#begin lib_target
|
||||
#define BUILD_TARGET $[and $[HAVE_JPEG],$[HAVE_PNG]]
|
||||
#define BUILD_TARGET $[and $[HAVE_TINYXML],$[HAVE_OPENSSL],$[HAVE_ZLIB],$[HAVE_JPEG],$[HAVE_PNG]]
|
||||
#define USE_PACKAGES tinyxml openssl zlib jpeg png x11
|
||||
#define TARGET p3d_plugin
|
||||
#define LIB_PREFIX
|
||||
@ -103,7 +103,7 @@
|
||||
// it's going to be a bad idea in the long term. This lib remains
|
||||
// for now as an experiment, but it will likely be removed very soon.
|
||||
// ****
|
||||
#define BUILD_TARGET $[HAVE_PYTHON]
|
||||
#define BUILD_TARGET $[and $[HAVE_TINYXML],$[HAVE_PYTHON],$[HAVE_OPENSSL]]
|
||||
#define USE_PACKAGES tinyxml python openssl
|
||||
#define TARGET libp3dpython
|
||||
#define LIB_PREFIX
|
||||
@ -131,7 +131,7 @@
|
||||
#end lib_target
|
||||
|
||||
#begin bin_target
|
||||
#define BUILD_TARGET $[HAVE_PYTHON]
|
||||
#define BUILD_TARGET $[and $[HAVE_TINYXML],$[HAVE_PYTHON],$[HAVE_OPENSSL]]
|
||||
#define USE_PACKAGES tinyxml python openssl
|
||||
#define TARGET p3dpython
|
||||
|
||||
@ -164,6 +164,7 @@
|
||||
#end bin_target
|
||||
|
||||
#begin static_lib_target
|
||||
#define BUILD_TARGET $[and $[HAVE_TINYXML],$[HAVE_OPENSSL]]
|
||||
#define TARGET plugin_common
|
||||
#define USE_PACKAGES tinyxml openssl
|
||||
|
||||
@ -178,7 +179,7 @@
|
||||
|
||||
|
||||
#begin bin_target
|
||||
#define BUILD_TARGET $[HAVE_WX]
|
||||
#define BUILD_TARGET $[and $[HAVE_WX],$[HAVE_OPENSSL]]
|
||||
#define USE_PACKAGES wx openssl
|
||||
#define TARGET p3dcert
|
||||
|
||||
|
@ -21,6 +21,7 @@
|
||||
#ifdef _WIN32
|
||||
#include <sys/utime.h>
|
||||
#include <direct.h>
|
||||
#include <io.h>
|
||||
#define stat _stat
|
||||
#define utime _utime
|
||||
#define utimbuf _utimbuf
|
||||
@ -136,11 +137,9 @@ extract_all(const string &to_dir,
|
||||
utb.modtime = s._timestamp;
|
||||
utime(output_pathname.c_str(), &utb);
|
||||
|
||||
#ifndef _WIN32
|
||||
// Be sure to execute permissions on the file, in case it's a
|
||||
// program or something.
|
||||
chmod(output_pathname.c_str(), 0555);
|
||||
#endif
|
||||
|
||||
++num_processed;
|
||||
if (package != NULL) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
// This directory is still experimental. Define HAVE_P3D_PLUGIN in
|
||||
// your Config.pp to build it.
|
||||
#define BUILD_DIRECTORY $[and $[HAVE_P3D_PLUGIN],$[WINDOWS_PLATFORM]]
|
||||
#define BUILD_DIRECTORY $[and $[HAVE_P3D_PLUGIN],$[HAVE_TINYXML],$[WINDOWS_PLATFORM]]
|
||||
|
||||
#define USE_PACKAGES tinyxml
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user