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