OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//third_party/protobuf/proto_library.gni") | 6 import("//third_party/protobuf/proto_library.gni") |
7 import("//tools/grit/grit_rule.gni") | 7 import("//tools/grit/grit_rule.gni") |
8 | 8 |
9 if (is_component_build) { | 9 if (is_component_build) { |
10 component("policy_component") { | 10 component("policy_component") { |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 outputs = [ | 82 outputs = [ |
83 constants_header_path, | 83 constants_header_path, |
84 constants_source_path, | 84 constants_source_path, |
85 protobuf_decoder_path, | 85 protobuf_decoder_path, |
86 chrome_settings_proto_path, | 86 chrome_settings_proto_path, |
87 cloud_policy_proto_path, | 87 cloud_policy_proto_path, |
88 app_restrictions_path, | 88 app_restrictions_path, |
89 app_resources_path, | 89 app_resources_path, |
90 ] | 90 ] |
91 | 91 |
92 if (os != "android") { | 92 if (current_os != "android") { |
93 outputs -= [ | 93 outputs -= [ |
94 app_restrictions_path, | 94 app_restrictions_path, |
95 app_resources_path, | 95 app_resources_path, |
96 ] | 96 ] |
97 } | 97 } |
98 | 98 |
99 args = [ | 99 args = [ |
100 "--policy-constants-header=" + | 100 "--policy-constants-header=" + |
101 rebase_path(constants_header_path, root_build_dir), | 101 rebase_path(constants_header_path, root_build_dir), |
102 "--policy-constants-source=" + | 102 "--policy-constants-source=" + |
103 rebase_path(constants_source_path, root_build_dir), | 103 rebase_path(constants_source_path, root_build_dir), |
104 "--chrome-settings-protobuf=" + | 104 "--chrome-settings-protobuf=" + |
105 rebase_path(chrome_settings_proto_path, root_build_dir), | 105 rebase_path(chrome_settings_proto_path, root_build_dir), |
106 "--cloud-policy-protobuf=" + | 106 "--cloud-policy-protobuf=" + |
107 rebase_path(cloud_policy_proto_path, root_build_dir), | 107 rebase_path(cloud_policy_proto_path, root_build_dir), |
108 "--cloud-policy-decoder=" + | 108 "--cloud-policy-decoder=" + |
109 rebase_path(protobuf_decoder_path, root_build_dir), | 109 rebase_path(protobuf_decoder_path, root_build_dir), |
110 "--app-restrictions-definition=" + | 110 "--app-restrictions-definition=" + |
111 rebase_path(app_restrictions_path, root_build_dir), | 111 rebase_path(app_restrictions_path, root_build_dir), |
112 "--app-restrictions-resources=" + | 112 "--app-restrictions-resources=" + |
113 rebase_path(app_resources_path, root_build_dir), | 113 rebase_path(app_resources_path, root_build_dir), |
114 os, | 114 current_os, |
115 chromeos_flag, | 115 chromeos_flag, |
116 rebase_path("resources/policy_templates.json", root_build_dir), | 116 rebase_path("resources/policy_templates.json", root_build_dir), |
117 ] | 117 ] |
118 } | 118 } |
119 | 119 |
120 proto_library("cloud_policy_proto_generated_compile") { | 120 proto_library("cloud_policy_proto_generated_compile") { |
121 sources = [ | 121 sources = [ |
122 cloud_policy_proto_path, | 122 cloud_policy_proto_path, |
123 ] | 123 ] |
124 | 124 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 deps = [ | 212 deps = [ |
213 ":policy_component", | 213 ":policy_component", |
214 ":test_support", | 214 ":test_support", |
215 "//components/policy/proto", | 215 "//components/policy/proto", |
216 "//testing/gmock", | 216 "//testing/gmock", |
217 "//testing/gtest", | 217 "//testing/gtest", |
218 ] | 218 ] |
219 } | 219 } |
220 } | 220 } |
221 #TODO(GYP) policy templates, chrome_manifest_bundle | 221 #TODO(GYP) policy templates, chrome_manifest_bundle |
OLD | NEW |