Index: webrtc/webrtc.gni |
diff --git a/webrtc/webrtc.gni b/webrtc/webrtc.gni |
index e6d746a49ea0df20adab7850a18ee875b7fe0afe..c244bb548a21a9af66ae5a4506d3dc167bdacb8c 100644 |
--- a/webrtc/webrtc.gni |
+++ b/webrtc/webrtc.gni |
@@ -13,6 +13,7 @@ import("//build/config/sanitizers/sanitizers.gni") |
import("//build/config/ui.gni") |
import("//build_overrides/build.gni") |
import("//testing/test.gni") |
+import("//build/config/ios/rules.gni") |
kjellander_webrtc
2017/02/14 09:57:26
Please put this inside a
if (is_ios) {
}
block as
|
declare_args() { |
# Disable this to avoid building the Opus audio codec. |
@@ -328,3 +329,29 @@ template("rtc_shared_library") { |
} |
} |
} |
+ |
+if (is_ios) { |
+ set_defaults("rtc_ios_xctest_test") { |
+ configs = rtc_add_configs |
+ suppressed_configs = [] |
+ } |
+ |
+ template("rtc_ios_xctest_test") { |
+ ios_xctest_test(target_name) { |
+ forward_variables_from(invoker, |
+ "*", |
+ [ |
+ "configs", |
+ "public_configs", |
+ "suppressed_configs", |
+ ]) |
+ configs += invoker.configs |
+ configs -= rtc_remove_configs |
+ configs -= invoker.suppressed_configs |
+ public_configs = [ rtc_common_inherited_config ] |
+ if (defined(invoker.public_configs)) { |
+ public_configs += invoker.public_configs |
+ } |
+ } |
+ } |
+} |