David Rose 15 éve
szülő
commit
065b130d64

+ 2 - 2
direct/src/plugin/Sources.pp

@@ -117,7 +117,7 @@
   #define LINK_FORCE_STATIC_RELEASE_C_RUNTIME $[P3D_PLUGIN_MT]
 
   #define OTHER_LIBS \
-    p3tinyxml $[if $[OSX_PLATFORM],subprocbuffer]
+    p3tinyxml$[_MT] $[if $[OSX_PLATFORM],subprocbuffer]
 
   #define COMBINED_SOURCES p3d_plugin_composite1.cxx
   #define SOURCES $[COREAPI_SOURCES]
@@ -206,7 +206,7 @@
   #define SOURCES $[PLUGIN_COMMON_SOURCES]
 
 #end static_lib_target
-#endif
+#endif  // $[P3D_PLUGIN_MT]
 
 
 

+ 1 - 1
direct/src/plugin_activex/Sources.pp

@@ -15,7 +15,7 @@
 
   #define LOCAL_LIBS plugin_common$[_MT]
   #define LINK_FORCE_STATIC_RELEASE_C_RUNTIME $[P3D_PLUGIN_MT]
-  #define OTHER_LIBS p3tinyxml
+  #define OTHER_LIBS p3tinyxml$[_MT]
 
   #define COMBINED_SOURCES \
     $[TARGET]_composite1.cxx

+ 1 - 1
direct/src/plugin_npapi/Sources.pp

@@ -19,7 +19,7 @@
 
   #define LOCAL_LIBS plugin_common$[_MT]
   #define LINK_FORCE_STATIC_RELEASE_C_RUNTIME $[P3D_PLUGIN_MT]
-  #define OTHER_LIBS p3tinyxml
+  #define OTHER_LIBS p3tinyxml$[_MT]
 
   #define COMBINED_SOURCES \
     $[TARGET]_composite1.cxx

+ 26 - 0
panda/src/dxml/Sources.pp

@@ -17,6 +17,32 @@
 
 #end static_lib_target
 
+#if $[P3D_PLUGIN_MT]
+#begin static_lib_target
+//
+// libp3tinyxml_mt.lib, the same as above, with /MT compilation.  This
+// is needed when building the /MT plugin.
+//
+  #define TARGET p3tinyxml_mt
+  #define LINK_FORCE_STATIC_RELEASE_C_RUNTIME 1
+
+  #define COMBINED_SOURCES tinyxml_composite1.cxx
+
+  #define SOURCES \
+     tinyxml.h
+
+  #define INCLUDED_SOURCES  \
+     tinyxml.cpp tinyxmlparser.cpp tinyxmlerror.cpp
+
+  #define INSTALL_HEADERS \
+    tinyxml.h
+
+  #define EXTRA_CDEFS TIXML_USE_STL
+  #define C++FLAGS $[CFLAGS_SHARED]
+
+#end static_lib_target
+#endif  // $[P3D_PLUGIN_MT]
+
 #begin lib_target
   #define TARGET dxml