scintilla: Link to gmodule to fix build against glib >= 2.31
[anjuta-extras.git] / plugins / scintilla / scintilla / Makefile.am
blobe21ea415dc9bf80bc0c54e65c2fbbceb3ddcfbb8
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         $(GMODULE_CFLAGS) \
12         -DGTK -DSCI_LEXER -DUSE_XIM
14 AM_CXXFLAGS = -DGTK -DSCI_LEXER -DUSE_XIM
16 include $(srcdir)/lexers.make
18 libanjuta_scintilla_la_SOURCES =\
19         Accessor.cxx \
20         AutoComplete.cxx \
21         CallTip.cxx \
22         Catalogue.cxx \
23         CellBuffer.cxx \
24         CharClassify.cxx \
25         CharacterSet.cxx \
26         ContractionState.cxx \
27         Decoration.cxx \
28         Document.cxx \
29         Editor.cxx \
30         ExternalLexer.cxx \
31         Indicator.cxx \
32         KeyMap.cxx \
33         LineMarker.cxx \
34         PerLine.cxx \
35         PlatGTK.cxx \
36         PositionCache.cxx \
37         PropSetSimple.cxx \
38         RESearch.cxx \
39         RunStyles.cxx \
40         ScintillaBase.cxx \
41         ScintillaGTK.cxx \
42         Selection.cxx \
43         StyleContext.cxx\
44         Style.cxx \
45         UniConversion.cxx \
46         ViewStyle.cxx \
47         WordList.cxx \
48         XPM.cxx\
49         Accessor.h \
50         AutoComplete.h \
51         CallTip.h \
52         Catalogue.h \
53         CellBuffer.h \
54         CharacterSet.h \
55         CharClassify.h \
56         ContractionState.h \
57         Converter.h \
58         Decoration.h \
59         Document.h \
60         Editor.h \
61         ExternalLexer.h \
62         Indicator.h \
63         KeyMap.h \
64         LexAccessor.h \
65         LexerModule.h \
66         LexerBase.h \
67         LexerSimple.h \
68         LineMarker.h \
69         OptionSet.h \
70         Partitioning.h \
71         PerLine.h \
72         PositionCache.h \
73         PropSetSimple.h \
74         RESearch.h \
75         RunStyles.h \
76         ScintillaBase.h \
77         Selection.h \
78         SparseState.h \
79         SplitVector.h \
80         StyleContext.h\
81         Style.h \
82         SVector.h \
83         UniConversion.h \
84         ViewStyle.h\
85         WordList.h \
86         XPM.h\
87         scintilla-marshal.h\
88         scintilla-marshal.c\
89         $(LEXER_SRCS)
91 libanjuta_scintilla_la_LIBADD = \
92         $(LIBANJUTA_LIBS) \
93         $(GTHREAD_LIBS) \
94         $(GMODULE_LIBS)
96 noinst_PROGRAMS = test-scintilla
98 test_scintilla_CXXFLAGS = -DGTK
99 test_scintilla_SOURCES = test-scintilla.cxx
100 test_scintilla_LDADD = libanjuta-scintilla.la
102 $(srcdir)/lexers.make:
103         cd $(srcdir); \
104         echo "## Lexers make file" > $(notdir $@); \
105         echo 'LEXER_OBJS = \' >> $(notdir $@); \
106         echo -n '       StyleContext.o' >> $(notdir $@); \
107         for lex in Lex*.cxx; do \
108                 lex=`echo $$lex | sed -e "s,.*/,," -e "s/cxx$$/o/"`; \
109                 echo '\' >> $(notdir $@); \
110                 echo -n "       $$lex" >> $(notdir $@); \
111         done; \
112         echo "" >> $(notdir $@); \
113         echo "" >> $(notdir $@); \
114         echo 'LEXER_SRCS = \' >> $(notdir $@); \
115         echo -n '       LexerNoExceptions.h' >> $(notdir $@); \
116         for lex in Lex*.cxx; do \
117                 echo '\' >> $(notdir $@); \
118                 echo -n "       $$lex" >> $(notdir $@); \
119         done; \
120         echo "" >> $(notdir $@)
122 update-scintilla:
123         cd $(srcdir); \
124         cp scintilla/gtk/*.cxx .; \
125         cp scintilla/gtk/*.h .; \
126         cp scintilla/gtk/*.list h.; \
127         cp scintilla/lexers/*.cxx .; \
128         cp scintilla/lexers/*.h .; \
129         cp scintilla/lexlib/*.cxx .; \
130         cp scintilla/lexlib/*.h .; \
131         cp scintilla/src/*.cxx .; \
132         cp scintilla/src/*.h .; \
133         cp scintilla/include/*.h include; \
134         cp scintilla/include/*.py include; \
135         cp scintilla/include/*.iface include; \
136         echo "Patching files ..."
137         cd $(srcdir); \
138         for patchfile in patches/*.diff; do \
139                 patch -p0 < $$patchfile; \
140         done
141         echo "Updating properties file..."
142         cd $(srcdir); \
143         ./update-properties.pl ../properties/styles.properties scite/src
145 marshallers: scintilla-marshal.list
146         glib-genmarshal --prefix scintilla_marshal scintilla-marshal.list --header > scintilla-marshal.h
147         glib-genmarshal --prefix scintilla_marshal scintilla-marshal.list --body > scintilla-marshal.c 
149 EXTRA_DIST=lexers.make