]>
Commit | Line | Data |
---|---|---|
1 | # -*- python -*- | |
2 | import sys | |
3 | ||
4 | MODULE = 'stc_c' | |
5 | SWIGFILES = ['stc_.i'] | |
6 | SOURCES = [] | |
7 | PYFILES = ['stc.py'] | |
8 | ||
9 | ||
10 | OTHERSWIGFLAGS = '-I$(STCLOC)/contrib/include/wx/stc' | |
11 | SWIGDEPS = '$(STCLOC)/contrib/include/wx/stc/stc.h' | |
12 | ||
13 | SOURCES = 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/LexLua.cxx', | |
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', | |
39 | '$(STCLOC)/contrib/src/stc/scintilla/src/PosRegExp.cxx', | |
40 | ||
41 | '$(STCLOC)/contrib/src/stc/PlatWX.cpp', | |
42 | '$(STCLOC)/contrib/src/stc/ScintillaWX.cpp', | |
43 | '$(STCLOC)/contrib/src/stc/stc.cpp', | |
44 | ] | |
45 | ||
46 | OTHERCFLAGS = '-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 | ||
52 | if 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 | ||
66 | else: | |
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 | ||
76 | contrib : | |
77 | ln -s $(WXDIR)/contrib contrib | |
78 | ||
79 | ''' | |
80 | ||
81 | ||
82 | # There are no platform differences so we don't need separate code directories | |
83 | GENCODEDIR='.' | |
84 | SWIGTOOLKITFLAG='' | |
85 |