Set @rpath in AppRTCMobile for macOS.
Without this, the application can't find the WebRTC dynamic library when started from the built app bundle (debugging in Xcode worked). Bug: webrtc:10111 Change-Id: I1610948aae070fe9938e873ce073e05ba7255c7d Reviewed-on: https://webrtc-review.googlesource.com/c/113805 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Anders Carlsson <andersc@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25949}
This commit is contained in:

committed by
Commit Bot

parent
1c7f5f63d1
commit
24d8ec3dbb
@ -579,6 +579,11 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
|
|||||||
|
|
||||||
libs = [ "AppKit.framework" ]
|
libs = [ "AppKit.framework" ]
|
||||||
|
|
||||||
|
ldflags = [
|
||||||
|
"-rpath",
|
||||||
|
"@executable_path/../Frameworks",
|
||||||
|
]
|
||||||
|
|
||||||
deps = [
|
deps = [
|
||||||
":AppRTCMobile_lib",
|
":AppRTCMobile_lib",
|
||||||
"../sdk:mac_framework_bundle",
|
"../sdk:mac_framework_bundle",
|
||||||
|
@ -1494,7 +1494,7 @@ if (is_ios || is_mac) {
|
|||||||
"$root_build_dir/WebRTC.framework",
|
"$root_build_dir/WebRTC.framework",
|
||||||
]
|
]
|
||||||
outputs = [
|
outputs = [
|
||||||
"{{bundle_resources_dir}}/Frameworks/{{source_file_part}}",
|
"{{bundle_contents_dir}}/Frameworks/{{source_file_part}}",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user