Build iOS libs inside the logins framework (#550)

This commit is contained in:
Edouard Oger 2019-01-16 13:52:40 -05:00 коммит произвёл GitHub
Родитель 48e5b39f91
Коммит 1c0231aac9
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -1,8 +1,6 @@
env:
global:
- FRAMEWORK_NAME=ApplicationServices.framework.zip
before_install:
- brew install sqlcipher --with-fts
before_deploy:
- rustup target add aarch64-apple-ios armv7-apple-ios i386-apple-ios x86_64-apple-ios
- cargo install cargo-lipo

Просмотреть файл

@ -191,7 +191,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "cd \"$SRCROOT\"/../ffi\n# We can't use cargo lipo because we can't link to universal libraries :(\n# https://github.com/rust-lang/rust/issues/55235\nLIBS_ARCHS=(\"i386\" \"x86_64\" \"armv7\" \"arm64\")\nIOS_TRIPLES=(\"i386-apple-ios\" \"x86_64-apple-ios\" \"armv7-apple-ios\" \"aarch64-apple-ios\")\nfor i in \"${!LIBS_ARCHS[@]}\"; do\n LIB_ARCH=${LIBS_ARCHS[$i]}\n env -i PATH=$PATH \\\n OPENSSL_STATIC=1 \\\n OPENSSL_DIR=\"$SRCROOT\"/../../../libs/ios/$LIB_ARCH/openssl \\\n SQLCIPHER_LIB_DIR=\"$SRCROOT\"/../../../libs/ios/$LIB_ARCH/sqlcipher/lib \\\n SQLCIPHER_INCLUDE_DIR=\"$SRCROOT\"/../../../libs/ios/$LIB_ARCH/sqlcipher/include \\\n \"$HOME\"/.cargo/bin/cargo build --lib --release --target ${IOS_TRIPLES[$i]}\ndone\nmkdir -p \"$SRCROOT\"/../../../target/universal/release\nlipo -create -output \"$SRCROOT\"/../../../target/universal/release/liblogins_ffi.a \\\n\"$SRCROOT\"/../../../target/i386-apple-ios/release/liblogins_ffi.a \\\n\"$SRCROOT\"/../../../target/x86_64-apple-ios/release/liblogins_ffi.a \\\n\"$SRCROOT\"/../../../target/armv7-apple-ios/release/liblogins_ffi.a \\\n\"$SRCROOT\"/../../../target/aarch64-apple-ios/release/liblogins_ffi.a \\\n";
shellScript = "pushd \"$SRCROOT\"/../../../libs\nenv -i PATH=\"$PATH\" HOME=\"$HOME\" ./build-all.sh ios\npopd\ncd \"$SRCROOT\"/../ffi\n# We can't use cargo lipo because we can't link to universal libraries :(\n# https://github.com/rust-lang/rust/issues/55235\nLIBS_ARCHS=(\"i386\" \"x86_64\" \"armv7\" \"arm64\")\nIOS_TRIPLES=(\"i386-apple-ios\" \"x86_64-apple-ios\" \"armv7-apple-ios\" \"aarch64-apple-ios\")\nfor i in \"${!LIBS_ARCHS[@]}\"; do\n LIB_ARCH=${LIBS_ARCHS[$i]}\n env -i PATH=\"$PATH\" \\\n OPENSSL_STATIC=1 \\\n OPENSSL_DIR=\"$SRCROOT\"/../../../libs/ios/$LIB_ARCH/openssl \\\n SQLCIPHER_LIB_DIR=\"$SRCROOT\"/../../../libs/ios/$LIB_ARCH/sqlcipher/lib \\\n SQLCIPHER_INCLUDE_DIR=\"$SRCROOT\"/../../../libs/ios/$LIB_ARCH/sqlcipher/include \\\n \"$HOME\"/.cargo/bin/cargo build --lib --release --target ${IOS_TRIPLES[$i]}\ndone\nmkdir -p \"$SRCROOT\"/../../../target/universal/release\nlipo -create -output \"$SRCROOT\"/../../../target/universal/release/liblogins_ffi.a \\\n\"$SRCROOT\"/../../../target/i386-apple-ios/release/liblogins_ffi.a \\\n\"$SRCROOT\"/../../../target/x86_64-apple-ios/release/liblogins_ffi.a \\\n\"$SRCROOT\"/../../../target/armv7-apple-ios/release/liblogins_ffi.a \\\n\"$SRCROOT\"/../../../target/aarch64-apple-ios/release/liblogins_ffi.a \\\n";
};
/* End PBXShellScriptBuildPhase section */