Browse Source

*** empty log message ***

David Rose 25 years ago
parent
commit
362b10c695

+ 10 - 3
dtool/Config.pp

@@ -71,8 +71,11 @@
 //              not taking advantage of distributed make, because of
 //              the overhead associated with Cygwin fork() calls.
 //
-#define BUILD_TYPE unix
-
+#if $[eq $[PLATFORM],Win32]
+  #define BUILD_TYPE msvc
+#else
+  #define BUILD_TYPE unix
+#endif
 
 // What is the default install directory for all trees in the Panda
 // suite?  You may also override this for a particular tree by
@@ -81,7 +84,11 @@
 // control your attachment to the trees; in this case, the install
 // directory for each tree will by default be the root of the tree
 // itself (although this may be overridden).
-#define INSTALL_DIR /usr/local/panda
+#if $[eq $[PLATFORM],Win32]
+  #define INSTALL_DIR /pandadir
+#else
+  #define INSTALL_DIR /usr/local/panda
+#endif
 
 
 // What level of compiler optimization/debug symbols should we build?

+ 1 - 1
dtool/pptempl/Global.gmsvc.pp

@@ -74,7 +74,7 @@
   #define dlllib dll
 #endif
 
-#include $[DTOOL]/pptempl/compilerSettings.pp
+#include $[THISDIRPREFIX]compilerSettings.pp
 
 #define WARNING_LEVEL_FLAG /W3
 

+ 1 - 1
dtool/pptempl/Global.msvc.pp

@@ -76,7 +76,7 @@
 
 #define CFLAGS_SHARED
 
-#include $[DTOOL]/pptempl/compilerSettings.pp
+#include $[THISDIRPREFIX]compilerSettings.pp
 
 #define WARNING_LEVEL_FLAG /W3
 

+ 0 - 8
dtool/pptempl/Template.gmsvc.pp

@@ -36,14 +36,6 @@
 #define dtool_ver_dir_cyg $[DTOOL_INSTALL]/src/dtoolbase
 #define dtool_ver_dir $[decygwin %,%,$[dtool_ver_dir_cyg]]
 
-// cant use DTOOL_INSTALL since may not be attached
-// Actually, the above should work, assuming that DTOOL is set
-// correctly before building, whether we are attached or not.  The
-// following lines incorrectly assume that DTOOL is a sibling of the
-// current tree.
-//#define dtool_ver_dir_cyg ../../../dtool/src/dtoolbase
-//#define dtool_ver_dir $[decygwin %,%,$[dtool_ver_dir_cyg]]
-
 //////////////////////////////////////////////////////////////////////
 #if $[or $[eq $[DIR_TYPE], src],$[eq $[DIR_TYPE], metalib]]
 //////////////////////////////////////////////////////////////////////

+ 0 - 8
dtool/pptempl/Template.msvc.pp

@@ -41,14 +41,6 @@
 #define dtool_ver_dir_cyg $[DTOOL_INSTALL]/src/dtoolbase
 #define dtool_ver_dir $[decygwin %,%,$[dtool_ver_dir_cyg]]
 
-// cant use DTOOL_INSTALL since may not be attached
-// Actually, the above should work, assuming that DTOOL is set
-// correctly before building, whether we are attached or not.  The
-// following lines incorrectly assume that DTOOL is a sibling of the
-// current tree.
-//#define dtool_ver_dir_cyg ../../../dtool/src/dtoolbase
-//#define dtool_ver_dir $[decygwin %,%,$[dtool_ver_dir_cyg]]
-
 //////////////////////////////////////////////////////////////////////
 #if $[or $[eq $[DIR_TYPE], src],$[eq $[DIR_TYPE], metalib]]
 //////////////////////////////////////////////////////////////////////