]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/modules/glcanvas/build.cfg
- Updated gtk SWIGged files to SWIG 1.1 cvs level
[wxWidgets.git] / utils / wxPython / modules / glcanvas / build.cfg
index bbe5de1450c5e69d7c00c8d76e4bd1d31260857b..b5e6a50991862f08dede37944dde6a7c2fde02b7 100644 (file)
@@ -1,7 +1,18 @@
 # -*- python -*-
+import sys
 
 MODULE = 'glcanvasc'
 SWIGFILES = ['glcanvas.i', ]
-OTHERCFLAGS = '-DWITH_GLCANVAS -I$(WXDIR)\utils\glcanvas\win'
-OTHERLIBS = '$(WXDIR)\lib\glcanvas.lib glu32.lib opengl32.lib'
-
+OTHERCFLAGS = '-DWITH_GLCANVAS -I$(WXDIR)\utils\glcanvas\%s' % (GENCODEDIR,)
+# Special action; for win32 we require you make the glcanvas lib. The
+# makefile will copy it to WXWIN\lib
+# Unix make system isn't so advanced, so we'll go looking for the source
+# file ourselves...
+if sys.platform == 'win32':
+    OTHERLIBS = '$(WXDIR)\lib\glcanvas.lib glu32.lib opengl32.lib'
+else:
+    SOURCES = [GENCODEDIR+'/_glcanvas.cpp']
+    OTHERRULES = """
+$(GENCODEDIR)/_glcanvas.cpp : 
+       cp $(WXDIR)/utils/glcanvas/$(GENCODEDIR)/glcanvas.cpp $@
+"""