]> git.saurik.com Git - wxWidgets.git/blame - wxPython/contrib/ogl/build.cfg
merged 2.2 branch
[wxWidgets.git] / wxPython / contrib / ogl / build.cfg
CommitLineData
f6bcfd97
BP
1# -*- python -*-
2import sys
3
4MODULE = 'oglc'
5SWIGFILES = ['ogl.i', 'oglbasic.i', 'oglshapes.i', 'oglshapes2.i', 'oglcanvas.i']
6SOURCES = ['oglhelpers.cpp']
7
8
9OTHERCFLAGS = '-I$(STCLOC)/contrib/include'
10SOURCES = 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
25if sys.platform == 'win32':
26 OTHERDEFS = 'STCLOC = $(WXWIN)'
27 OTHERRULES = '''
28{$(WXWIN)/contrib/src/ogl}.cpp{}.obj:
29 $(cc) @<<
30$(CPPFLAGS) /c /Tp $<
31<<
32'''
33else:
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
40contrib :
41 ln -s $(WXWIN)/contrib contrib
42
43"""
44
45
46SWIGDEPS = '_ogldefs.i'
47OTHERDEPS = 'oglhelpers.h $(WXPSRCDIR)/helpers.h'
48
49
50# There are no platform differences so we don't need separate code directories
51GENCODEDIR='.'
52SWIGTOOLKITFLAG=''