3 # Plugin description file
4 plugin_in_files = anjuta-vala.plugin.in
5 %.plugin: %.plugin.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
7 libanjuta_language_vala_la_VALASOURCES = config.vapi locator.vala plugin.vala provider.vala report.vala
12 vala_gladedir = $(anjuta_glade_dir)
13 dist_vala_glade_DATA = anjuta-vala.ui
16 vala_pixmapsdir = $(anjuta_image_dir)
17 dist_vala_pixmaps_DATA = anjuta-vala.png
19 # Where to install the plugin
20 vala_plugindir = $(anjuta_plugin_dir)
21 dist_vala_plugin_DATA = $(plugin_in_files:.plugin.in=.plugin)
24 # The naming convention is very intentional
25 # We are forced to use the prefix 'lib' by automake and libtool
26 # There is probably a way to avoid it but it is not worth to effort
28 # The 'anjuta_' prfix is a safety measure to avoid conflicts where the
29 # plugin 'libpython.so' needs to link with the real 'libpython.so'
34 -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
35 -DANJUTA_DATA_DIR=\"$(anjuta_data_dir)\" \
36 -DANJUTA_PLUGIN_DIR=\"$(anjuta_plugin_dir)\" \
37 -DANJUTA_IMAGE_DIR=\"$(anjuta_image_dir)\" \
38 -DANJUTA_GLADE_DIR=\"$(anjuta_glade_dir)\" \
39 -DANJUTA_UI_DIR=\"$(anjuta_ui_dir)\" \
42 -DPACKAGE_SRC_DIR=\"$(srcdir)\" \
43 -DG_LOG_DOMAIN=\"language-support-vala\" \
47 plugindir = $(anjuta_plugin_dir)
48 plugin_LTLIBRARIES = libanjuta-language-vala.la
51 nodist_libanjuta_language_vala_la_SOURCES = $(libanjuta_language_vala_la_VALASOURCES:.vala=.c)
52 CLEANFILES += *.c libanjuta_language_vala_la_vala.stamp
54 locator.c plugin.c provider.c report.c: libanjuta_language_vala_la_vala.stamp
57 libanjuta_language_vala_la_vala.stamp: $(libanjuta_language_vala_la_VALASOURCES)
58 $(VALAC) $(VALAFLAGS) --vapidir $(srcdir) --pkg $(LIBVALA) --pkg libanjuta-3.0 --pkg gtk+-3.0 -C $^
61 libanjuta_language_vala_la_LDFLAGS = $(ANJUTA_PLUGIN_LDFLAGS)
64 libanjuta_language_vala_la_LIBADD = \
70 gsettings_in_file = org.gnome.anjuta.plugins.vala.gschema.xml.in
71 gsettings_SCHEMAS = $(gsettings_in_file:.xml.in=.xml)
72 @INTLTOOL_XML_NOMERGE_RULE@
77 $(gsettings_in_file) \
78 $(libanjuta_language_vala_la_VALASOURCES) \
83 $(gsettings_SCHEMAS) \
84 $(plugin_in_files:.plugin.in=.plugin)
86 -include $(top_srcdir)/git.mk