2
0
Эх сурвалжийг харах

*** empty log message ***

David Rose 25 жил өмнө
parent
commit
041cec32ec

+ 12 - 2
dtool/Config.pp

@@ -153,8 +153,18 @@
 // Should we try to build the SGI-specific glxdisplay?
 #define HAVE_SGIGL
 
-// Should we try to build the DirectX interface?
-#define HAVE_DX
+// Should we try to build the DirectX interface?  What additional
+// libraries do we need?
+#define DX_IPATH
+#define DX_LPATH
+#if $[eq $[PLATFORM],Win32]
+  #define DX_LIBS \
+    dxguid.lib winmm.lib kernel32.lib gdi32.lib comdlg32.lib winspool.lib \
+    user32.lib advapi32.lib ddraw.lib d3dim.lib
+#else
+  #define DX_LIBS
+#endif
+#defer HAVE_DX $[libtest $[DX_LPATH],$[DX_LIBS]]
 
 // Do you want to build the Renderman interface?
 #define HAVE_RIB

+ 7 - 0
dtool/LocalSetup.pp

@@ -107,6 +107,13 @@ $[define] HAVE_GLUT 1
 $[undef] HAVE_GLUT
 #endif
 
+/* Define if we have DirectX installed and want to build for DX.  */
+#if $[HAVE_DX]
+$[define] HAVE_DX 1
+#else
+$[undef] HAVE_DX
+#endif
+
 /* Define if we want to build the Renderman interface.  */
 #if $[HAVE_RIB]
 $[define] HAVE_RIB 1

+ 1 - 0
panda/src/dxgsg/Sources.pp

@@ -1,6 +1,7 @@
 #define DIRECTORY_IF_DX yes
 
 #define OTHER_LIBS interrogatedb:c dconfig:c dtoolutil:c dtoolbase:c dtool:m
+#define USE_DX yes
 
 #begin lib_target
   #define TARGET dxgsg

+ 1 - 0
panda/src/wdxdisplay/Sources.pp

@@ -1,6 +1,7 @@
 #define DIRECTORY_IF_DX yes
 
 #define OTHER_LIBS interrogatedb:c dconfig:c dtoolutil:c dtoolbase:c dtool:m
+#define USE_DX yes
 
 #begin lib_target
   #define TARGET wdxdisplay