Commit 2ccda863 authored by Rico Tzschichholz's avatar Rico Tzschichholz

build: Use --use-header for libraries

Reduces the size of generated c-sources while avoiding redefinitions.
parent 955ef3e1
......@@ -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 \
$^
......
......@@ -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 \
$^
......
......@@ -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 \
$^
......
......@@ -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 \
$^
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment