Selaa lähdekoodia

maya osx support from kaweh

David Rose 18 vuotta sitten
vanhempi
sitoutus
ecde8bed5b

+ 2 - 1
pandatool/src/maya/Sources.pp

@@ -8,7 +8,8 @@
   #define OTHER_LIBS \
   #define OTHER_LIBS \
     putil:c panda:m \
     putil:c panda:m \
     express:c pandaexpress:m \
     express:c pandaexpress:m \
-    dtoolutil:c dtoolbase:c prc:c dconfig:c dtoolconfig:m dtool:m
+    dtoolutil:c dtoolbase:c prc:c dconfig:c dtoolconfig:m dtool:m \
+    pipeline:c interrogatedb:c
 
 
   #define SOURCES \
   #define SOURCES \
     config_maya.cxx config_maya.h \
     config_maya.cxx config_maya.h \

+ 5 - 0
pandatool/src/maya/pre_maya_include.h

@@ -61,5 +61,10 @@ typedef istream maya_istream;
 #define REQUIRE_IOSTREAM
 #define REQUIRE_IOSTREAM
 #endif  // HAVE_IOSTREAM
 #endif  // HAVE_IOSTREAM
 
 
+#ifdef __MACH__
+#undef _BOOL
+#include "maya/OpenMayaMac.h"
+#endif
+
 #endif  // MAYA_PRE_5_0
 #endif  // MAYA_PRE_5_0
 
 

+ 2 - 1
pandatool/src/mayaegg/Sources.pp

@@ -9,7 +9,8 @@
     egg:c pandaegg:m \
     egg:c pandaegg:m \
     linmath:c putil:c panda:m \
     linmath:c putil:c panda:m \
     express:c pandaexpress:m \
     express:c pandaexpress:m \
-    dtoolutil:c dtoolbase:c prc:c dconfig:c dtoolconfig:m dtool:m pystub
+    dtoolutil:c dtoolbase:c prc:c dconfig:c dtoolconfig:m dtool:m pystub \
+    pipeline:c interrogatedb:c
 
 
   #define UNIX_SYS_LIBS \
   #define UNIX_SYS_LIBS \
     m
     m

+ 15 - 6
pandatool/src/mayaprogs/Sources.pp

@@ -50,7 +50,8 @@
     egg:c pandaegg:m \
     egg:c pandaegg:m \
     linmath:c putil:c panda:m \
     linmath:c putil:c panda:m \
     express:c pandaexpress:m \
     express:c pandaexpress:m \
-    interrogatedb:c dtoolutil:c dtoolbase:c prc:c dconfig:c dtoolconfig:m dtool:m pystub
+    interrogatedb:c dtoolutil:c dtoolbase:c prc:c dconfig:c dtoolconfig:m dtool:m pystub \
+    pipeline:c pnmimage:c
 
 
   // Irix requires this to be named explicitly.
   // Irix requires this to be named explicitly.
   #define UNIX_SYS_LIBS \
   #define UNIX_SYS_LIBS \
@@ -70,7 +71,8 @@
     egg:c pandaegg:m \
     egg:c pandaegg:m \
     linmath:c putil:c panda:m \
     linmath:c putil:c panda:m \
     express:c pandaexpress:m \
     express:c pandaexpress:m \
-    interrogatedb:c dtoolutil:c dtoolbase:c prc:c dconfig:c dtoolconfig:m dtool:m pystub
+    interrogatedb:c dtoolutil:c dtoolbase:c prc:c dconfig:c dtoolconfig:m dtool:m pystub \
+    pipeline:c pnmimage:c
 
 
   // Irix requires this to be named explicitly.
   // Irix requires this to be named explicitly.
   #define UNIX_SYS_LIBS \
   #define UNIX_SYS_LIBS \
@@ -91,7 +93,8 @@
     egg:c pandaegg:m \
     egg:c pandaegg:m \
     linmath:c panda:m \
     linmath:c panda:m \
     express:c pandaexpress:m \
     express:c pandaexpress:m \
