From 6c38a80ff0ce7043e2140c257e603400c3b786d6 Mon Sep 17 00:00:00 2001 From: Norman Jarvis Date: Tue, 28 Aug 2018 10:30:35 -0600 Subject: [PATCH] Updated to the latest build of libvcx for the iOS cocoapod and modified the template file for a reduced size libvcx cargo build (#472) * Adding the Cargo.toml changes needed to reduce the size of libraries build with cargo * Removed the commented out strip command. * Put back in the panic unwind rather than panic abort. * Added the newest builds of the iOS cocoapod builds of libvcx to version 0.0.34 and 0.0.35 --- Specs/vcx/0.0.34/vcx.podspec | 2 +- Specs/vcx/0.0.35/vcx.podspec | 2 +- .../android/mac/cargo.toml.reduce.size.txt | 12 ++++++++++++ .../build_scripts/ios/mac/cargo.toml.reduce.size.txt | 4 +--- 4 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 vcx/libvcx/build_scripts/android/mac/cargo.toml.reduce.size.txt diff --git a/Specs/vcx/0.0.34/vcx.podspec b/Specs/vcx/0.0.34/vcx.podspec index 60cb60ed..6781fbf8 100644 --- a/Specs/vcx/0.0.34/vcx.podspec +++ b/Specs/vcx/0.0.34/vcx.podspec @@ -26,7 +26,7 @@ through to the libvcx shared library. s.homepage = 'https://www.evernym.com/' s.license = { :type => 'MIT', :file => 'LICENSE' } s.author = { 'evernym-ios-dev' => 'iosdev@evernym.com' } - s.source = { :http => 'https://repo.corp.evernym.com/filely/ios/vcx.libvcxall_20180823.1708_universal.zip' } + s.source = { :http => 'https://repo.corp.evernym.com/filely/ios/vcx.libvcxall_20180827.1457_universal.zip' } s.ios.deployment_target = '8.0' diff --git a/Specs/vcx/0.0.35/vcx.podspec b/Specs/vcx/0.0.35/vcx.podspec index 5f89f0f6..5f7ee4c9 100644 --- a/Specs/vcx/0.0.35/vcx.podspec +++ b/Specs/vcx/0.0.35/vcx.podspec @@ -26,7 +26,7 @@ through to the libvcx shared library. s.homepage = 'https://www.evernym.com/' s.license = { :type => 'MIT', :file => 'LICENSE' } s.author = { 'evernym-ios-dev' => 'iosdev@evernym.com' } - s.source = { :http => 'https://repo.corp.evernym.com/filely/ios/vcx.libvcxpartial_20180823.1707_universal.zip' } + s.source = { :http => 'https://repo.corp.evernym.com/filely/ios/vcx.libvcxpartial_20180827.1456_universal.zip' } s.ios.deployment_target = '8.0' diff --git a/vcx/libvcx/build_scripts/android/mac/cargo.toml.reduce.size.txt b/vcx/libvcx/build_scripts/android/mac/cargo.toml.reduce.size.txt new file mode 100644 index 00000000..c7f32e3d --- /dev/null +++ b/vcx/libvcx/build_scripts/android/mac/cargo.toml.reduce.size.txt @@ -0,0 +1,12 @@ + +[profile.release] +debug = false +panic = 'unwind' +incremental = false +lto = true +rpath = false +debug-assertions = false +overflow-checks = false +# codegen-units = 1 +# The opt-level "z" is still only available for nightly rustc/rustup builds +# opt-level = "z" diff --git a/vcx/libvcx/build_scripts/ios/mac/cargo.toml.reduce.size.txt b/vcx/libvcx/build_scripts/ios/mac/cargo.toml.reduce.size.txt index d911aaea..c7f32e3d 100644 --- a/vcx/libvcx/build_scripts/ios/mac/cargo.toml.reduce.size.txt +++ b/vcx/libvcx/build_scripts/ios/mac/cargo.toml.reduce.size.txt @@ -1,7 +1,7 @@ [profile.release] debug = false -panic = 'abort' +panic = 'unwind' incremental = false lto = true rpath = false @@ -10,5 +10,3 @@ overflow-checks = false # codegen-units = 1 # The opt-level "z" is still only available for nightly rustc/rustup builds # opt-level = "z" - -# strip -S -x -o ${BUILD_CACHE}/arch_libs/${library}-$arch-stripped.a -r ${BUILD_CACHE}/arch_libs/${library}_${arch}.a