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:
Anders Carlsson
2018-12-10 14:04:12 +01:00
committed by Commit Bot
parent 1c7f5f63d1
commit 24d8ec3dbb
2 changed files with 6 additions and 1 deletions

View File

@ -579,6 +579,11 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
libs = [ "AppKit.framework" ]
ldflags = [
"-rpath",
"@executable_path/../Frameworks",
]
deps = [
":AppRTCMobile_lib",
"../sdk:mac_framework_bundle",