-    interrogatedb:c dtoolutil:c dtoolbase:c prc:c dconfig:c dtoolconfig:m dtool:m pystub
+    interrogatedb:c dtoolutil:c dtoolbase:c prc:c dconfig:c dtoolconfig:m dtool:m pystub \
+    putil:c pipeline:c pnmimage:c
 
 
   // Irix requires this to be named explicitly.
   // Irix requires this to be named explicitly.
   #define UNIX_SYS_LIBS \
   #define UNIX_SYS_LIBS \
@@ -113,7 +116,8 @@
     framework:m \
     framework:m \
     linmath:c putil:c panda:m \
     linmath:c putil:c panda:m \
     express:c pandaexpress:m \
     express:c pandaexpress:m \
-    interrogatedb:c dtoolutil:c dtoolbase:c prc:c dconfig:c dtoolconfig:m dtool:m pystub
+    interrogatedb:c dtoolutil:c dtoolbase:c prc:c dconfig:c dtoolconfig:m dtool:m pystub \
+    pipeline:c
 
 
   #define BUILDING_DLL BUILDING_MISC
   #define BUILDING_DLL BUILDING_MISC
 
 
@@ -152,7 +156,8 @@
     framework:m \
     framework:m \
     linmath:c putil:c panda:m \
     linmath:c putil:c panda:m \
     express:c pandaexpress:m \
     express:c pandaexpress:m \
-    interrogatedb:c dtoolutil:c dtoolbase:c prc:c dconfig:c dtoolconfig:m dtool:m pystub
+    interrogatedb:c dtoolutil:c dtoolbase:c prc:c dconfig:c dtoolconfig:m dtool:m pystub \
+    pipeline:c
 
 
   #define BUILDING_DLL BUILDING_MISC
   #define BUILDING_DLL BUILDING_MISC
 
 
@@ -175,7 +180,11 @@
     egg2pg:c egg:c pandaegg:m \
     egg2pg:c egg:c pandaegg:m \
     mathutil:c linmath:c putil:c panda:m \
     mathutil:c linmath:c putil:c panda:m \
     express:c pandaexpress:m \
     express:c pandaexpress:m \
-    dtoolconfig dtool
+    dtoolconfig dtool \
+    event:c gobj:c chan:c pgraph:c parametrics:c char:c prc:c dtoolutil:c \
+    interrogatedb:c dtoolbase:c collide:c pnmimage:c dgraph:c tform:c \
+    pipeline:c pstatclient:c grutil:c gsgbase:c net:c lerp:c display:c \
+    cull:c text:c nativenet:c pnmtext:c
 
 
   #define SOURCES \
   #define SOURCES \
     config_mayaloader.cxx
     config_mayaloader.cxx

+ 4 - 0
pandatool/src/mayaprogs/config_mayaloader.cxx

@@ -16,6 +16,10 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
+#ifdef __MACH__
+#define __OPENTRANSPORTPROVIDERS__
+#endif
+
 #include "pandatoolbase.h"
 #include "pandatoolbase.h"
 #include "loaderFileTypePandatool.h"
 #include "loaderFileTypePandatool.h"
 #include "config_mayaegg.h"
 #include "config_mayaegg.h"

+ 4 - 0
pandatool/src/mayaprogs/mayaPview.cxx

@@ -16,6 +16,10 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
+#ifdef __MACH__
+#define __OPENTRANSPORTPROVIDERS__
+#endif
+
 #include "mayaPview.h"
 #include "mayaPview.h"
 #include "mayaToEggConverter.h"
 #include "mayaToEggConverter.h"
 #include "eggData.h"
 #include "eggData.h"

+ 5 - 0
pandatool/src/mayaprogs/mayaSavePview.h

@@ -29,6 +29,11 @@
 #define _BOOL 1
 #define _BOOL 1
 #endif
 #endif
 
 
+#ifdef __MACH__
+#undef _BOOL
+#include "maya/OpenMayaMac.h"
+#endif
+
 // Even though we don't include any Panda headers, it's safe to
 // Even though we don't include any Panda headers, it's safe to
 // include this one, since it only defines some macros that we need to
 // include this one, since it only defines some macros that we need to
 // make this program platform-independent.
 // make this program platform-independent.