1 include interfaces/Makefile.am.gir
3 SUBDIRS = interfaces . tests
13 -DDATADIR="\"$(datadir)\"" \
14 -DPACKAGE_PIXMAPS_DIR="\"$(datadir)/pixmaps/$(PACKAGE)\"" \
15 -DPACKAGE_DATA_DIR="\"$(datadir)/$(PACKAGE)\"" \
16 -DPACKAGE_HELP_DIR="\"$(datadir)/gnome/help/$(PACKAGE)\"" \
17 -DPACKAGE_DOC_DIR="\"$(docdir)\"" \
18 -DG_LOG_DOMAIN=\"libanjuta\"
20 lib_LTLIBRARIES = libanjuta-3.la
21 libanjuta_3_la_LDFLAGS = $(ANJUTA_LDFLAGS)
22 libanjuta_3_la_LIBADD = \
23 interfaces/libanjuta-interfaces.la \
28 libanjuta_3_la_SOURCES= \
41 anjuta-preferences-dialog.c \
42 anjuta-preferences-dialog.h \
43 anjuta-preferences.c \
44 anjuta-preferences.h \
47 anjuta-plugin-handle.h \
48 anjuta-plugin-handle.c \
49 anjuta-plugin-description.c \
50 anjuta-plugin-description.h \
51 anjuta-plugin-manager.c \
52 anjuta-plugin-manager.h \
55 anjuta-profile-manager.c \
56 anjuta-profile-manager.h \
66 anjuta-save-prompt.c \
67 anjuta-save-prompt.h \
72 anjuta-c-plugin-factory.c \
73 anjuta-c-plugin-factory.h \
76 anjuta-cell-renderer-captioned-image.c \
77 anjuta-cell-renderer-captioned-image.h \
81 anjuta-vcs-status-tree-view.c \
82 anjuta-vcs-status-tree-view.h \
85 anjuta-async-command.c \
86 anjuta-async-command.h \
87 anjuta-sync-command.c \
88 anjuta-sync-command.h \
89 anjuta-async-notify.h \
90 anjuta-async-notify.c \
93 anjuta-command-queue.c \
94 anjuta-command-queue.h \
100 anjuta-token-file.c \
101 anjuta-token-stream.c \
102 anjuta-token-stream.h \
105 anjuta-drop-entry.c \
106 anjuta-drop-entry.h \
109 anjuta-command-bar.c \
110 anjuta-command-bar.h \
117 anjuta-pkg-config-chooser.h \
118 anjuta-pkg-config-chooser.c \
119 anjuta-pkg-config.h \
120 anjuta-pkg-config.c \
121 anjuta-pkg-scanner.h \
122 anjuta-pkg-scanner.c \
123 anjuta-column-text-view.h \
124 anjuta-column-text-view.c \
125 anjuta-file-drop-entry.h \
126 anjuta-file-drop-entry.c \
129 anjuta-environment-editor.h \
130 anjuta-environment-editor.c \
131 anjuta-tree-combo.h \
132 anjuta-tree-combo.c \
139 # For now install in our own prefix
140 # gladeanjutadir = @GLADE_PLUGINS_PATH@
142 gladeanjutadir = $(libdir)/glade/modules
144 gladeanjuta_LTLIBRARIES = libgladeanjuta.la
145 libgladeanjuta_la_SOURCES = anjuta-glade-catalog.c
146 libgladeanjuta_la_LDFLAGS = $(ANJUTA_LDFLAGS) -module -avoid-version
147 libgladeanjuta_la_LIBADD = \
151 # For now install in our own prefix
152 # catalogdir = @GLADE_CATALOG_PATH@
154 catalogdir = $(datadir)/glade/catalogs
155 catalog_DATA = anjuta-glade.xml
161 libanjutaincludedir=$(includedir)/libanjuta-3.0/libanjuta
163 libanjuta_include = \
171 anjuta-plugin-description.h \
172 anjuta-plugin-manager.h \
173 anjuta-plugin-handle.h \
175 anjuta-profile-manager.h \
177 anjuta-preferences-dialog.h \
178 anjuta-preferences.h \
182 anjuta-save-prompt.h \
183 anjuta-serializer.h \
185 anjuta-vcs-status-tree-view.h \
186 anjuta-vcs-status.h \
188 anjuta-async-command.h \
189 anjuta-async-notify.h \
190 anjuta-sync-command.h \
193 anjuta-command-queue.h \
194 anjuta-drop-entry.h \
196 anjuta-command-bar.h \
200 anjuta-pkg-config-chooser.h \
201 anjuta-pkg-config.h \
202 anjuta-pkg-scanner.h \
203 anjuta-column-text-view.h \
204 anjuta-file-drop-entry.h \
207 anjuta-pkg-config-chooser.h
209 libanjutainclude_HEADERS = \
210 $(libanjuta_include) \
211 anjuta-enum-types.h \
214 BUILT_SOURCES = anjuta-marshal.c anjuta-marshal.h anjuta-enum-types.h anjuta-enum-types.c
216 anjuta-marshal.h: anjuta-marshal.list
217 $(AM_V_GEN)@GLIB_GENMARSHAL@ \
218 --prefix=anjuta_cclosure_marshal $(srcdir)/anjuta-marshal.list --header > xgen-gmc \
219 && cp xgen-gmc $(@F) \
222 anjuta-marshal.c: anjuta-marshal.h anjuta-marshal.list
223 $(AM_V_GEN)echo "#include \"anjuta-marshal.h\"" > xgenc-gmc \
224 && @GLIB_GENMARSHAL@ \
225 --prefix=anjuta_cclosure_marshal $(srcdir)/anjuta-marshal.list --body >> xgenc-gmc \
226 && cp xgenc-gmc $(@F) \
229 anjuta-enum-types.h: stamp-anjuta-enum-types.h $(libanjuta_include)
231 stamp-anjuta-enum-types.h: Makefile $(libanjuta_include) anjuta-enum-types.c
232 $(AM_V_GEN)( cd $(srcdir) && $(GLIB_MKENUMS) \
233 --fhead "#ifndef __ANJUTA_ENUM_TYPES_H__\n#define __ANJUTA_ENUM_TYPES_H__\n\n#include <libanjuta/libanjuta.h>\n\nG_BEGIN_DECLS\n" \
234 --fprod "/* enumerations from \"@filename@\" */\n" \
235 --vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define ANJUTA_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
236 --ftail "G_END_DECLS\n\n#endif /* __ANJUTA_ENUM_TYPES_H__ */" \
237 $(libanjuta_include) ) >> xgen-geth \
238 && (cmp -s xgen-geth anjuta-enum-types.h || cp xgen-geth anjuta-enum-types.h ) \
240 && echo timestamp > $(@F)
242 anjuta-enum-types.c: Makefile
243 $(AM_V_GEN)( cd $(srcdir) && $(GLIB_MKENUMS) \
244 --fhead "#include \"anjuta-enum-types.h\"\n" \
245 --fprod "\n/* enumerations from \"@filename@\" */" \
246 --ftail "\n#define __ANJUTA_ENUM_TYPES_C__\n" \
247 --vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \
248 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
249 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (g_intern_static_string (\"@EnumName@\"), values);\n }\n return etype;\n}\n" \
250 $(libanjuta_include) ) > xgen-getc \
251 && cp xgen-getc anjuta-enum-types.c \
255 pkgconfigdir = $(libdir)/pkgconfig
256 pkgconfig_DATA = libanjuta-3.0.pc
259 $(libanjutainclude_HEADERS) \
260 libanjuta-3.0.pc.in \
261 anjuta-marshal.list \
265 anjuta-enum-types.h \
266 anjuta-enum-types.c \
267 stamp-anjuta-enum-types.h
269 -include $(INTROSPECTION_MAKEFILE)
271 INTROSPECTION_SCANNER_ARGS = --add-include-path=$(builddir) -I $(top_builddir) --warn-all
272 INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
274 if HAVE_INTROSPECTION
275 anjuta_introspection_sources = $(libanjuta_3_la_SOURCES)
276 ianjuta_introspection_sources = $(libanjuta_source_files) $(libanjuta_header_files)
278 Anjuta-3.0.gir: libanjuta-3.la
279 Anjuta_3_0_gir_INCLUDES = GObject-2.0 Gtk-3.0
280 Anjuta_3_0_gir_CFLAGS = $(ANJUTA_CFLAGS) $(XML_CFLAGS) $(GDL_CFLAGS) -I$(top_srcdir)
281 Anjuta_3_0_gir_LIBS = libanjuta-3.la
282 Anjuta_3_0_gir_FILES = $(anjuta_introspection_sources)
283 Anjuta_3_0_gir_SCANNERFLAGS = --c-include=libanjuta/libanjuta.h
284 INTROSPECTION_GIRS += Anjuta-3.0.gir
286 IAnjuta-3.0.gir: interfaces/libanjuta-interfaces.la libanjuta-3.la Anjuta-3.0.gir
287 IAnjuta_3_0_gir_INCLUDES = GObject-2.0 Gtk-3.0 Anjuta-3.0
288 IAnjuta_3_0_gir_CFLAGS = $(ANJUTA_CFLAGS) $(XML_CFLAGS) -I$(top_srcdir)
289 IAnjuta_3_0_gir_LIBS = interfaces/libanjuta-interfaces.la libanjuta-3.la
290 IAnjuta_3_0_gir_FILES = $(ianjuta_introspection_sources)
291 IAnjuta_3_0_gir_SCANNERFLAGS = --add-include-path=$(top_srcdir)/libanjuta/ --symbol-prefix=ianjuta --c-include=libanjuta/interfaces/libanjuta-interfaces.h
292 INTROSPECTION_GIRS += IAnjuta-3.0.gir
294 girdir = $(datadir)/gir-1.0
295 gir_DATA = $(INTROSPECTION_GIRS)
297 typelibdir = $(libdir)/girepository-1.0
298 typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
300 CLEANFILES = $(gir_DATA) $(typelib_DATA)
304 -include $(top_srcdir)/git.mk