[vala/staging] build: Use --use-header for libraries
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] build: Use --use-header for libraries
- Date: Mon, 24 Apr 2017 12:11:51 +0000 (UTC)
commit e8a7efa282eb1fd0fe186ffb2f26a79106a05f05
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Apr 24 13:52:27 2017 +0200
build: Use --use-header for libraries
Reduces the size of generated c-sources while avoiding redefinitions.
ccode/Makefile.am | 1 +
codegen/Makefile.am | 1 +
gee/Makefile.am | 1 +
vala/Makefile.am | 1 +
4 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/ccode/Makefile.am b/ccode/Makefile.am
index 3e384d7..fb4c66a 100644
--- a/ccode/Makefile.am
+++ b/ccode/Makefile.am
@@ -83,6 +83,7 @@ ccode.vapi ccode.vala.stamp: $(libvalaccode_la_VALASOURCES)
--vapidir $(top_srcdir)/vapi --pkg gobject-2.0 \
--vapidir $(top_srcdir)/gee --pkg gee \
--pkg config \
+ --use-header \
-H valaccode.h \
--library ccode \
$^
diff --git a/codegen/Makefile.am b/codegen/Makefile.am
index e0e3ec9..e8575ab 100644
--- a/codegen/Makefile.am
+++ b/codegen/Makefile.am
@@ -61,6 +61,7 @@ codegen.vapi codegen.vala.stamp: $(libvalaccodegen_la_VALASOURCES)
--vapidir $(top_srcdir)/gee --pkg gee \
--vapidir $(top_srcdir)/ccode --pkg ccode \
--vapidir $(top_srcdir)/vala --pkg vala \
+ --use-header \
-H valacodegen.h \
--library codegen \
$^
diff --git a/gee/Makefile.am b/gee/Makefile.am
index 60ffe54..e51f8b5 100644
--- a/gee/Makefile.am
+++ b/gee/Makefile.am
@@ -43,6 +43,7 @@ gee.vapi gee.vala.stamp: $(libgee_la_VALASOURCES)
$(VALAFLAGS) \
-C \
--vapidir $(top_srcdir)/vapi --pkg gobject-2.0 \
+ --use-header \
-H valagee.h \
--library gee \
$^
diff --git a/vala/Makefile.am b/vala/Makefile.am
index 5048a07..30e3ca1 100644
--- a/vala/Makefile.am
+++ b/vala/Makefile.am
@@ -187,6 +187,7 @@ vala.vapi vala.vala.stamp: $(libvala_la_VALASOURCES)
--vapidir $(top_srcdir)/vapi --pkg gmodule-2.0 --pkg gobject-2.0 \
--vapidir $(top_srcdir)/gee --pkg gee \
--pkg config \
+ --use-header \
-H vala.h \
--library vala \
$^
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]