Browse Source

include platform sdk dirs in all win32 builds

cxgeorge 24 years ago
parent
commit
846980feaa
2 changed files with 12 additions and 2 deletions
  1. 5 2
      dtool/Config.pp
  2. 7 0
      dtool/pptempl/Global.pp

+ 5 - 2
dtool/Config.pp

@@ -254,10 +254,13 @@
 // Should we try to build the SGI-specific glxdisplay?
 #define HAVE_SGIGL $[eq $[PLATFORM],Irix]
 
+#define WIN32_PLATFORMSDK_INCPATH /mspsdk/Include
+#define WIN32_PLATFORMSDK_LIBPATH /mspsdk/Lib
+
 // Should we try to build the DirectX interface?  What additional
 // libraries do we need?
-#define DX_IPATH /mspsdk/Include
-#define DX_LPATH /mspsdk/Lib
+#define DX_IPATH $[WIN32_PLATFORMSDK_INCPATH]
+#define DX_LPATH $[WIN32_PLATFORMSDK_LIBPATH]
 #define DX_LIBS \
   dxguid.lib winmm.lib kernel32.lib gdi32.lib comdlg32.lib winspool.lib \
   user32.lib advapi32.lib ddraw.lib d3dim.lib

+ 7 - 0
dtool/pptempl/Global.pp

@@ -437,6 +437,10 @@
 #defun get_ipath
   #define alt_ipath $[stl_ipath] $[nspr_ipath] $[python_ipath]
   
+  #if $[eq $[PLATFORM],Win32]  
+    // all win32 files need path to latest windows.h and libs, which are in plat-sdk dirs, not the deflt vc ones
+    #set alt_ipath $[WIN32_PLATFORMSDK_INCPATH] $[alt_ipath]
+  #endif  
   #if $[ne $[USE_CRYPTO] $[components $[USE_CRYPTO],$[active_component_libs]],]
     #set alt_ipath $[alt_ipath] $[crypto_ipath]
   #endif
@@ -502,6 +506,9 @@
 #defun get_lpath
   #define alt_lpath $[stl_lpath] $[nspr_lpath] $[python_lpath]
   
+  #if $[eq $[PLATFORM],Win32]  
+    #set alt_lpath $[WIN32_PLATFORMSDK_LIBPATH] $[alt_lpath] 
+  #endif  
   #if $[ne $[USE_CRYPTO] $[components $[USE_CRYPTO],$[active_component_libs] $[transitive_link]],]
     #set alt_lpath $[alt_lpath] $[crypto_lpath]
   #endif