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