| OLD | NEW |
| 1 # Copyright 2016 The WebRTC project authors. All Rights Reserved. | 1 # Copyright 2016 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
| 4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
| 5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 import("../build/webrtc.gni") | 9 import("../build/webrtc.gni") |
| 10 if (is_mac) { | 10 if (is_mac) { |
| 11 import("//build/config/mac/mac_sdk.gni") | 11 import("//build/config/mac/mac_sdk.gni") |
| 12 import("//build/config/mac/rules.gni") | 12 import("//build/config/mac/rules.gni") |
| 13 } | 13 } |
| 14 if (is_ios) { | 14 if (is_ios) { |
| 15 import("//build/config/ios/rules.gni") | 15 import("//build/config/ios/rules.gni") |
| 16 } | 16 } |
| 17 | 17 |
| 18 if (is_ios || (is_mac && mac_deployment_target == "10.7")) { | 18 if (is_ios || (is_mac && mac_deployment_target == "10.7")) { |
| 19 config("rtc_sdk_common_objc_config") { | 19 config("rtc_sdk_common_objc_config") { |
| 20 include_dirs = [ | 20 include_dirs = [ |
| 21 "objc/Framework/Classes", | 21 "objc/Framework/Classes", |
| 22 "objc/Framework/Headers", | 22 "objc/Framework/Headers", |
| 23 ] | 23 ] |
| 24 } | 24 } |
| 25 | 25 |
| 26 rtc_source_set("rtc_sdk_common_objc") { | 26 rtc_static_library("rtc_sdk_common_objc") { |
| 27 deps = [ | 27 deps = [ |
| 28 "../base:rtc_base", | 28 "../base:rtc_base", |
| 29 ] | 29 ] |
| 30 configs += [ "//build/config/compiler:enable_arc" ] | 30 configs += [ "//build/config/compiler:enable_arc" ] |
| 31 public_configs = [ ":rtc_sdk_common_objc_config" ] | 31 public_configs = [ ":rtc_sdk_common_objc_config" ] |
| 32 sources = [ | 32 sources = [ |
| 33 "objc/Framework/Classes/NSString+StdString.h", | 33 "objc/Framework/Classes/NSString+StdString.h", |
| 34 "objc/Framework/Classes/NSString+StdString.mm", | 34 "objc/Framework/Classes/NSString+StdString.mm", |
| 35 "objc/Framework/Classes/RTCDispatcher.m", | 35 "objc/Framework/Classes/RTCDispatcher.m", |
| 36 "objc/Framework/Classes/RTCFieldTrials.mm", | 36 "objc/Framework/Classes/RTCFieldTrials.mm", |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 config("rtc_sdk_peerconnection_objc_warnings_config") { | 71 config("rtc_sdk_peerconnection_objc_warnings_config") { |
| 72 if (is_clang) { | 72 if (is_clang) { |
| 73 # TODO(tkchin): Make rtc_sdk_peerconnection_objc compile with the standard | 73 # TODO(tkchin): Make rtc_sdk_peerconnection_objc compile with the standard |
| 74 # set of warnings. | 74 # set of warnings. |
| 75 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6308 | 75 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6308 |
| 76 cflags = [ "-Wno-thread-safety-analysis" ] | 76 cflags = [ "-Wno-thread-safety-analysis" ] |
| 77 } | 77 } |
| 78 } | 78 } |
| 79 | 79 |
| 80 rtc_source_set("rtc_sdk_peerconnection_objc") { | 80 rtc_static_library("rtc_sdk_peerconnection_objc") { |
| 81 sources = [ | 81 sources = [ |
| 82 "objc/Framework/Classes/RTCAVFoundationVideoSource+Private.h", | 82 "objc/Framework/Classes/RTCAVFoundationVideoSource+Private.h", |
| 83 "objc/Framework/Classes/RTCAVFoundationVideoSource.mm", | 83 "objc/Framework/Classes/RTCAVFoundationVideoSource.mm", |
| 84 "objc/Framework/Classes/RTCAudioSource+Private.h", | 84 "objc/Framework/Classes/RTCAudioSource+Private.h", |
| 85 "objc/Framework/Classes/RTCAudioSource.mm", | 85 "objc/Framework/Classes/RTCAudioSource.mm", |
| 86 "objc/Framework/Classes/RTCAudioTrack+Private.h", | 86 "objc/Framework/Classes/RTCAudioTrack+Private.h", |
| 87 "objc/Framework/Classes/RTCAudioTrack.mm", | 87 "objc/Framework/Classes/RTCAudioTrack.mm", |
| 88 "objc/Framework/Classes/RTCConfiguration+Private.h", | 88 "objc/Framework/Classes/RTCConfiguration+Private.h", |
| 89 "objc/Framework/Classes/RTCConfiguration.mm", | 89 "objc/Framework/Classes/RTCConfiguration.mm", |
| 90 "objc/Framework/Classes/RTCDataChannel+Private.h", | 90 "objc/Framework/Classes/RTCDataChannel+Private.h", |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 public_configs = [ ":rtc_sdk_common_objc_config" ] | 333 public_configs = [ ":rtc_sdk_common_objc_config" ] |
| 334 | 334 |
| 335 if (is_clang) { | 335 if (is_clang) { |
| 336 # Suppress warnings from the Chromium Clang plugins. | 336 # Suppress warnings from the Chromium Clang plugins. |
| 337 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 337 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 338 configs -= [ "//build/config/clang:find_bad_constructs" ] | 338 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 339 } | 339 } |
| 340 } | 340 } |
| 341 } | 341 } |
| 342 } | 342 } |
| OLD | NEW |