]>
Commit | Line | Data |
---|---|---|
f6bcfd97 BP |
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/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 | ||
44 | OTHERCFLAGS = '-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 | ||
50 | if 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 | ||
64 | else: | |
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 | ||
74 | contrib : | |
75 | ln -s $(WXWIN)/contrib contrib | |
76 | ||
77 | ''' | |
78 | ||
79 | ||
80 | # There are no platform differences so we don't need separate code directories | |
81 | GENCODEDIR='.' | |
82 | SWIGTOOLKITFLAG='' | |
83 |