AppRTCMobile links against framework target.

BUG=None

Review-Url: https://codereview.webrtc.org/2656833002
Cr-Commit-Position: refs/heads/master@{#16287}
This commit is contained in:
kthelgason 2017-01-26 01:14:04 -08:00 committed by Commit bot
parent 8e775e16eb
commit d3adbfb13c
2 changed files with 18 additions and 1 deletions

View File

@ -300,6 +300,7 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
deps = [
":AppRTCMobile_ios_bundle_data",
":AppRTCMobile_ios_frameworks",
":AppRTCMobile_lib",
]
@ -308,6 +309,18 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
}
}
bundle_data("AppRTCMobile_ios_frameworks") {
public_deps = [
"//webrtc/sdk:rtc_sdk_framework_objc+link",
]
sources = [
"$root_out_dir/WebRTC.framework",
]
outputs = [
"{{bundle_resources_dir}}/Frameworks/{{source_file_part}}",
]
}
bundle_data("AppRTCMobile_ios_bundle_data") {
sources = [
"objc/AppRTCMobile/ios/resources/Roboto-Regular.ttf",

View File

@ -317,7 +317,11 @@ if (is_ios || is_mac) {
public_headers += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ]
}
ldflags = [ "-all_load" ]
ldflags = [
"-all_load",
"-install_name",
"@rpath/$output_name.framework/$output_name",
]
deps = [
":rtc_sdk_peerconnection_objc",