GN: Enable rtc_common_config for more targets.

In the migration to GN templates, some targets got the whole
rtc_common_config removed, which can have unpredicted consequences
in terms of different code behavior due to defines not being set
as expected etc.
It's better to enable this config and only disable the warnings
that fails the build.

BUG=webrtc:6306,webrtc:6307,webrtc:6308
NOTRY=True

Review-Url: https://codereview.webrtc.org/2347263002
Cr-Commit-Position: refs/heads/master@{#14280}
This commit is contained in:
kjellander
2016-09-18 08:12:29 -07:00
committed by Commit bot
parent 7a0f2c55f5
commit 4a9abad208
3 changed files with 30 additions and 16 deletions

View File

@ -169,6 +169,15 @@ rtc_source_set("webrtc_h264") {
}
if (is_ios) {
config("webrtc_h264_video_toolbox_warnings_config") {
if (is_clang) {
# TODO(tkchin): Make webrtc_h264_video_toolbox compile with the standard set
# of warnings.
# See https://bugs.chromium.org/p/webrtc/issues/detail?id=6307
cflags = [ "-Wno-thread-safety-analysis" ]
}
}
rtc_source_set("webrtc_h264_video_toolbox") {
sources = [
"codecs/h264/h264_video_toolbox_decoder.cc",
@ -180,15 +189,11 @@ if (is_ios) {
]
configs += [
":webrtc_h264_video_toolbox_warnings_config",
"../..:common_objc",
"//build/config/compiler:enable_arc",
]
# TODO(hbos): Make webrtc_h264_video_toolbox compile with the standard set
# of warnings.
# See https://bugs.chromium.org/p/webrtc/issues/detail?id=6307
suppressed_configs += [ rtc_common_config ]
deps = [
"../../sdk:rtc_sdk_common_objc",
]