summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/BUILD.gn4
-rw-r--r--components/ownership/BUILD.gn7
2 files changed, 10 insertions, 1 deletions
diff --git a/components/BUILD.gn b/components/BUILD.gn
index 9740999..450fe0e 100644
--- a/components/BUILD.gn
+++ b/components/BUILD.gn
@@ -114,6 +114,10 @@ group("all_components") {
"//components/wifi_sync",
]
+ if (!enable_configuration_policy) {
+ deps -= [ "//components/policy" ]
+ }
+
if (!is_win && !is_mac) {
deps -= [ "//components/wifi" ]
}
diff --git a/components/ownership/BUILD.gn b/components/ownership/BUILD.gn
index 5acce97..1bca927 100644
--- a/components/ownership/BUILD.gn
+++ b/components/ownership/BUILD.gn
@@ -2,6 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/features.gni")
+
component("ownership") {
sources = [
"mock_owner_key_util.cc",
@@ -19,11 +21,14 @@ component("ownership") {
deps = [
"//base",
"//components/keyed_service/core",
- "//components/policy",
"//components/policy/proto",
"//components/policy:policy_component_common",
"//crypto",
]
+
+ if (enable_configuration_policy) {
+ deps += [ "//components/policy" ]
+ }
}
source_set("unit_tests") {