Chromium Code Reviews| Index: net/BUILD.gn |
| diff --git a/net/BUILD.gn b/net/BUILD.gn |
| index 02b77e24c9a4672499e36bebbe7f74e83fc2b920..411003f4e7f42d5e45f7b9f6dce7830969be77c9 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") |
| @@ -120,6 +121,7 @@ component("net") { |
| deps += [ |
| "//base/third_party/dynamic_annotations", |
| + "//net:generate_preload_domain_security_state", |
|
Ryan Sleevi
2016/12/15 01:39:35
The problem here is that net/http/transport_securi
martijnc
2016/12/16 22:32:45
Thanks for your feedback! I'll go for Option 1 and
|
| "//sdch", |
| "//third_party/zlib", |
| ] |
| @@ -2084,3 +2086,23 @@ if (host_toolchain == current_toolchain) { |
| ] |
| } |
| } |
| + |
| +compiled_action("generate_preload_domain_security_state") { |
| + tool = "//net:domain_security_preload_generator" |
| + 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), |
| + 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), |
| + ] |
| +} |