[latexila/wip/build-system-update: 1/6] build: use AX_COMPILER_FLAGS
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila/wip/build-system-update: 1/6] build: use AX_COMPILER_FLAGS
- Date: Sun, 18 Dec 2016 14:34:43 +0000 (UTC)
commit 1ebcb060fc665b8b85a317fa105d9bf1b6cc13d4
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Dec 18 15:07:27 2016 +0100
build: use AX_COMPILER_FLAGS
https://wiki.gnome.org/Projects/GnomeCommon/Migration
configure.ac | 4 ++--
src/evince/Makefile.am | 3 +++
src/gedit/Makefile.am | 6 +++++-
src/liblatexila/Makefile.am | 5 ++++-
tests/Makefile.am | 2 ++
5 files changed, 16 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index b73207a..01322fb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -122,8 +122,8 @@ YELP_HELP_INIT
AX_REQUIRE_DEFINED([GLIB_GSETTINGS])
GLIB_GSETTINGS
-AX_REQUIRE_DEFINED([GNOME_COMPILE_WARNINGS])
-GNOME_COMPILE_WARNINGS([maximum])
+AX_REQUIRE_DEFINED([AX_COMPILER_FLAGS])
+AX_COMPILER_FLAGS([WARN_CFLAGS], [WARN_LDFLAGS])
AX_REQUIRE_DEFINED([GOBJECT_INTROSPECTION_CHECK])
GOBJECT_INTROSPECTION_CHECK([1.30.0])
diff --git a/src/evince/Makefile.am b/src/evince/Makefile.am
index be8a377..ce22b24 100644
--- a/src/evince/Makefile.am
+++ b/src/evince/Makefile.am
@@ -4,6 +4,9 @@ libevince_la_CFLAGS = \
$(LATEXILA_CFLAGS) \
$(WARN_CFLAGS)
+libevince_la_LDFLAGS = \
+ $(WARN_LDFLAGS)
+
libevince_la_LIBADD = \
$(LATEXILA_LIBS)
diff --git a/src/gedit/Makefile.am b/src/gedit/Makefile.am
index 5d5ef9f..64c5a07 100644
--- a/src/gedit/Makefile.am
+++ b/src/gedit/Makefile.am
@@ -1,7 +1,11 @@
noinst_LTLIBRARIES = libgedit.la
libgedit_la_CFLAGS = \
- $(LATEXILA_CFLAGS)
+ $(LATEXILA_CFLAGS) \
+ $(WARN_CFLAGS)
+
+libgedit_la_LDFLAGS = \
+ $(WARN_LDFLAGS)
libgedit_la_LIBADD = \
$(LATEXILA_LIBS)
diff --git a/src/liblatexila/Makefile.am b/src/liblatexila/Makefile.am
index a8dbd28..3f77db7 100644
--- a/src/liblatexila/Makefile.am
+++ b/src/liblatexila/Makefile.am
@@ -8,7 +8,9 @@ liblatexila_la_CFLAGS = \
$(CODE_COVERAGE_CFLAGS) \
-I$(top_builddir)/src/evince
-liblatexila_la_LDFLAGS = $(CODE_COVERAGE_LDFLAGS)
+liblatexila_la_LDFLAGS = \
+ $(WARN_LDFLAGS) \
+ $(CODE_COVERAGE_LDFLAGS)
liblatexila_la_LIBADD = \
$(LATEXILA_LIBS) \
@@ -98,6 +100,7 @@ Latexila_gir_NAMESPACE = Latexila
Latexila_gir_INCLUDES = Gtk-3.0
Latexila_gir_LIBS = liblatexila.la
Latexila_gir_FILES = $(liblatexila_la_SOURCES) $(nodist_liblatexila_la_SOURCES)
+Latexila_gir_SCANNERFLAGS = $(WARN_SCANNERFLAGS)
noinst_DATA += Latexila.gir Latexila.typelib
CLEANFILES += Latexila.gir Latexila.typelib
diff --git a/tests/Makefile.am b/tests/Makefile.am
index f6434e3..564332d 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -7,6 +7,8 @@ AM_CPPFLAGS = \
$(LATEXILA_CFLAGS) \
$(WARN_CFLAGS)
+AM_LDFLAGS = $(WARN_LDFLAGS)
+
LDADD = $(top_builddir)/src/liblatexila/liblatexila.la \
$(LATEXILA_LIBS)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]