 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) 
  | Index: net/BUILD.gn | 
| diff --git a/net/BUILD.gn b/net/BUILD.gn | 
| index 02b77e24c9a4672499e36bebbe7f74e83fc2b920..64d8775be831f8293269cfb7cff97a61396a3124 100644 | 
| --- a/net/BUILD.gn | 
| +++ b/net/BUILD.gn | 
| @@ -3,6 +3,7 @@ | 
| # found in the LICENSE file. | 
| import("//build/buildflag_header.gni") | 
| +import("//build/compiled_action.gni") | 
| import("//build/config/chromecast_build.gni") | 
| import("//build/config/compiler/compiler.gni") | 
| import("//build/config/crypto.gni") | 
| @@ -104,6 +105,7 @@ component("net") { | 
| ":constants", | 
| ":net_resources", | 
| "//base", | 
| + "//net:generate_preload_domain_security_state", | 
| "//net/base/registry_controlled_domains", | 
| "//third_party/protobuf:protobuf_lite", | 
| "//url:url_features", | 
| @@ -2084,3 +2086,23 @@ if (host_toolchain == current_toolchain) { | 
| ] | 
| } | 
| } | 
| + | 
| +compiled_action("generate_preload_domain_security_state") { | 
| + tool = "//net:domain_security_preload_generator" | 
| 
Ryan Sleevi
2016/12/15 01:39:35
Sorry, I missed this with agl@'s approval
For the
 | 
| + inputs = [ | 
| + "http/transport_security_state_static.json", | 
| + "http/transport_security_state_static.pins", | 
| + ] | 
| + outputs = [ | 
| + "$target_gen_dir/http/transport_security_state_static.h", | 
| + ] | 
| + args = [ | 
| + 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.
 | 
| + rebase_path("http/transport_security_state_static.pins", root_build_dir), | 
| + rebase_path( | 
| + "tools/domain_security_preload_generator/resources/transport_security_state_static.template", | 
| + root_build_dir), | 
| + rebase_path("$target_gen_dir/http/transport_security_state_static.h", | 
| + root_build_dir), | 
| + ] | 
| +} |