| OLD | NEW | 
|---|
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be | 
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. | 
| 4 | 4 | 
| 5 import("//third_party/protobuf/proto_library.gni") | 5 import("//third_party/protobuf/proto_library.gni") | 
| 6 | 6 | 
| 7 group("proto") { | 7 group("proto") { | 
| 8   public_deps = [ | 8   public_deps = [ | 
| 9     ":blimp_proto", | 9     ":blimp_proto", | 
| 10     "//third_party/protobuf:protobuf_lite", | 10     "//third_party/protobuf:protobuf_lite", | 
| 11   ] | 11   ] | 
| 12 } | 12 } | 
| 13 | 13 | 
| 14 component("blimp_proto") { | 14 component("blimp_proto") { | 
| 15   # Only expose the target to the "proto" group. | 15   # Only expose the target to the "proto" group. | 
| 16   visibility = [ ":proto" ] | 16   visibility = [ ":proto" ] | 
| 17 | 17 | 
| 18   public_deps = [ | 18   public_deps = [ | 
| 19     ":proto_internal", | 19     ":proto_internal", | 
| 20   ] | 20   ] | 
| 21 } | 21 } | 
| 22 | 22 | 
| 23 proto_library("proto_internal") { | 23 proto_library("proto_internal") { | 
| 24   # Only expose the target to the "blimp_proto" target. | 24   # Only expose the target to the "blimp_proto" target. | 
| 25   visibility = [ ":blimp_proto" ] | 25   visibility = [ ":blimp_proto" ] | 
| 26 | 26 | 
| 27   sources = [ | 27   sources = [ | 
| 28     "blimp_message.proto", | 28     "blimp_message.proto", | 
| 29     "compositor.proto", | 29     "compositor.proto", | 
|  | 30     "ime.proto", | 
| 30     "input.proto", | 31     "input.proto", | 
| 31     "navigation.proto", | 32     "navigation.proto", | 
| 32     "protocol_control.proto", | 33     "protocol_control.proto", | 
| 33     "render_widget.proto", | 34     "render_widget.proto", | 
| 34     "tab_control.proto", | 35     "tab_control.proto", | 
| 35   ] | 36   ] | 
| 36 | 37 | 
| 37   cc_generator_options = "dllexport_decl=BLIMP_PROTO_EXPORT:" | 38   cc_generator_options = "dllexport_decl=BLIMP_PROTO_EXPORT:" | 
| 38   cc_include = "blimp/common/proto/blimp_proto_export.h" | 39   cc_include = "blimp/common/proto/blimp_proto_export.h" | 
| 39 | 40 | 
| 40   defines = [ "BLIMP_PROTO_IMPLEMENTATION" ] | 41   defines = [ "BLIMP_PROTO_IMPLEMENTATION" ] | 
| 41 | 42 | 
| 42   # Warn if clang creates exit destructors | 43   # Warn if clang creates exit destructors | 
| 43   extra_configs = [ "//build/config/compiler:wexit_time_destructors" ] | 44   extra_configs = [ "//build/config/compiler:wexit_time_destructors" ] | 
| 44 } | 45 } | 
| OLD | NEW | 
|---|