| OLD | NEW | 
|---|
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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("//build/compiled_action.gni") | 5 import("//build/compiled_action.gni") | 
| 6 | 6 | 
|  | 7 compiled_action("generate_transport_security_state") { | 
|  | 8   tool = "//net/tools/transport_security_state_generator" | 
|  | 9 | 
|  | 10   # Inputs in order expected by the command line of the tool. | 
|  | 11   inputs = [ | 
|  | 12     "transport_security_state_static.json", | 
|  | 13     "transport_security_state_static.pins", | 
|  | 14     "transport_security_state_static.template", | 
|  | 15   ] | 
|  | 16   outputs = [ | 
|  | 17     "$target_gen_dir/transport_security_state_static.h", | 
|  | 18   ] | 
|  | 19   args = | 
|  | 20       rebase_path(inputs, root_build_dir) + rebase_path(outputs, root_build_dir) | 
|  | 21 } | 
|  | 22 | 
| 7 compiled_action_foreach("transport_security_state_unittest_data") { | 23 compiled_action_foreach("transport_security_state_unittest_data") { | 
| 8   tool = "//net/tools/transport_security_state_generator" | 24   tool = "//net/tools/transport_security_state_generator" | 
| 9   sources = [ | 25   sources = [ | 
| 10     "transport_security_state_static_unittest1.json", | 26     "transport_security_state_static_unittest1.json", | 
| 11     "transport_security_state_static_unittest2.json", | 27     "transport_security_state_static_unittest2.json", | 
| 12     "transport_security_state_static_unittest3.json", | 28     "transport_security_state_static_unittest3.json", | 
| 13   ] | 29   ] | 
| 14 | 30 | 
| 15   # Inputs in order expected by the command line of the tool. | 31   # Inputs in order expected by the command line of the tool. | 
| 16   inputs = [ | 32   inputs = [ | 
| 17     "transport_security_state_static_unittest.pins", | 33     "transport_security_state_static_unittest.pins", | 
| 18     "transport_security_state_static_unittest.template", | 34     "transport_security_state_static_unittest.template", | 
| 19   ] | 35   ] | 
| 20   outputs = [ | 36   outputs = [ | 
| 21     "$target_gen_dir/{{source_name_part}}.h", | 37     "$target_gen_dir/{{source_name_part}}.h", | 
| 22   ] | 38   ] | 
| 23   args = | 39   args = | 
| 24       [ rebase_path("{{source_name_part}}.json", root_build_dir) ] + | 40       [ rebase_path("{{source_name_part}}.json", root_build_dir) ] + | 
| 25       rebase_path(inputs, root_build_dir) + rebase_path(outputs, root_build_dir) | 41       rebase_path(inputs, root_build_dir) + rebase_path(outputs, root_build_dir) | 
| 26 } | 42 } | 
| OLD | NEW | 
|---|