gitg/libgitg-gtk/Makefile.am

123 lines
3.3 KiB
Text
Raw Normal View History

2012-04-15 12:57:30 +00:00
lib_LTLIBRARIES = libgitg-gtk-1.0.la
INCLUDES = \
-I$(top_srcdir) \
-I$(srcdir) \
2012-10-03 07:00:20 +00:00
-I$(srcdir)/egg-list-box \
2012-04-15 12:57:30 +00:00
$(LIBGITG_CFLAGS) \
$(LIBGITG_GTK_CFLAGS) \
$(WARN_CFLAGS) \
-DDATADIR=\""$(datadir)"\" \
-DLIBDIR=\""$(libdir)"\"
libgitg_gtk_1_0_la_LDFLAGS = \
-export-dynamic -no-undefined -export-symbols-regex "^[^_].*"
libgitg_gtk_1_0_la_LIBADD = \
$(LIBGITG_LIBS) \
$(LIBGITG_GTK_LIBS) \
$(top_builddir)/libgitg/libgitg-1.0.la
INST_H_FILES = \
libgitg-gtk.h
2012-10-03 07:00:20 +00:00
AM_VALAFLAGS = \
2012-07-12 18:52:07 +00:00
--pkg Ggit-1.0 \
--pkg libgitg-1.0 \
--pkg gtk+-3.0 \
--pkg gio-2.0 \
--pkg libsoup-2.4 \
--pkg webkit2gtk-3.0 \
2013-05-26 06:28:34 +00:00
--pkg gee-0.8 \
2012-07-12 18:52:07 +00:00
--pkg json-glib-1.0 \
2012-10-03 07:00:20 +00:00
--pkg egglistbox \
2012-07-12 18:52:07 +00:00
$(GITG_VALAFLAGS) \
--vapidir $(top_srcdir)/vapi \
2012-10-03 07:00:20 +00:00
--vapidir $(srcdir)/egg-list-box \
2012-07-12 18:52:07 +00:00
--header libgitg-gtk.h \
--includedir libgitg-gtk \
--basedir $(top_srcdir) \
--gir GitgGtk-1.0.gir \
--library libgitg-gtk-1.0 \
--girdir "$(top_builddir)/libgitg" \
--vapidir "$(top_builddir)/libgitg"
2012-04-15 12:57:30 +00:00
GitgGtk-1.0.gir: libgitg-gtk-1.0.la
libgitg-gtk.h: libgitg-gtk-1.0.la
2012-04-15 12:57:30 +00:00
VALA_FILES = \
2012-07-12 18:52:07 +00:00
gitg-gtk-assembly-info.vala \
gitg-gtk-commit-model.vala \
gitg-gtk-label-renderer.vala \
gitg-gtk-cell-renderer-lanes.vala \
gitg-gtk-commit-list-view.vala \
gitg-gtk-diff-view.vala \
gitg-gtk-diff-view-request.vala \
gitg-gtk-diff-view-request-resource.vala \
gitg-gtk-diff-view-request-diff.vala \
2013-03-01 15:11:06 +00:00
gitg-gtk-dash-view.vala \
gitg-gtk-when-mapped.vala \
gitg-gtk-progress-bin.vala
2012-04-15 12:57:30 +00:00
# Ignore all warnings for vala code...
libgitg_gtk_1_0_la_CFLAGS = \
-w
libgitg_gtk_1_0_la_SOURCES = \
2012-10-03 07:00:20 +00:00
egg-list-box/egg-list-box.c \
egg-list-box/egg-list-box-accessible.c \
2012-10-03 07:00:20 +00:00
gitg-gtk-resources.c \
$(VALA_FILES)
2012-04-15 12:57:30 +00:00
headerdir = $(prefix)/include/libgitg-gtk-1.0/libgitg-gtk
header_DATA = $(INST_H_FILES)
2012-07-12 18:52:07 +00:00
vapidir = $(prefix)/share/vala/vapi
vapi_DATA = libgitg-gtk-1.0.vapi
2012-04-15 12:57:30 +00:00
girdir = $(INTROSPECTION_GIRDIR)
gir_DATA = GitgGtk-1.0.gir
typelibdir = $(INTROSPECTION_TYPELIBDIR)
typelib_DATA = GitgGtk-1.0.typelib
%.typelib: %.gir
$(INTROSPECTION_COMPILER) $(INTROSPECTION_COMPILER_ARGS) --includedir=. --includedir="$(top_builddir)/libgitg" -o $@ $<
2012-04-15 12:57:30 +00:00
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libgitg-gtk-1.0.pc
gitg-gtk-resources.c: resources/resources.xml $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir $(srcdir)/resources resources/resources.xml)
$(GLIB_COMPILE_RESOURCES) --generate-source \
--sourcedir $(srcdir)/resources \
--target "$@" "$<"
gitg-gtk-resources.h: resources/resources.xml $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir $(srcdir)/resources resources/resources.xml)
$(GLIB_COMPILE_RESOURCES) --generate-header \
--sourcedir $(srcdir)/resources \
--target "$@" "$<"
BUILT_SOURCES = \
$(gir_DATA) \
2013-03-17 10:01:49 +00:00
$(vapi_DATA) \
$(typelib_DATA) \
libgitg-gtk.h \
gitg-gtk-resources.c \
gitg-gtk-resources.h \
2013-03-17 10:01:49 +00:00
libgitg_gtk_1_0_la_vala.stamp
EXTRA_DIST = \
$(pkgconfig_DATA) \
resources/resources.xml \
2012-10-03 07:00:20 +00:00
egg-list-box/egglistbox.vapi \
egg-list-box/egg-list-box.h \
egg-list-box/egg-list-box-accessible.h \
$(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir $(srcdir)/resources resources/resources.xml)
2012-04-15 12:57:30 +00:00
CLEANFILES = $(VALA_FILES:.vala=.c)
dist-hook:
cd $(distdir); rm -f $(BUILT_SOURCES)
-include $(top_srcdir)/git.mk