Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright (c) 2017 The Chromium Authors. All rights reserved. | |
|
brettw
2017/03/20 20:42:41
uber-nit: The current reference copyright block ha
martijnc
2017/03/20 21:46:25
Removed.
| |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 import("//build/compiled_action.gni") | |
| 6 | |
| 7 if (host_toolchain == current_toolchain) { | |
| 8 executable("transport_security_state_generator") { | |
| 9 sources = [ | |
| 10 "bit_writer.cc", | |
| 11 "bit_writer.h", | |
| 12 "cert_util.cc", | |
| 13 "cert_util.h", | |
| 14 "huffman/huffman_builder.cc", | |
| 15 "huffman/huffman_builder.h", | |
| 16 "pinset.cc", | |
| 17 "pinset.h", | |
| 18 "pinsets.cc", | |
| 19 "pinsets.h", | |
| 20 "preloaded_state_generator.cc", | |
| 21 "preloaded_state_generator.h", | |
| 22 "spki_hash.cc", | |
| 23 "spki_hash.h", | |
| 24 "transport_security_state_entry.cc", | |
| 25 "transport_security_state_entry.h", | |
| 26 "transport_security_state_generator.cc", | |
| 27 "trie/trie_bit_buffer.cc", | |
| 28 "trie/trie_bit_buffer.h", | |
| 29 "trie/trie_writer.cc", | |
| 30 "trie/trie_writer.h", | |
| 31 ] | |
| 32 deps = [ | |
| 33 "//base", | |
| 34 "//crypto", | |
| 35 "//third_party/boringssl", | |
| 36 ] | |
| 37 } | |
| 38 } | |
| 39 | |
| 40 compiled_action_foreach("generate_test_data") { | |
| 41 tool = ":transport_security_state_generator" | |
| 42 sources = [ | |
| 43 "//net/http/transport_security_state_static_unittest1.json", | |
| 44 "//net/http/transport_security_state_static_unittest2.json", | |
| 45 "//net/http/transport_security_state_static_unittest3.json", | |
| 46 ] | |
| 47 | |
| 48 # Inputs in order expected by the command line of the tool. | |
| 49 inputs = [ | |
| 50 "//net/http/transport_security_state_static_unittest.pins", | |
| 51 "resources/transport_security_state_static_unittest.template", | |
| 52 ] | |
| 53 outputs = [ | |
| 54 get_label_info("//net/http/{{source_name_part}}.h", "target_gen_dir"), | |
| 55 ] | |
| 56 args = | |
| 57 [ rebase_path("//net/http/{{source_name_part}}.json", root_build_dir) ] + | |
| 58 rebase_path(inputs, root_build_dir) + rebase_path(outputs, root_build_dir) | |
| 59 } | |
| OLD | NEW |