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 ":helium_service", |
10 "//third_party/protobuf:protobuf_lite", | 11 "//third_party/protobuf:protobuf_lite", |
11 ] | 12 ] |
12 } | 13 } |
13 | 14 |
14 component("blimp_proto") { | 15 component("blimp_proto") { |
15 # Only expose the target to the "proto" group. | 16 # Only expose the target to the "proto" group. |
16 visibility = [ ":proto" ] | 17 visibility = [ ":proto" ] |
17 | 18 |
18 public_deps = [ | 19 public_deps = [ |
| 20 ":helium_service", |
19 ":proto_internal", | 21 ":proto_internal", |
20 ] | 22 ] |
21 } | 23 } |
22 | 24 |
| 25 proto_library("helium_service") { |
| 26 sources = [ |
| 27 "helium_service.proto", |
| 28 ] |
| 29 |
| 30 generator_plugin_label = "//third_party/grpc:grpc_cpp_plugin" |
| 31 generator_plugin_suffix = ".grpc.pb" |
| 32 |
| 33 deps = [ |
| 34 "//third_party/grpc:grpc++_unsecure", |
| 35 ] |
| 36 } |
| 37 |
23 proto_library("proto_internal") { | 38 proto_library("proto_internal") { |
24 # Only expose the target to the "blimp_proto" target. | 39 # Only expose the target to the "blimp_proto" target. |
25 visibility = [ ":blimp_proto" ] | 40 visibility = [ ":blimp_proto" ] |
26 | 41 |
27 sources = [ | 42 sources = [ |
28 "blimp_message.proto", | 43 "blimp_message.proto", |
29 "blob_cache.proto", | 44 "blob_cache.proto", |
30 "blob_channel.proto", | 45 "blob_channel.proto", |
31 "common.proto", | 46 "common.proto", |
32 "compositor.proto", | 47 "compositor.proto", |
(...skipping 10 matching lines...) Expand all Loading... |
43 | 58 |
44 cc_generator_options = "dllexport_decl=BLIMP_PROTO_EXPORT:" | 59 cc_generator_options = "dllexport_decl=BLIMP_PROTO_EXPORT:" |
45 cc_include = "blimp/common/proto/blimp_proto_export.h" | 60 cc_include = "blimp/common/proto/blimp_proto_export.h" |
46 component_build_force_source_set = true | 61 component_build_force_source_set = true |
47 | 62 |
48 defines = [ "BLIMP_PROTO_IMPLEMENTATION" ] | 63 defines = [ "BLIMP_PROTO_IMPLEMENTATION" ] |
49 | 64 |
50 # Warn if clang creates exit destructors | 65 # Warn if clang creates exit destructors |
51 extra_configs = [ "//build/config/compiler:wexit_time_destructors" ] | 66 extra_configs = [ "//build/config/compiler:wexit_time_destructors" ] |
52 } | 67 } |
OLD | NEW |