| Index: webrtc/BUILD.gn
 | 
| diff --git a/webrtc/BUILD.gn b/webrtc/BUILD.gn
 | 
| index 1035b79f1ada0708ccecddbf83865d18830f83c4..a6b1c672f8c5017425c5145b2a01a76b2dd8395e 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.
 | 
| @@ -176,6 +177,7 @@ source_set("webrtc") {
 | 
|      "transport.h",
 | 
|    ]
 | 
|  
 | 
| +  defines = []
 | 
|    configs += [ ":common_config" ]
 | 
|    public_configs = [ ":common_inherited_config" ]
 | 
|  
 | 
| @@ -207,6 +209,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) {
 | 
| @@ -240,3 +247,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" ]
 | 
| +  }
 | 
| +}
 | 
| 
 |