mirror of
https://github.com/signalapp/libsignal.git
synced 2024-09-19 19:42:19 +02:00
[CocoaPod] Properly quote path to libsignal_ffi.a in build script
Also, if the library somehow isn't built when used as a non-local CocoaPods dependency, don't suggest running swift/build_ffi.sh; CocoaPods will have removed it already. Re-running `pod install` is more likely to help, though in practice something's probably gone wrong in the configuration.
This commit is contained in:
parent
5ef8ddc3be
commit
48f3fcce1e
@ -46,9 +46,13 @@ Pod::Spec.new do |s|
|
||||
{ :name => 'Check libsignal-ffi',
|
||||
:execution_position => :before_compile,
|
||||
:script => %q(
|
||||
test -e ${LIBSIGNAL_FFI_LIB_IF_NEEDED} && exit 0
|
||||
echo 'error: libsignal_ffi.a not built; run the following to build it:' >&2
|
||||
echo "CARGO_BUILD_TARGET=${CARGO_BUILD_TARGET} \"${PODS_TARGET_SRCROOT}/swift/build_ffi.sh\" --release" >&2
|
||||
test -e "${LIBSIGNAL_FFI_LIB_IF_NEEDED}" && exit 0
|
||||
if test -e "${PODS_TARGET_SRCROOT}/swift/build_ffi.sh"; then
|
||||
echo 'error: libsignal_ffi.a not built; run the following to build it:' >&2
|
||||
echo "CARGO_BUILD_TARGET=${CARGO_BUILD_TARGET} \"${PODS_TARGET_SRCROOT}/swift/build_ffi.sh\" --release" >&2
|
||||
else
|
||||
echo 'error: libsignal_ffi.a not built; try re-running `pod install`' >&2
|
||||
fi
|
||||
false
|
||||
),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user