[tepl] amtk: add build instructions
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tepl] amtk: add build instructions
- Date: Fri, 14 Jul 2017 14:01:07 +0000 (UTC)
commit aaad01c5540e5866ca21e64036fd7180dc3c4e22
Author: Sébastien Wilmet <swilmet gnome org>
Date: Thu Jul 13 13:10:50 2017 +0200
amtk: add build instructions
Makefile.am | 2 +-
amtk/Makefile.am | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
configure.ac | 1 +
3 files changed, 115 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 610e16f..0d74cee 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = po tepl tests testsuite docs
+SUBDIRS = po amtk tepl tests testsuite docs
@CODE_COVERAGE_RULES@
diff --git a/amtk/Makefile.am b/amtk/Makefile.am
new file mode 100644
index 0000000..a1076b1
--- /dev/null
+++ b/amtk/Makefile.am
@@ -0,0 +1,113 @@
+@CODE_COVERAGE_RULES@
+
+AM_CPPFLAGS = \
+ -DG_LOG_DOMAIN=\"Amtk\" \
+ -DAMTK_COMPILATION \
+ -I$(top_builddir) \
+ -I$(top_srcdir) \
+ $(WARN_CFLAGS) \
+ $(CODE_COVERAGE_CPPFLAGS) \
+ $(DEP_CFLAGS)
+
+amtk_public_headers = \
+ amtk.h \
+ amtk-action-info.h \
+ amtk-action-info-central-store.h \
+ amtk-action-info-store.h \
+ amtk-action-map.h \
+ amtk-menu-item.h \
+ amtk-menu-shell.h \
+ amtk-types.h
+
+amtk_public_c_files = \
+ amtk-action-info.c \
+ amtk-action-info-central-store.c \
+ amtk-action-info-store.c \
+ amtk-action-map.c \
+ amtk-menu-item.c \
+ amtk-menu-shell.c
+
+noinst_LTLIBRARIES = libamtk.la
+
+libamtk_la_SOURCES = \
+ $(amtk_public_c_files) \
+ $(amtk_public_headers)
+
+libamtk_la_CFLAGS = \
+ $(CODE_COVERAGE_CFLAGS)
+
+libamtk_la_LDFLAGS = \
+ -no-undefined \
+ $(WARN_LDFLAGS)
+
+libamtk_la_LIBADD = \
+ $(CODE_COVERAGE_LIBS)
+
+libamtk_includedir = $(includedir)/tepl-@TEPL_API_VERSION@/amtk
+libamtk_include_HEADERS = $(amtk_public_headers)
+
+CLEANFILES =
+
+if HAVE_INTROSPECTION
+-include $(INTROSPECTION_MAKEFILE)
+INTROSPECTION_GIRS = Amtk-@TEPL_API_VERSION@.gir
+
+INTROSPECTION_SCANNER_ENV = CC="$(CC)"
+
+Amtk-@TEPL_API_VERSION@.gir: libamtk.la
+INTROSPECTION_SCANNER_ARGS = \
+ -I$(top_srcdir) \
+ -I$(top_builddir) \
+ --c-include=amtk/amtk.h \
+ --warn-all
+Amtk_@TEPL_API_VERSION@_gir_NAMESPACE = Amtk
+Amtk_@TEPL_API_VERSION@_gir_VERSION = @TEPL_API_VERSION@
+Amtk_@TEPL_API_VERSION@_gir_CFLAGS = $(DEP_CFLAGS)
+Amtk_@TEPL_API_VERSION@_gir_SCANNERFLAGS = $(WARN_SCANNERFLAGS)
+Amtk_@TEPL_API_VERSION@_gir_LIBS = libamtk.la
+Amtk_@TEPL_API_VERSION@_gir_FILES = \
+ $(amtk_public_headers) \
+ $(amtk_public_c_files)
+
+Amtk_@TEPL_API_VERSION@_gir_INCLUDES = Gtk-3.0
+Amtk_@TEPL_API_VERSION@_gir_PACKAGES = gtk+-3.0
+
+girdir = $(datadir)/gir-1.0
+gir_DATA = Amtk-@TEPL_API_VERSION@.gir
+
+typelibdir = $(libdir)/girepository-1.0
+typelib_DATA = Amtk-@TEPL_API_VERSION@.typelib
+
+CLEANFILES += \
+ $(gir_DATA) \
+ $(typelib_DATA)
+
+endif # HAVE_INTROSPECTION
+
+if ENABLE_VAPIGEN
+-include $(VAPIGEN_MAKEFILE)
+
+amtk-@TEPL_API_VERSION@.vapi: Amtk-@TEPL_API_VERSION@.gir
+
+VAPIGEN_VAPIS = amtk-@TEPL_API_VERSION@.vapi
+
+amtk_@TEPL_API_VERSION@_vapi_DEPS = gtk+-3.0
+
+amtk-@TEPL_API_VERSION@.deps:
+ $(AM_V_GEN) for pkg in $(amtk_@TEPL_API_VERSION@_vapi_DEPS); do \
+ echo $$pkg >> $@; \
+ done
+
+amtk_@TEPL_API_VERSION@_vapi_METADATADIRS = $(srcdir)
+amtk_@TEPL_API_VERSION@_vapi_FILES = Amtk-@TEPL_API_VERSION@.gir
+
+vapidir = $(datadir)/vala/vapi
+vapi_DATA = \
+ amtk-@TEPL_API_VERSION@.vapi \
+ amtk-@TEPL_API_VERSION@.deps
+
+CLEANFILES += $(vapi_DATA)
+
+endif # ENABLE_VAPIGEN
+
+-include $(top_srcdir)/git.mk
diff --git a/configure.ac b/configure.ac
index f335346..579c41a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -141,6 +141,7 @@ PKG_CHECK_VAR([GLIB_PREFIX], [glib-2.0], [prefix])
AC_CONFIG_FILES([
tepl-${TEPL_API_VERSION}.pc:tepl.pc.in
Makefile
+ amtk/Makefile
docs/Makefile
docs/reference/tepl-docs.xml
docs/reference/intro.xml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]