GN: Refactor so that WebRTC compiles with rtc_enable_protobuf=false.
This is a first step towards it. I plan to refactor modules_unittests before continuing with this. BUG=webrtc:6626 NOTRY=True Review-Url: https://codereview.webrtc.org/2626163004 Cr-Commit-Position: refs/heads/master@{#16109}
This commit is contained in:
@ -55,30 +55,6 @@ rtc_static_library("rtc_event_log_impl") {
|
||||
}
|
||||
}
|
||||
|
||||
if (rtc_include_tests) {
|
||||
rtc_source_set("rtc_event_log_tests") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"rtc_event_log/ringbuffer_unittest.cc",
|
||||
"rtc_event_log/rtc_event_log_unittest.cc",
|
||||
"rtc_event_log/rtc_event_log_unittest_helper.cc",
|
||||
]
|
||||
deps = [
|
||||
":rtc_event_log_impl",
|
||||
":rtc_event_log_parser",
|
||||
"../call",
|
||||
"../modules/rtp_rtcp",
|
||||
"../system_wrappers:metrics_default",
|
||||
"//testing/gmock",
|
||||
"//testing/gtest",
|
||||
]
|
||||
if (!build_with_chromium && is_clang) {
|
||||
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
||||
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (rtc_enable_protobuf) {
|
||||
proto_library("rtc_event_log_proto") {
|
||||
sources = [
|
||||
@ -86,9 +62,7 @@ if (rtc_enable_protobuf) {
|
||||
]
|
||||
proto_out_dir = "webrtc/logging/rtc_event_log"
|
||||
}
|
||||
}
|
||||
|
||||
if (rtc_enable_protobuf) {
|
||||
rtc_static_library("rtc_event_log_parser") {
|
||||
sources = [
|
||||
"rtc_event_log/rtc_event_log_parser.cc",
|
||||
@ -105,4 +79,28 @@ if (rtc_enable_protobuf) {
|
||||
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
||||
}
|
||||
}
|
||||
|
||||
if (rtc_include_tests) {
|
||||
rtc_source_set("rtc_event_log_tests") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"rtc_event_log/ringbuffer_unittest.cc",
|
||||
"rtc_event_log/rtc_event_log_unittest.cc",
|
||||
"rtc_event_log/rtc_event_log_unittest_helper.cc",
|
||||
]
|
||||
deps = [
|
||||
":rtc_event_log_impl",
|
||||
":rtc_event_log_parser",
|
||||
"../call",
|
||||
"../modules/rtp_rtcp",
|
||||
"../system_wrappers:metrics_default",
|
||||
"//testing/gmock",
|
||||
"//testing/gtest",
|
||||
]
|
||||
if (!build_with_chromium && is_clang) {
|
||||
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
||||
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user