Commit f03d90cc authored by Vivien Kraus's avatar Vivien Kraus
Browse files

Do not re-compile everything just for the gir

parent ec39ddb8
Pipeline #179605 passed with stages
in 30 minutes and 50 seconds
......@@ -21,25 +21,14 @@ scan_verbose_0 = @echo " GI-SCAN " $@;
$(srcdir)/%reldir%/Tarot.gir: src/libtarot/core/tarot.h src/libtarot/gobject/tarot-gobject.h $(tarotinclude_HEADERS)
$(MAKE) $(AM_MAKEFLAGS) lib/libgnu.la
$(scan_verbose) gcc \
-shared \
-fPIC \
-o %reldir%/libtarot-host.so \
$$(for source in $(INTROSPECTED_SOURCES) ; \
do \
echo "$(srcdir)/$$source"; \
done) \
$(AM_CPPFLAGS) \
$(AM_CFLAGS) \
$$(pkg-config --cflags --libs gobject-2.0 libxml-2.0 nettle) \
$(AM_LDADD) \
-L lib/.libs \
-lgnu \
&& LD_LIBRARY_PATH="%reldir%:$$LD_LIBRARY_PATH" \
$(G_IR_SCANNER) $$(if $(AM_V_P); then echo "--quiet"; fi) \
--no-libtool \
--library tarot-host \
--library-path %reldir% \
$(MAKE) $(AM_MAKEFLAGS) src/libtarot/libtarot.la
$(MAKE) $(AM_MAKEFLAGS) src/libtarot/gobject/libtarot-gobject.la
$(scan_verbose) ./libtool --mode=execute $(G_IR_SCANNER) $$(if $(AM_V_P); then echo "--quiet"; fi) \
--libtool=./libtool \
--library tarot \
--library tarot-gobject \
--library-path src/libtarot \
--library-path src/libtarot/gobject \
--namespace Tarot \
--nsversion "$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH)$(VERSION_ADDITIONAL)" \
--include GObject-2.0 \
......@@ -53,9 +42,7 @@ $(srcdir)/%reldir%/Tarot.gir: src/libtarot/core/tarot.h src/libtarot/gobject/tar
echo "$(srcdir)/$$header"; \
done) \
-o $(srcdir)/%reldir%/Tarot.gir-t
@rm %reldir%/libtarot-host.so
@touch $(srcdir)/%reldir%/Tarot.gir-t
@mv $(srcdir)/%reldir%/Tarot.gir-t $(srcdir)/%reldir%/Tarot.gir
CLEANFILES += %reldir%/libtarot-host.so
MAINTAINERCLEANFILES += $(srcdir)/%reldir%/Tarot.gir
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