]>
Commit | Line | Data |
---|---|---|
5148fc8e | 1 | # -*- python -*- |
f786a3b2 | 2 | import sys |
5148fc8e RD |
3 | |
4 | MODULE = 'glcanvasc' | |
5 | SWIGFILES = ['glcanvas.i', ] | |
efc5f224 | 6 | |
f32bba38 | 7 | |
f786a3b2 HH |
8 | # Special action; for win32 we require you make the glcanvas lib. The |
9 | # makefile will copy it to WXWIN\lib | |
10 | # Unix make system isn't so advanced, so we'll go looking for the source | |
11 | # file ourselves... | |
12 | if sys.platform == 'win32': | |
13 | OTHERLIBS = '$(WXDIR)\lib\glcanvas.lib glu32.lib opengl32.lib' | |
60a15c9b RD |
14 | OTHERCFLAGS = '-DWITH_GLCANVAS -I$(WXDIR)/utils/glcanvas/win' |
15 | ||
f786a3b2 | 16 | else: |
60a15c9b RD |
17 | |
18 | # SOURCES = [GENCODEDIR+'/_glcanvas.cpp'] | |
b164fb38 RD |
19 | print "Warning: Assuming MesaGL libraries. Override OTHERLIBS in build.local\n"\ |
20 | " if you have native GL!" | |
60a15c9b RD |
21 | OTHERCFLAGS = '-DWITH_GLCANVAS -I$(WXDIR)/utils/glcanvas/gtk' |
22 | OTHERLIBS = "-lwxglcanvas -lMesaGL -lMesaGLU" | |
23 | # OTHERRULES = """ | |
24 | #$(GENCODEDIR)/_glcanvas.cpp : $(WXDIR)/utils/glcanvas/$(GENCODEDIR)/glcanvas.cpp | |
25 | # cp $< $@ | |
26 | #glcanvas.h : $(WXDIR)/utils/glcanvas/$(GENCODEDIR)/glcanvas.h | |
27 | # cp $< $@ | |
28 | #_glcanvas.o : glcanvas.h | |
29 | #""" | |
30 | ||
31 | ||
32 |