Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1664)

Unified Diff: webrtc/BUILD.gn

Issue 2041743003: GN: Add SDK tests to rtc_unittests. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Final fixes Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/base/BUILD.gn » ('j') | webrtc/base/BUILD.gn » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/BUILD.gn
diff --git a/webrtc/BUILD.gn b/webrtc/BUILD.gn
index 0c6db74022a01dea2507a6c066a3a1257ba8c5e7..f48331ec5030bda3455f4b2db31f0f7907351e5c 100644
--- a/webrtc/BUILD.gn
+++ b/webrtc/BUILD.gn
@@ -225,6 +225,13 @@ config("common_config") {
}
}
+config("common_objc") {
+ cflags = [ "-Wobjc-missing-property-synthesis" ]
+
+ precompiled_header = "sdk/objc/WebRTC-Prefix.pch"
+ precompiled_source = "sdk/objc/WebRTC-Prefix.pch"
+}
+
source_set("webrtc") {
sources = [
"call.h",
@@ -570,5 +577,28 @@ if (!build_with_chromium) {
if (is_android) {
deps += [ "//testing/android/native_test:native_test_support" ]
}
+
+ if (is_ios || (is_mac && mac_deployment_target == "10.7")) {
+ deps += [
+ "sdk:rtc_sdk_peerconnection_objc",
+ "system_wrappers:system_wrappers_default",
+ ]
+ sources += [
+ "sdk/objc/Framework/UnitTests/RTCConfigurationTest.mm",
+ "sdk/objc/Framework/UnitTests/RTCDataChannelConfigurationTest.mm",
+ "sdk/objc/Framework/UnitTests/RTCIceCandidateTest.mm",
+ "sdk/objc/Framework/UnitTests/RTCIceServerTest.mm",
+ "sdk/objc/Framework/UnitTests/RTCMediaConstraintsTest.mm",
+ "sdk/objc/Framework/UnitTests/RTCSessionDescriptionTest.mm",
+ ]
+
+ # TODO(tkchin): Cleanup this warning.
+ cflags = [ "-Wno-objc-property-no-attribute" ]
+
+ # |-ObjC| flag needed to make sure category method implementations
+ # are included:
+ # https://developer.apple.com/library/mac/qa/qa1490/_index.html
+ ldflags = [ "-ObjC" ]
+ }
}
}
« no previous file with comments | « no previous file | webrtc/base/BUILD.gn » ('j') | webrtc/base/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698