OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 proto_library("protocol") { | 7 # This must be a component for the dependency structure we have now, but the |
| 8 # proto_library generates a source set. Link those into a component. |
| 9 component("protocol") { |
| 10 public_deps = [ |
| 11 ":protocol_internal", |
| 12 ] |
| 13 } |
| 14 |
| 15 proto_library("protocol_internal") { |
| 16 visibility = [ ":protocol" ] |
| 17 |
8 sources = [ | 18 sources = [ |
9 "app_list_specifics.proto", | 19 "app_list_specifics.proto", |
10 "app_notification_specifics.proto", | 20 "app_notification_specifics.proto", |
11 "app_setting_specifics.proto", | 21 "app_setting_specifics.proto", |
12 "app_specifics.proto", | 22 "app_specifics.proto", |
13 "article_specifics.proto", | 23 "article_specifics.proto", |
14 "attachments.proto", | 24 "attachments.proto", |
15 "autofill_specifics.proto", | 25 "autofill_specifics.proto", |
16 "bookmark_specifics.proto", | 26 "bookmark_specifics.proto", |
17 "client_commands.proto", | 27 "client_commands.proto", |
(...skipping 30 matching lines...) Expand all Loading... |
48 "wifi_credential_specifics.proto", | 58 "wifi_credential_specifics.proto", |
49 ] | 59 ] |
50 | 60 |
51 cc_generator_options = "dllexport_decl=SYNC_PROTO_EXPORT:" | 61 cc_generator_options = "dllexport_decl=SYNC_PROTO_EXPORT:" |
52 cc_include = "sync/protocol/sync_proto_export.h" | 62 cc_include = "sync/protocol/sync_proto_export.h" |
53 | 63 |
54 defines = [ "SYNC_PROTO_IMPLEMENTATION" ] | 64 defines = [ "SYNC_PROTO_IMPLEMENTATION" ] |
55 | 65 |
56 extra_configs = [ "//build/config/compiler:wexit_time_destructors" ] | 66 extra_configs = [ "//build/config/compiler:wexit_time_destructors" ] |
57 } | 67 } |
OLD | NEW |