]> git.saurik.com Git - wxWidgets.git/blame - wxPython/contrib/stc/build.cfg
An attempt at make the wxCSConv class useful. Uses iconv under Unix,
[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',
30 '$(STCLOC)/contrib/src/stc/scintilla/src/LexOthers.cxx',
31 '$(STCLOC)/contrib/src/stc/scintilla/src/LexPerl.cxx',
32 '$(STCLOC)/contrib/src/stc/scintilla/src/LexPython.cxx',
33 '$(STCLOC)/contrib/src/stc/scintilla/src/LexSQL.cxx',
34 '$(STCLOC)/contrib/src/stc/scintilla/src/LexVB.cxx',
35 '$(STCLOC)/contrib/src/stc/scintilla/src/DocumentAccessor.cxx',
36 '$(STCLOC)/contrib/src/stc/scintilla/src/UniConversion.cxx',
37 '$(STCLOC)/contrib/src/stc/scintilla/src/WindowAccessor.cxx',
38
39 '$(STCLOC)/contrib/src/stc/PlatWX.cpp',
40 '$(STCLOC)/contrib/src/stc/ScintillaWX.cpp',
41 '$(STCLOC)/contrib/src/stc/stc.cpp',
42 ]
43
44OTHERCFLAGS = '-D__WX__ -DSCI_LEXER ' + \
45 '-I$(STCLOC)/contrib/src/stc/scintilla/include ' + \
46 '-I$(STCLOC)/contrib/include ' + \
47 '-I$(STCLOC)/contrib/src/stc/scintilla/src'
48
49
50if sys.platform == 'win32':
51 OTHERDEFS = 'STCLOC = $(WXWIN)'
52 OTHERRULES = '''
53{$(WXWIN)/contrib/src/stc}.cpp{}.obj:
54 $(cc) @<<
55$(CPPFLAGS) /c /Tp $<
56<<
57
58{$(WXWIN)/contrib/src/stc/scintilla/src}.cxx{}.obj:
59 $(cc) @<<
60$(CPPFLAGS) /c /Tp $<
61<<
62'''
63
64else:
65 DEFAULTRULE = 'default: contrib $(GENCODEDIR) $(TARGET) $(BUILDDIR)/$(TARGET) bldpycfiles'
66 OTHERDEFS = 'STCLOC = .'
67 OTHERRULES = '''
68%.o : contrib/src/stc/%.cpp
69 $(CCC) $(CCSHARED) $(CFLAGS) $(OTHERCFLAGS) -c $<
70
71%.o : contrib/src/stc/scintilla/src/%.cxx
72 $(CCC) $(CCSHARED) $(CFLAGS) $(OTHERCFLAGS) -c $<
73
74contrib :
75 ln -s $(WXWIN)/contrib contrib
76
77'''
78
79
80# There are no platform differences so we don't need separate code directories
81GENCODEDIR='.'
82SWIGTOOLKITFLAG=''
83