0
0
mirror of https://github.com/signalapp/libsignal.git synced 2024-09-19 19:42:19 +02:00

Swift: preserve files needed for the Rust build in podspec

This commit is contained in:
Jordan Rose 2020-11-12 11:03:28 -08:00
parent 9dc5f615ec
commit 0908fa5939

View File

@ -18,7 +18,15 @@ Pod::Spec.new do |s|
s.osx.deployment_target = '10.9'
s.source_files = 'swift/Sources/**/*.swift'
s.preserve_paths = ['rust/*', 'Cargo.toml', 'Cargo.lock', 'swift/Sources/SignalFfi', 'bin/*']
s.preserve_paths = [
'bin/*',
'Cargo.toml',
'Cargo.lock',
'rust-toolchain',
'rust/*',
'swift/*.sh',
'swift/Sources/SignalFfi',
]
s.pod_target_xcconfig = {
'CARGO_BUILD_TARGET_DIR' => '$(DERIVED_FILE_DIR)/libsignal-ffi',