Index: BUILD.gn |
diff --git a/BUILD.gn b/BUILD.gn |
index 91763004b3ae1e95e54c5dcd72ce8faff8a6f2bc..fc5ecd4d1fdb4d3fa5594ad16bd8ec057ace9897 100644 |
--- a/BUILD.gn |
+++ b/BUILD.gn |
@@ -50,7 +50,6 @@ group("gn_all") { |
"//chrome/test/chromedriver:chromedriver_unittests", |
"//components:components_browsertests", |
"//components:components_unittests", |
- "//components/policy:policy_templates", |
"//content/shell:content_shell", |
"//content/test:content_browsertests", |
"//content/test:content_perftests", |
@@ -176,6 +175,10 @@ group("gn_all") { |
deps += [ "//tools/xdisplaycheck" ] |
} |
+ if (enable_configuration_policy) { |
+ deps += [ "//components/policy:policy_templates" ] |
+ } |
+ |
if (v8_use_external_startup_data) { |
deps += [ "//gin:gin_v8_snapshot_fingerprint" ] |
} |