| Index: webrtc/examples/BUILD.gn
|
| diff --git a/webrtc/examples/BUILD.gn b/webrtc/examples/BUILD.gn
|
| index dc9e24ef7cc248ca0ae55cd3add3deb5560ba70a..58ae8a4c1afd5943b2159b21c333b0a19aa31b1b 100644
|
| --- a/webrtc/examples/BUILD.gn
|
| +++ b/webrtc/examples/BUILD.gn
|
| @@ -234,7 +234,7 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
|
| }
|
|
|
| if (is_ios) {
|
| - ios_app_bundle("AppRTCMobile") {
|
| + rtc_static_library("AppRTCMobile_lib") {
|
| sources = [
|
| "objc/AppRTCMobile/ios/ARDAppDelegate.m",
|
| "objc/AppRTCMobile/ios/ARDMainView.h",
|
| @@ -257,23 +257,32 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
|
| "objc/AppRTCMobile/ios/AppRTCMobile-Prefix.pch",
|
| "objc/AppRTCMobile/ios/UIImage+ARDUtilities.h",
|
| "objc/AppRTCMobile/ios/UIImage+ARDUtilities.m",
|
| - "objc/AppRTCMobile/ios/main.m",
|
| ]
|
| -
|
| - info_plist = "objc/AppRTCMobile/ios/Info.plist"
|
| -
|
| configs += [
|
| - "..:common_config",
|
| "//build/config/compiler:enable_arc",
|
| ":warnings_config",
|
| ]
|
| - public_configs = [ "..:common_inherited_config" ]
|
|
|
| deps = [
|
| - ":AppRTCMobile_ios_bundle_data",
|
| ":apprtc_common",
|
| ":apprtc_signaling",
|
| ]
|
| + }
|
| +
|
| + ios_app_bundle("AppRTCMobile") {
|
| + sources = [
|
| + "objc/AppRTCMobile/ios/main.m",
|
| + ]
|
| +
|
| + info_plist = "objc/AppRTCMobile/ios/Info.plist"
|
| +
|
| + configs += [ "..:common_config" ]
|
| + public_configs = [ "..:common_inherited_config" ]
|
| +
|
| + deps = [
|
| + ":AppRTCMobile_ios_bundle_data",
|
| + ":AppRTCMobile_lib",
|
| + ]
|
|
|
| if (target_cpu == "x86") {
|
| deps += [ "//testing/iossim:iossim" ]
|
| @@ -306,7 +315,7 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
|
| }
|
|
|
| if (is_mac) {
|
| - rtc_static_library("AppRTCMobile_app") {
|
| + rtc_static_library("AppRTCMobile_lib") {
|
| sources = [
|
| "objc/AppRTCMobile/mac/APPRTCAppDelegate.h",
|
| "objc/AppRTCMobile/mac/APPRTCAppDelegate.m",
|
| @@ -339,7 +348,7 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
|
| libs = [ "AppKit.framework" ]
|
|
|
| deps = [
|
| - ":AppRTCMobile_app",
|
| + ":AppRTCMobile_lib",
|
| ]
|
| }
|
| }
|
| @@ -396,7 +405,9 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
|
| }
|
|
|
| rtc_test("apprtcmobile_tests") {
|
| + include_dirs = [ "objc/AppRTCMobile/ios" ]
|
| deps = [
|
| + ":AppRTCMobile_lib",
|
| ":apprtc_signaling",
|
| "//testing/gtest",
|
| "//third_party/ocmock",
|
| @@ -404,6 +415,7 @@ if (is_ios || (is_mac && target_cpu != "x86")) {
|
|
|
| sources = [
|
| "objc/AppRTCMobile/tests/ARDAppClientTest.mm",
|
| + "objc/AppRTCMobile/tests/ARDSettingsModelTests.mm",
|
| ]
|
|
|
| if (is_ios) {
|
|
|