1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

copy external TBB dylib to app package

This commit is contained in:
Andrey Filipenkov 2021-12-02 13:53:54 +03:00
parent fb32dd0ffc
commit 8319c30695
2 changed files with 6 additions and 3 deletions

View File

@ -138,3 +138,6 @@ vcmi_set_output_dir(Nullkiller "AI")
enable_pch(Nullkiller)
install(TARGETS Nullkiller RUNTIME DESTINATION ${AI_LIB_DIR} LIBRARY DESTINATION ${AI_LIB_DIR} OPTIONAL)
if(APPLE_IOS)
install(IMPORTED_RUNTIME_ARTIFACTS TBB::tbb LIBRARY DESTINATION ${LIB_DIR} OPTIONAL) # CMake 3.21+
endif()

View File

@ -1,10 +1,10 @@
#!/usr/bin/env bash
if [[ "$PLATFORM_NAME" != "iphoneos" ]]; then
if [[ "$PLATFORM_NAME" == *simulator* || -z "$EXPANDED_CODE_SIGN_IDENTITY" ]]; then
exit 0
fi
echo 'codesign dylibs'
for lib in $(find "$CODESIGNING_FOLDER_PATH/Frameworks" -iname '*.dylib'); do
codesign --force --timestamp=none --sign "$EXPANDED_CODE_SIGN_IDENTITY" "$lib"
for lib in $(find "$CODESIGNING_FOLDER_PATH/Frameworks" -type f -iname '*.dylib'); do
codesign --verbose=4 --force --timestamp=none --sign "$EXPANDED_CODE_SIGN_IDENTITY" "$lib"
done