From: Rico Tzschichholz Date: Mon, 24 Apr 2017 11:52:27 +0000 (+0200) Subject: build: Use --use-header for libraries X-Git-Tag: 0.37.1~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ccda863c2136c0fa98d07b6863b2c9062149c48;p=thirdparty%2Fvala.git build: Use --use-header for libraries Reduces the size of generated c-sources while avoiding redefinitions. --- diff --git a/ccode/Makefile.am b/ccode/Makefile.am index 3e384d784..fb4c66a71 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 e0e3ec972..e8575aba0 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 60ffe54b7..e51f8b541 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 5048a0722..30e3ca1a6 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 \ $^