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 config("dependent_config") { | |
8 include_dirs = [ "//third_party/dom_distiller_js/dist/proto_gen" ] | |
9 } | |
10 | |
11 source_set("proto") { | 7 source_set("proto") { |
12 public_deps = [ | 8 public_deps = [ |
13 ":dom_distiller_proto", | 9 ":dom_distiller_proto", |
14 ] | 10 ] |
15 public_configs = [ ":dependent_config" ] | |
16 } | 11 } |
17 | 12 |
18 proto_library("dom_distiller_proto") { | 13 proto_library("dom_distiller_proto") { |
19 visibility = [ ":*" ] | 14 visibility = [ ":*" ] |
20 sources = [ | 15 sources = [ |
21 "dist/proto/dom_distiller.proto", | 16 "dist/proto/dom_distiller.proto", |
22 ] | 17 ] |
23 proto_out_dir = "third_party/dom_distiller_js" | 18 proto_out_dir = "third_party/dom_distiller_js" |
| 19 json_converter = "protoc_plugins/json_values_converter.py" |
24 } | 20 } |
OLD | NEW |