Skip to content
Snippets Groups Projects
Commit 05c3fb17 authored by Simon McVittie's avatar Simon McVittie
Browse files

Install an architecture-specific capsule-mkstublib

parent d306f842
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
......@@ -2,6 +2,7 @@
/.version
/INSTALL
/build-aux/*
/data/*-linux-gnu*-capsule-mkstublib
/m4/*
/test-suite.log
/tests/*.log
......
......@@ -26,13 +26,26 @@ static_docs = Building Debugging Limitations Quick-Start
# installable items:
libexec_PROGRAMS = capsule-symbols capsule-version
dist_libexec_SCRIPTS = data/capsule-mkstublib data/capsule-init-project
dist_libexec_SCRIPTS = data/capsule-init-project
lib_LTLIBRARIES = libcapsule.la
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = data/capsule.pc
nobase_include_HEADERS = capsule/capsule.h
dist_doc_DATA = $(foreach doc,$(static_docs),doc/$(doc).txt)
libexec_SCRIPTS = data/$(host)-capsule-mkstublib
# Write out a version of capsule-mkstublib with different defaults
# for each architecture
data/$(host)-capsule-mkstublib: data/capsule-mkstublib Makefile
$(AM_V_GEN)set -e; \
( \
sed -e 1q $<; \
echo '# Inserted by Makefile to make this architecture-specific'; \
echo ': "$${CAPSULE_SYMBOLS_TOOL:="$(libexecdir)/$(host)-capsule-symbols"}"';\
sed -e 1d $<; \
) > $@.tmp; chmod +x $@.tmp; mv $@.tmp $@
install-exec-hook:
cd $(DESTDIR)$(libexecdir) && ln -f capsule-symbols $(host)-capsule-symbols
cd $(DESTDIR)$(libexecdir) && ln -f capsule-version $(host)-capsule-version
......@@ -287,10 +300,13 @@ $(DOC_MAIN_SGML_FILE): sgml-build.stamp
# These need to come after we include gtk-doc.make, which unconditionally
# defines these variables
CLEANFILES += $(testmeta_DATA)
CLEANFILES += data/$(host)-capsule-mkstublib
CLEANFILES += tests/shim/libnotgl.so.c
EXTRA_DIST += $(top_srcdir)/.version
EXTRA_DIST += autogen.sh
EXTRA_DIST += build-aux/git-version-gen
EXTRA_DIST += data/capsule-mkstublib
EXTRA_DIST += doc/Strategy.txt
EXTRA_DIST += doc/capsule-init-project.xml
EXTRA_DIST += doc/capsule-mkstublib.xml
......
......@@ -7,7 +7,7 @@ datarootdir=@datarootdir@
datadir=@datarootdir@
makeinc=@datadir@/libcapsule
CAPSULE_INIT_PROJECT_TOOL=@libexecdir@/capsule-init-project
CAPSULE_MKSTUBLIB_TOOL=@libexecdir@/capsule-mkstublib
CAPSULE_MKSTUBLIB_TOOL=@libexecdir@/@host@-capsule-mkstublib
CAPSULE_SYMBOLS_TOOL=@libexecdir@/@host@-capsule-symbols
CAPSULE_VERSION_TOOL=@libexecdir@/@host@-capsule-version
......
usr/lib/libcapsule/*-capsule-mkstublib
usr/lib/libcapsule/*-capsule-symbols
usr/lib/libcapsule/*-capsule-version
usr/lib/libcapsule/capsule-init-project
usr/lib/libcapsule/capsule-mkstublib
usr/share/libcapsule/*
usr/share/man/man1/*
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment