| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 current_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 grit("policy_templates") { | |
| 121 import("resources/policy_templates.gni") | |
| 122 source = "resources/policy_templates.grd" | |
| 123 use_qualified_include = true | |
| 124 output_dir = "$root_gen_dir/chrome" | |
| 125 outputs = policy_templates_doc_outputs | |
| 126 if (is_android) { | |
| 127 outputs += policy_templates_android_outputs | |
| 128 } | |
| 129 if (is_linux) { | |
| 130 outputs += policy_templates_linux_outputs | |
| 131 } | |
| 132 if (is_mac) { | |
| 133 outputs += policy_templates_mac_outputs | |
| 134 } | |
| 135 if (is_win) { | |
| 136 outputs += policy_templates_windows_outputs | |
| 137 } | |
| 138 } | |
| 139 | |
| 140 proto_library("cloud_policy_proto_generated_compile") { | 120 proto_library("cloud_policy_proto_generated_compile") { |
| 141 sources = [ | 121 sources = [ |
| 142 cloud_policy_proto_path, | 122 cloud_policy_proto_path, |
| 143 ] | 123 ] |
| 144 | 124 |
| 145 proto_out_dir = "policy/proto" | 125 proto_out_dir = "policy/proto" |
| 146 cc_generator_options = "dllexport_decl=POLICY_PROTO_EXPORT:" | 126 cc_generator_options = "dllexport_decl=POLICY_PROTO_EXPORT:" |
| 147 cc_include = "components/policy/policy_proto_export.h" | 127 cc_include = "components/policy/policy_proto_export.h" |
| 148 defines = [ "POLICY_PROTO_COMPILATION" ] | 128 defines = [ "POLICY_PROTO_COMPILATION" ] |
| 149 | 129 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 | 211 |
| 232 deps = [ | 212 deps = [ |
| 233 ":policy_component", | 213 ":policy_component", |
| 234 ":test_support", | 214 ":test_support", |
| 235 "//components/policy/proto", | 215 "//components/policy/proto", |
| 236 "//testing/gmock", | 216 "//testing/gmock", |
| 237 "//testing/gtest", | 217 "//testing/gtest", |
| 238 ] | 218 ] |
| 239 } | 219 } |
| 240 } | 220 } |
| 241 #TODO(GYP) chrome_manifest_bundle | 221 #TODO(GYP) policy templates, chrome_manifest_bundle |
| OLD | NEW |