From 411fcbbeb9a7df8c6ab9c561178c6b56f2798dfb Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Sat, 8 Jun 2024 13:54:03 +0200 Subject: [PATCH] ios and windows changes --- scripts/ios/gen_framework.sh | 15 +++++++++++++++ windows/CMakeLists.txt | 1 + 2 files changed, 16 insertions(+) diff --git a/scripts/ios/gen_framework.sh b/scripts/ios/gen_framework.sh index 74fc67842..950a7afe5 100755 --- a/scripts/ios/gen_framework.sh +++ b/scripts/ios/gen_framework.sh @@ -14,3 +14,18 @@ cd $FRWK_DIR # go to iOS framework dir lipo -create $DYLIB_LINK_PATH -output MoneroWallet echo "Generated ${FRWK_DIR}" +# also generate for wownero +IOS_DIR="$(pwd)/../../ios" +DYLIB_NAME="wownero_libwallet2_api_c.dylib" +DYLIB_LINK_PATH="${IOS_DIR}/${DYLIB_NAME}" +FRWK_DIR="${IOS_DIR}/WowneroWallet.framework" + +if [ ! -f $DYLIB_LINK_PATH ]; then + echo "Dylib is not found by the link: ${DYLIB_LINK_PATH}" + exit 0 +fi + +cd $FRWK_DIR # go to iOS framework dir +lipo -create $DYLIB_LINK_PATH -output WowneroWallet + +echo "Generated ${FRWK_DIR}" \ No newline at end of file diff --git a/windows/CMakeLists.txt b/windows/CMakeLists.txt index fcb54ad0a..4bb35b659 100644 --- a/windows/CMakeLists.txt +++ b/windows/CMakeLists.txt @@ -82,6 +82,7 @@ install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" COMPONENT Runtime) install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../scripts/monero_c/release/monero/x86_64-w64-mingw32_libwallet2_api_c.dll" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" RENAME "monero_libwallet2_api_c.dll" +install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../scripts/monero_c/release/wownero/x86_64-w64-mingw32_libwallet2_api_c.dll" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" RENAME "wownero_libwallet2_api_c.dll" COMPONENT Runtime) install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../scripts/monero_c/release/monero/x86_64-w64-mingw32_libgcc_s_seh-1.dll" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" RENAME "libgcc_s_seh-1.dll"