Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: net/BUILD.gn

Issue 2574413002: Make static (preloaded) security state generation part of the build process. (Closed)
Patch Set: also run generator for nacl. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/data/update_net_gypi.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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),
+ ]
+}
« no previous file with comments | « no previous file | net/data/update_net_gypi.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698