]> git.saurik.com Git - wxWidgets.git/blame - wxPython/contrib/stc/build.cfg
fix for assertion failure
[wxWidgets.git] / wxPython / contrib / stc / build.cfg
CommitLineData
f6bcfd97
BP
1# -*- python -*-
2import sys
3
4MODULE = 'stc_c'
5SWIGFILES = ['stc_.i']
6SOURCES = []
7PYFILES = ['stc.py']
8
9
10OTHERSWIGFLAGS = '-I$(STCLOC)/contrib/include/wx/stc'
11SWIGDEPS = '$(STCLOC)/contrib/include/wx/stc/stc.h'
12
13SOURCES = SOURCES + [
14 '$(STCLOC)/contrib/src/stc/scintilla/src/AutoComplete.cxx',
15 '$(STCLOC)/contrib/src/stc/scintilla/src/CallTip.cxx',
16 '$(STCLOC)/contrib/src/stc/scintilla/src/CellBuffer.cxx',
17 '$(STCLOC)/contrib/src/stc/scintilla/src/ContractionState.cxx',
18 '$(STCLOC)/contrib/src/stc/scintilla/src/Document.cxx',
19 '$(STCLOC)/contrib/src/stc/scintilla/src/Editor.cxx',
20 '$(STCLOC)/contrib/src/stc/scintilla/src/Indicator.cxx',
21 '$(STCLOC)/contrib/src/stc/scintilla/src/KeyMap.cxx',
22 '$(STCLOC)/contrib/src/stc/scintilla/src/KeyWords.cxx',
23 '$(STCLOC)/contrib/src/stc/scintilla/src/LineMarker.cxx',
24 '$(STCLOC)/contrib/src/stc/scintilla/src/PropSet.cxx',
25 '$(STCLOC)/contrib/src/stc/scintilla/src/ScintillaBase.cxx',
26 '$(STCLOC)/contrib/src/stc/scintilla/src/Style.cxx',
27 '$(STCLOC)/contrib/src/stc/scintilla/src/ViewStyle.cxx',
28 '$(STCLOC)/contrib/src/stc/scintilla/src/LexCPP.cxx',
29 '$(STCLOC)/contrib/src/stc/scintilla/src/LexHTML.cxx',
fe47ec10 30 '$(STCLOC)/contrib/src/stc/scintilla/src/LexLua.cxx',
f6bcfd97
BP
31 '$(STCLOC)/contrib/src/stc/scintilla/src/LexOthers.cxx',
32 '$(STCLOC)/contrib/src/stc/scintilla/src/LexPerl.cxx',
33 '$(STCLOC)/contrib/src/stc/scintilla/src/LexPython.cxx',
34 '$(STCLOC)/contrib/src/stc/scintilla/src/LexSQL.cxx',
35 '$(STCLOC)/contrib/src/stc/scintilla/src/LexVB.cxx',
36 '$(STCLOC)/contrib/src/stc/scintilla/src/DocumentAccessor.cxx',
37 '$(STCLOC)/contrib/src/stc/scintilla/src/UniConversion.cxx',
38 '$(STCLOC)/contrib/src/stc/scintilla/src/WindowAccessor.cxx',
fe47ec10 39 '$(STCLOC)/contrib/src/stc/scintilla/src/PosRegExp.cxx',
f6bcfd97
BP
40
41 '$(STCLOC)/contrib/src/stc/PlatWX.cpp',
42 '$(STCLOC)/contrib/src/stc/ScintillaWX.cpp',
43 '$(STCLOC)/contrib/src/stc/stc.cpp',
44 ]
45
46OTHERCFLAGS = '-D__WX__ -DSCI_LEXER ' + \
47 '-I$(STCLOC)/contrib/src/stc/scintilla/include ' + \
48 '-I$(STCLOC)/contrib/include ' + \
49 '-I$(STCLOC)/contrib/src/stc/scintilla/src'
50
51
52if sys.platform == 'win32':
53 OTHERDEFS = 'STCLOC = $(WXWIN)'
54 OTHERRULES = '''
55{$(WXWIN)/contrib/src/stc}.cpp{}.obj:
56 $(cc) @<<
57$(CPPFLAGS) /c /Tp $<
58<<
59
60{$(WXWIN)/contrib/src/stc/scintilla/src}.cxx{}.obj:
61 $(cc) @<<
62$(CPPFLAGS) /c /Tp $<
63<<
64'''
65
66else:
67 DEFAULTRULE = 'default: contrib $(GENCODEDIR) $(TARGET) $(BUILDDIR)/$(TARGET) bldpycfiles'
68 OTHERDEFS = 'STCLOC = .'
69 OTHERRULES = '''
70%.o : contrib/src/stc/%.cpp
71 $(CCC) $(CCSHARED) $(CFLAGS) $(OTHERCFLAGS) -c $<
72
73%.o : contrib/src/stc/scintilla/src/%.cxx
74 $(CCC) $(CCSHARED) $(CFLAGS) $(OTHERCFLAGS) -c $<
75
76contrib :
9732ef1c 77 ln -s $(WXDIR)/contrib contrib
f6bcfd97
BP
78
79'''
80
81
82# There are no platform differences so we don't need separate code directories
83GENCODEDIR='.'
84SWIGTOOLKITFLAG=''
85