Revision: 7459
http://mahogany.svn.sourceforge.net/mahogany/?rev=7459&view=rev
Author: vadz
Date: 2008-05-03 11:51:28 -0700 (Sat, 03 May 2008)
Log Message:
-----------
undefine WXDLLIMPEXP_FWD_XXX for swig, it doesn't grok them
Modified Paths:
--------------
trunk/M/src/Python/Names.mk
Modified: trunk/M/src/Python/Names.mk
===================================================================
--- trunk/M/src/Python/Names.mk 2008-05-03 18:38:05 UTC (rev 7458)
+++ trunk/M/src/Python/Names.mk 2008-05-03 18:51:28 UTC (rev 7459)
@@ -26,8 +26,12 @@
# this command runs swig to generate .cpp file from an .i one and then replaces
# #include Python.h in the generated C++ code with #include MPython.h which we
# need for dynamic Python linking to work
+#
+# NB: current versions of swig (at least from 1.3.29 to 1.3.33) are confused by
+# WXDLLIMPEXP_FWD_XXX in declarations, so we need to undefine them
define create_cpp
- $(SWIG) -I$(IFACE_DIR) $(CPPFLAGS) $(SWIGFLAGS) -o $*.cpp.tmp $< && \
+ $(SWIG) -DWXDLLIMPEXP_FWD_BASE="" -DWXDLLIMPEXP_FWD_CORE="" \
+ -I$(IFACE_DIR) $(CPPFLAGS) $(SWIGFLAGS) -o $*.cpp.tmp $< && \
sed -e 's/Python\.h/MPython.h/' $*.cpp.tmp > $(@:.o=.cpp) && \
rm $*.cpp.tmp
endef
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates