| 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 group("proto") { | 7 group("proto") { |
| 8 public_deps = [ | 8 public_deps = [ |
| 9 ":dom_distiller_proto", | 9 ":dom_distiller_proto", |
| 10 ] | 10 ] |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 visibility = [ ":*" ] | 32 visibility = [ ":*" ] |
| 33 sources = [ | 33 sources = [ |
| 34 "dist/proto/dom_distiller.proto", | 34 "dist/proto/dom_distiller.proto", |
| 35 ] | 35 ] |
| 36 proto_out_dir = "third_party/dom_distiller_js" | 36 proto_out_dir = "third_party/dom_distiller_js" |
| 37 | 37 |
| 38 generator_plugin_script = json_converter_plugin_script | 38 generator_plugin_script = json_converter_plugin_script |
| 39 generator_plugin_script_deps = protoc_plugin_files | 39 generator_plugin_script_deps = protoc_plugin_files |
| 40 generator_plugin_suffixes = [ "_json_converter.h" ] | 40 generator_plugin_suffixes = [ "_json_converter.h" ] |
| 41 generator_plugin_options = "output_dir=:" | 41 generator_plugin_options = "output_dir=:" |
| 42 |
| 43 deps = [ |
| 44 "//third_party/protobuf:py_proto", |
| 45 ] |
| 42 } | 46 } |
| 43 | 47 |
| 44 # The purpose of json_values_converter_test_proto is to test the | 48 # The purpose of json_values_converter_test_proto is to test the |
| 45 # protoc_plugins by generating the json_converter.h file. | 49 # protoc_plugins by generating the json_converter.h file. |
| 46 proto_library("json_values_converter_test_proto") { | 50 proto_library("json_values_converter_test_proto") { |
| 47 visibility = [ ":*" ] | 51 visibility = [ ":*" ] |
| 48 sources = [ | 52 sources = [ |
| 49 "test_sample.proto", | 53 "test_sample.proto", |
| 50 ] | 54 ] |
| 51 proto_out_dir = "third_party/dom_distiller_js" | 55 proto_out_dir = "third_party/dom_distiller_js" |
| 52 | 56 |
| 53 generator_plugin_script = json_converter_plugin_script | 57 generator_plugin_script = json_converter_plugin_script |
| 54 generator_plugin_script_deps = protoc_plugin_files | 58 generator_plugin_script_deps = protoc_plugin_files |
| 55 generator_plugin_suffixes = [ "_json_converter.h" ] | 59 generator_plugin_suffixes = [ "_json_converter.h" ] |
| 56 generator_plugin_options = "output_dir=:" | 60 generator_plugin_options = "output_dir=:" |
| 61 |
| 62 deps = [ |
| 63 "//third_party/protobuf:py_proto", |
| 64 ] |
| 57 } | 65 } |
| 58 | 66 |
| 59 action("json_values_converter_tests") { | 67 action("json_values_converter_tests") { |
| 60 _stamp = "$target_gen_dir/json_values_converter_tests.stamp" | 68 _stamp = "$target_gen_dir/json_values_converter_tests.stamp" |
| 61 deps = [ | 69 deps = [ |
| 62 ":json_values_converter_test_proto", | 70 ":json_values_converter_test_proto", |
| 63 ] | 71 ] |
| 64 inputs = [ | 72 inputs = [ |
| 65 "test_sample_json_converter.h.golden", | 73 "test_sample_json_converter.h.golden", |
| 66 ] | 74 ] |
| 67 outputs = [ | 75 outputs = [ |
| 68 _stamp, | 76 _stamp, |
| 69 ] | 77 ] |
| 70 | 78 |
| 71 script = "protoc_plugins/json_values_converter_tests.py" | 79 script = "protoc_plugins/json_values_converter_tests.py" |
| 72 args = [ | 80 args = [ |
| 73 "--stamp", | 81 "--stamp", |
| 74 rebase_path(_stamp, root_build_dir), | 82 rebase_path(_stamp, root_build_dir), |
| 75 rebase_path("$target_gen_dir/test_sample_json_converter.h", root_build_dir), | 83 rebase_path("$target_gen_dir/test_sample_json_converter.h", root_build_dir), |
| 76 rebase_path("test_sample_json_converter.h.golden", root_build_dir), | 84 rebase_path("test_sample_json_converter.h.golden", root_build_dir), |
| 77 ] | 85 ] |
| 78 } | 86 } |
| OLD | NEW |