scintilla: Update scintilla with changeset 3662:1d1c06df8a2f using gtk+3
[anjuta-extras.git] / plugins / scintilla / scintilla / Makefile.am
blobdec5b51c9c30d7d2e3d4c5de73e13667d76ef6bc
1 ## Process this file with automake to produce Makefile.in
3 SUBDIRS = include
5 noinst_LTLIBRARIES = libanjuta-scintilla.la
7 AM_CPPFLAGS = \
8         -I$(srcdir)/include \
9         $(LIBANJUTA_CFLAGS) \
10         $(GTHREAD_CFLAGS) \
11         -DGTK -DSCI_LEXER -DUSE_XIM
13 AM_CXXFLAGS = -DGTK -DSCI_LEXER -DUSE_XIM
15 include $(srcdir)/lexers.make
17 libanjuta_scintilla_la_SOURCES =\
18         Accessor.cxx \
19         AutoComplete.cxx \
20         CallTip.cxx \
21         Catalogue.cxx \
22         CellBuffer.cxx \
23         CharClassify.cxx \
24         CharacterSet.cxx \
25         ContractionState.cxx \
26         Decoration.cxx \
27         Document.cxx \
28         Editor.cxx \
29         ExternalLexer.cxx \
30         Indicator.cxx \
31         KeyMap.cxx \
32         LineMarker.cxx \
33         PerLine.cxx \
34         PlatGTK.cxx \
35         PositionCache.cxx \
36         PropSetSimple.cxx \
37         RESearch.cxx \
38         RunStyles.cxx \
39         ScintillaBase.cxx \
40         ScintillaGTK.cxx \
41         Selection.cxx \
42         StyleContext.cxx\
43         Style.cxx \
44         UniConversion.cxx \
45         ViewStyle.cxx \
46         WordList.cxx \
47         XPM.cxx\
48         Accessor.h \
49         AutoComplete.h \
50         CallTip.h \
51         Catalogue.h \
52         CellBuffer.h \
53         CharacterSet.h \
54         CharClassify.h \
55         ContractionState.h \
56         Converter.h \
57         Decoration.h \
58         Document.h \
59         Editor.h \
60         ExternalLexer.h \
61         Indicator.h \
62         KeyMap.h \
63         LexAccessor.h \
64         LineMarker.h \
65         OptionSet.h \
66         Partitioning.h \
67         PerLine.h \
68         PositionCache.h \
69         PropSetSimple.h \
70         RESearch.h \
71         RunStyles.h \
72         ScintillaBase.h \
73         Selection.h \
74         SparseState.h \
75         SplitVector.h \
76         StyleContext.h\
77         Style.h \
78         SVector.h \
79         UniConversion.h \
80         ViewStyle.h\
81         WordList.h \
82         XPM.h\
83         scintilla-marshal.h\
84         scintilla-marshal.c\
85         $(LEXER_SRCS)
87 libanjuta_scintilla_la_LIBADD = \
88         $(LIBANJUTA_LIBS) \
89         $(GTHREAD_LIBS)
91 noinst_PROGRAMS = test-scintilla
93 test_scintilla_CXXFLAGS = -DGTK
94 test_scintilla_SOURCES = test-scintilla.cxx
95 test_scintilla_LDADD = libanjuta-scintilla.la
97 $(srcdir)/lexers.make:
98         cd $(srcdir); \
99         echo "## Lexers make file" > $(notdir $@); \
100         echo 'LEXER_OBJS = \' >> $(notdir $@); \
101         echo -n '       StyleContext.o' >> $(notdir $@); \
102         for lex in Lex*.cxx; do \
103                 lex=`echo $$lex | sed -e "s,.*/,," -e "s/cxx$$/o/"`; \
104                 echo '\' >> $(notdir $@); \
105                 echo -n "       $$lex" >> $(notdir $@); \
106         done; \
107         echo "" >> $(notdir $@); \
108         echo "" >> $(notdir $@); \
109         echo -n 'LEXER_SRCS = ' >> $(notdir $@); \
110         for lex in Lex*.cxx; do \
111                 echo '\' >> $(notdir $@); \
112                 echo -n "       $$lex" >> $(notdir $@); \
113         done; \
114         echo "" >> $(notdir $@)
116 update-scintilla:
117         cd $(srcdir); \
118         cp scintilla/gtk/*.cxx .; \
119         cp scintilla/gtk/*.h .; \
120         cp scintilla/src/*.cxx .; \
121         cp scintilla/src/*.h .; \
122         cp scintilla/include/*.h include; \
123         cp scintilla/include/*.py include; \
124         cp scintilla/include/*.iface include; \
125         echo "Patching files ..."
126         cd $(srcdir); \
127         for patchfile in patches/*.diff; do \
128                 patch -p1 < $$patchfile; \
129         done
130         echo "Updating properties file..."
131         cd $(srcdir); \
132         ./update-properties.pl ../properties/styles.properties scite/src
134 marshallers: scintilla-marshal.list
135         glib-genmarshal --prefix scintilla_marshal scintilla-marshal.list --header > scintilla-marshal.h
136         glib-genmarshal --prefix scintilla_marshal scintilla-marshal.list --body > scintilla-marshal.c 
138 EXTRA_DIST=lexers.make