Browse Source

build on windows

David Rose 19 years ago
parent
commit
376e11fdfd

+ 7 - 0
pandatool/src/egg-palettize/Sources.pp

@@ -17,8 +17,15 @@
 
 #begin lib_target
   #define TARGET txafile
+  #define BUILDING_DLL BUILDING_MISC
   #define LOCAL_LIBS \
     palettizer
+  #define OTHER_LIBS \
+    egg:c pgraph:c downloader:c gobj:c lerp:c linmath:c putil:c \
+    express:c pnmimage:c pnmimagetypes:c \
+    event:c mathutil:c \
+    pandaegg:m panda:m pandaexpress:m \
+    interrogatedb:c dtoolutil:c dtoolbase:c prc:c dconfig:c dtoolconfig:m dtool:m pystub
 
   #define SOURCES \
     txaFileFilter.h txaFileFilter.I txaFileFilter.cxx

+ 1 - 1
pandatool/src/egg-palettize/txaFileFilter.cxx

@@ -97,7 +97,7 @@ post_load(Texture *tex) {
   // Create an EggTexture to pass back the requested alpha mode to
   // the egg loader, if the texture is now being loaded from an egg
   // file.
-  PT(EggTexture) egg_tex = new EggTexture(tex->get_name(), tex->get_fullpath());
+  PT_EggTexture egg_tex = new EggTexture(tex->get_name(), tex->get_fullpath());
   const TextureProperties &props = tex_image.get_properties();
 
   egg_tex->set_alpha_mode(tex_image.get_alpha_mode());

+ 2 - 1
pandatool/src/egg-palettize/txaFileFilter.h

@@ -21,6 +21,7 @@
 
 #include "pandatoolbase.h"
 #include "texturePoolFilter.h"
+#include "pt_EggTexture.h"
 
 class TxaFile;
 
@@ -46,7 +47,7 @@ class TxaFile;
 //               that filters for which this might be a problem should
 //               call tex->set_keep_ram_image(true).
 ////////////////////////////////////////////////////////////////////
-class EXPCL_PANDA TxaFileFilter : public TexturePoolFilter {
+class EXPCL_MISC TxaFileFilter : public TexturePoolFilter {
 public:
   virtual PT(Texture) post_load(Texture *tex);