summaryrefslogtreecommitdiffstats
path: root/chrome/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/BUILD.gn')
-rw-r--r--chrome/BUILD.gn8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/BUILD.gn b/chrome/BUILD.gn
index 073f673..0594ea1 100644
--- a/chrome/BUILD.gn
+++ b/chrome/BUILD.gn
@@ -313,13 +313,15 @@ if (is_mac || is_win) {
"//chrome/app/theme:chrome_unscaled_resources",
"//chrome_elf",
"//components/crash/content/app",
- "//components/policy",
"//content/app/resources",
"//crypto",
"//net:net_resources",
"//third_party/wtl",
"//ui/views",
]
+ if (enable_configuration_policy) {
+ deps += [ "//components/policy" ]
+ }
if (current_cpu == "x86") {
# TODO(GYP) bug 512861: Lots of VCLinkerTool stuff on Windows.
#deps += [ 'chrome_user32_delay_imports' ] TODO(GYP)
@@ -441,7 +443,9 @@ if (is_mac || is_win) {
}
}
- deps += [ "//chrome/browser/policy:path_parser" ]
+ if (enable_configuration_policy) {
+ deps += [ "//chrome/browser/policy:path_parser" ]
+ }
if (enable_plugins && enable_pdf) {
deps += [ "//pdf" ]