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 import("protocol_sources.gni") | 6 import("protocol_sources.gni") |
7 | 7 |
8 # This must be a component for the dependency structure we have now, but the | 8 proto_library("protocol") { |
9 # proto_library generates a source set. Link those into a component. | |
10 component("protocol") { | |
11 public_deps = [ | |
12 ":protocol_internal", | |
13 ] | |
14 } | |
15 | |
16 proto_library("protocol_internal") { | |
17 visibility = [ ":protocol" ] | |
18 | |
19 sources = sync_protocol_sources | 9 sources = sync_protocol_sources |
20 | |
21 cc_generator_options = "dllexport_decl=SYNC_PROTO_EXPORT:" | |
22 cc_include = "components/sync/protocol/sync_proto_export.h" | |
23 component_build_force_source_set = true | |
24 | |
25 defines = [ "SYNC_PROTO_IMPLEMENTATION" ] | |
26 | |
27 extra_configs = [ "//build/config/compiler:wexit_time_destructors" ] | 10 extra_configs = [ "//build/config/compiler:wexit_time_destructors" ] |
28 } | 11 } |
OLD | NEW |