 Chromium Code Reviews
 Chromium Code Reviews Issue 2574413002:
  Make static (preloaded) security state generation part of the build process.  (Closed)
    
  
    Issue 2574413002:
  Make static (preloaded) security state generation part of the build process.  (Closed) 
  | OLD | NEW | 
|---|---|
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") | 
| 6 import("//build/compiled_action.gni") | |
| 6 import("//build/config/chromecast_build.gni") | 7 import("//build/config/chromecast_build.gni") | 
| 7 import("//build/config/compiler/compiler.gni") | 8 import("//build/config/compiler/compiler.gni") | 
| 8 import("//build/config/crypto.gni") | 9 import("//build/config/crypto.gni") | 
| 9 import("//build/config/features.gni") | 10 import("//build/config/features.gni") | 
| 10 import("//build/config/ui.gni") | 11 import("//build/config/ui.gni") | 
| 11 import("//net/features.gni") | 12 import("//net/features.gni") | 
| 12 import("//testing/libfuzzer/fuzzer_test.gni") | 13 import("//testing/libfuzzer/fuzzer_test.gni") | 
| 13 import("//testing/test.gni") | 14 import("//testing/test.gni") | 
| 14 import("//third_party/icu/config.gni") | 15 import("//third_party/icu/config.gni") | 
| 15 import("//third_party/protobuf/proto_library.gni") | 16 import("//third_party/protobuf/proto_library.gni") | 
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 97 } | 98 } | 
| 98 | 99 | 
| 99 component("net") { | 100 component("net") { | 
| 100 sources = gypi_values.net_nacl_common_sources | 101 sources = gypi_values.net_nacl_common_sources | 
| 101 net_unfiltered_sources = [] | 102 net_unfiltered_sources = [] | 
| 102 | 103 | 
| 103 deps = [ | 104 deps = [ | 
| 104 ":constants", | 105 ":constants", | 
| 105 ":net_resources", | 106 ":net_resources", | 
| 106 "//base", | 107 "//base", | 
| 108 "//net:generate_preload_domain_security_state", | |
| 107 "//net/base/registry_controlled_domains", | 109 "//net/base/registry_controlled_domains", | 
| 108 "//third_party/protobuf:protobuf_lite", | 110 "//third_party/protobuf:protobuf_lite", | 
| 109 "//url:url_features", | 111 "//url:url_features", | 
| 110 ] | 112 ] | 
| 111 | 113 | 
| 112 public_deps = [ | 114 public_deps = [ | 
| 113 ":net_quic_proto", | 115 ":net_quic_proto", | 
| 114 "//crypto", | 116 "//crypto", | 
| 115 "//crypto:platform", | 117 "//crypto:platform", | 
| 116 ] | 118 ] | 
| (...skipping 1960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2077 if (host_toolchain == current_toolchain) { | 2079 if (host_toolchain == current_toolchain) { | 
| 2078 executable("domain_security_preload_generator") { | 2080 executable("domain_security_preload_generator") { | 
| 2079 sources = gypi_values.net_domain_security_state_generator_sources | 2081 sources = gypi_values.net_domain_security_state_generator_sources | 
| 2080 deps = [ | 2082 deps = [ | 
| 2081 "//base", | 2083 "//base", | 
| 2082 "//crypto", | 2084 "//crypto", | 
| 2083 "//third_party/boringssl", | 2085 "//third_party/boringssl", | 
| 2084 ] | 2086 ] | 
| 2085 } | 2087 } | 
| 2086 } | 2088 } | 
| 2089 | |
| 2090 compiled_action("generate_preload_domain_security_state") { | |
| 2091 tool = "//net:domain_security_preload_generator" | |
| 
Ryan Sleevi
2016/12/15 01:39:35
Sorry, I missed this with agl@'s approval
For the
 | |
| 2092 inputs = [ | |
| 2093 "http/transport_security_state_static.json", | |
| 2094 "http/transport_security_state_static.pins", | |
| 2095 ] | |
| 2096 outputs = [ | |
| 2097 "$target_gen_dir/http/transport_security_state_static.h", | |
| 2098 ] | |
| 2099 args = [ | |
| 2100 rebase_path("http/transport_security_state_static.json", root_build_dir), | |
| 
brettw
2016/12/15 19:02:05
I think it's bad for to duplicate the paths, and t
 
martijnc
2016/12/16 22:32:45
Done.
 | |
| 2101 rebase_path("http/transport_security_state_static.pins", root_build_dir), | |
| 2102 rebase_path( | |
| 2103 "tools/domain_security_preload_generator/resources/transport_security_st ate_static.template", | |
| 2104 root_build_dir), | |
| 2105 rebase_path("$target_gen_dir/http/transport_security_state_static.h", | |
| 2106 root_build_dir), | |
| 2107 ] | |
| 2108 } | |
| OLD | NEW |