]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/ogl/build.cfg
make contrib symlink relative to WXDIR
[wxWidgets.git] / wxPython / contrib / ogl / build.cfg
1 # -*- python -*-
2 import sys
3
4 MODULE = 'oglc'
5 SWIGFILES = ['ogl.i', 'oglbasic.i', 'oglshapes.i', 'oglshapes2.i', 'oglcanvas.i']
6 SOURCES = ['oglhelpers.cpp']
7
8
9 OTHERCFLAGS = '-I$(STCLOC)/contrib/include'
10 SOURCES = SOURCES + [
11 '$(STCLOC)/contrib/src/ogl/basic.cpp',
12 '$(STCLOC)/contrib/src/ogl/bmpshape.cpp',
13 '$(STCLOC)/contrib/src/ogl/composit.cpp',
14 '$(STCLOC)/contrib/src/ogl/divided.cpp',
15 '$(STCLOC)/contrib/src/ogl/lines.cpp',
16 '$(STCLOC)/contrib/src/ogl/misc.cpp',
17 '$(STCLOC)/contrib/src/ogl/basic2.cpp',
18 '$(STCLOC)/contrib/src/ogl/canvas.cpp',
19 '$(STCLOC)/contrib/src/ogl/constrnt.cpp',
20 '$(STCLOC)/contrib/src/ogl/drawn.cpp',
21 '$(STCLOC)/contrib/src/ogl/mfutils.cpp',
22 '$(STCLOC)/contrib/src/ogl/ogldiag.cpp',
23 ]
24
25 if sys.platform == 'win32':
26 OTHERDEFS = 'STCLOC = $(WXWIN)'
27 OTHERRULES = '''
28 {$(WXWIN)/contrib/src/ogl}.cpp{}.obj:
29 $(cc) @<<
30 $(CPPFLAGS) /c /Tp $<
31 <<
32 '''
33 else:
34 OTHERCFLAGS = '-Icontrib/include'
35 DEFAULTRULE = 'default: contrib $(GENCODEDIR) $(TARGET) $(BUILDDIR)/$(TARGET) bldpycfiles'
36 OTHERRULES = """
37 %.o : contrib/src/ogl/%.cpp
38 $(CCC) $(CCSHARED) $(CFLAGS) $(OTHERCFLAGS) -c $<
39
40 contrib :
41 ln -s $(WXDIR)/contrib contrib
42
43 """
44
45
46 SWIGDEPS = '_ogldefs.i'
47 OTHERDEPS = 'oglhelpers.h $(WXPSRCDIR)/helpers.h'
48
49
50 # There are no platform differences so we don't need separate code directories
51 GENCODEDIR='.'
52 SWIGTOOLKITFLAG=''