| Index: webrtc/BUILD.gn
|
| diff --git a/webrtc/BUILD.gn b/webrtc/BUILD.gn
|
| index 582937eb25ff5a34de6389d180e65435340924de..a3793f5ebb09ef241bc3c958e0a2f483ce8e8dc8 100644
|
| --- a/webrtc/BUILD.gn
|
| +++ b/webrtc/BUILD.gn
|
| @@ -11,6 +11,7 @@
|
| import("//build/config/crypto.gni")
|
| import("//build/config/linux/pkg_config.gni")
|
| import("build/webrtc.gni")
|
| +import("//third_party/protobuf/proto_library.gni")
|
|
|
| # Contains the defines and includes in common.gypi that are duplicated both as
|
| # target_defaults and direct_dependent_settings.
|
| @@ -175,6 +176,7 @@ source_set("webrtc") {
|
| "transport.h",
|
| ]
|
|
|
| + defines = []
|
| configs += [ ":common_config" ]
|
| public_configs = [ ":common_inherited_config" ]
|
|
|
| @@ -206,6 +208,11 @@ source_set("webrtc") {
|
| "modules/video_render",
|
| ]
|
| }
|
| +
|
| + if (rtc_enable_protobuf) {
|
| + defines += [ "ENABLE_RTC_EVENT_LOG" ]
|
| + deps += [ ":rtc_event_log_proto" ]
|
| + }
|
| }
|
|
|
| if (!build_with_chromium) {
|
| @@ -239,3 +246,37 @@ source_set("gtest_prod") {
|
| "test/testsupport/gtest_prod_util.h",
|
| ]
|
| }
|
| +
|
| +if (rtc_enable_protobuf) {
|
| + proto_library("rtc_event_log_proto") {
|
| + sources = [
|
| + "video/rtc_event_log.proto",
|
| + ]
|
| + proto_out_dir = "webrtc/video"
|
| + }
|
| +}
|
| +
|
| +source_set("rtc_event_log") {
|
| + sources = [
|
| + "video/rtc_event_log.cc",
|
| + "video/rtc_event_log.h",
|
| + ]
|
| +
|
| + defines = []
|
| + configs += [ ":common_config" ]
|
| + public_configs = [ ":common_inherited_config" ]
|
| +
|
| + deps = [
|
| + ":webrtc_common",
|
| + ]
|
| +
|
| + if (rtc_enable_protobuf) {
|
| + defines += [ "ENABLE_RTC_EVENT_LOG" ]
|
| + deps += [ ":rtc_event_log_proto" ]
|
| + }
|
| + if (is_clang) {
|
| + # Suppress warnings from Chrome's Clang plugins.
|
| + # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
| + configs -= [ "//build/config/clang:find_bad_constructs" ]
|
| + }
|
| +}
|
|
|