OS X: Stop whitelisting libraries to bundle

Just bundle everything that we have available.
qteditor
Nicolas Hake 2016-06-24 13:42:19 +02:00
parent 721753b396
commit 692b8a9cc5
1 changed files with 1 additions and 4 deletions

View File

@ -22,9 +22,6 @@ _frameworks_folder_path="${FRAMEWORKS_FOLDER_PATH:-${_contents_folder}/Framework
_otool="${OTOOL:-otool}"
_install_name_tool="${INSTALL_NAME_TOOL:-install_name_tool}"
# This regexp should match every lib we want to bundle.
_libs_to_bundle=".*?/lib(jpeg|GLEW|llvm|SDL|SDL_mixer|freetype|ogg|vorbis|vorbisfile|z\.|png[0-9]*|alut)\.[^ ]+\.dylib"
if [ -n "${TARGET_BUILD_DIR}" ]; then
cd "${TARGET_BUILD_DIR}"
fi
@ -34,7 +31,7 @@ echo "Bundling libraries..."
bundle_dependencies() {
_object_path="$1"
"${_otool}" -L "${_object_path}" | \
grep -Eo -- "${_libs_to_bundle}" | \
awk '/^\s+\// { print $1 }' | \
grep -v '@executable_path.*' | \
while read _library_name; do
_library_path="${_library_name}"