From 2382f350d10acd793052bd701293d6545827dc34 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Sat, 3 Nov 2018 14:11:01 -0500 Subject: [PATCH] Move installation of system libraries. Copy the system libraries after the applications are built. Only install the system libraries when packaging. This makes it more convenient to use the script for development. --- scripts/build-shotcut.sh | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/scripts/build-shotcut.sh b/scripts/build-shotcut.sh index 3352c27a55..010867152d 100755 --- a/scripts/build-shotcut.sh +++ b/scripts/build-shotcut.sh @@ -1644,14 +1644,6 @@ function configure_compile_install_subproject { cmd cp -a "$QTDIR"/plugins/{accessible,iconengines,imageformats,mediaservice,platforms,generic,platforminputcontexts,platformthemes,xcbglintegrations} "$FINAL_INSTALL_DIR"/lib/qt5 cmd cp -p "$QTDIR"/plugins/sqldrivers/libqsqlite.so "$FINAL_INSTALL_DIR"/lib/qt5/sqldrivers cmd cp -a "$QTDIR"/qml "$FINAL_INSTALL_DIR"/lib - - log Copying some libs from system - for lib in "$FINAL_INSTALL_DIR"/lib/qt5/{iconengines,imageformats,mediaservice,platforms,generic,platforminputcontexts,platformthemes,xcbglintegrations}/*.so; do - bundle_libs "$lib" - done - for lib in "$FINAL_INSTALL_DIR"/{lib,lib/mlt,lib/frei0r-1,lib/ladspa}/*.so*; do - bundle_libs "$lib" - done fi elif test "webvfx" = "$1" ; then cmd make -C webvfx install || die "Unable to install $1/webvfx" @@ -1699,6 +1691,17 @@ function configure_compile_install_all { for DIR in $SUBDIRS ; do configure_compile_install_subproject $DIR done + + if [ "$ARCHIVE" = "1" ]; then + log Copying some libs from system + for lib in "$FINAL_INSTALL_DIR"/lib/qt5/{iconengines,imageformats,mediaservice,platforms,generic,platforminputcontexts,platformthemes,xcbglintegrations}/*.so; do + bundle_libs "$lib" + done + for lib in "$FINAL_INSTALL_DIR"/{lib,lib/mlt,lib/frei0r-1,lib/ladspa}/*.so*; do + bundle_libs "$lib" + done + fi + feedback_status Done configuring, compiling and installing all sources } @@ -1754,7 +1757,7 @@ function sys_info { function bundle_libs { target=$(dirname "$1")/$(basename "$1") - log bundling library dependencies of "$lib" + log bundling library dependencies of $(basename "$1") libs=$(ldd "$target" | awk '($3 ~ /^\/(lib|usr)\//) && ($3 !~ /\/libld-linux\./) &&