| 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 # TODO(knn) : Move this out once more targets use this. | |
| 136 if (is_chrome_branded) { | |
| 137 mac_bundle_id = "com.google.Chrome" | |
| 138 } else { | |
| 139 mac_bundle_id = "org.chromium.Chromium" | |
| 140 } | |
| 141 defines = [ "mac_bundle_id=$mac_bundle_id" ] | |
| 142 } | |
| 143 if (is_win) { | |
| 144 outputs += policy_templates_windows_outputs | |
| 145 } | |
| 146 } | |
| 147 | |
| 148 proto_library("cloud_policy_proto_generated_compile") { | 120 proto_library("cloud_policy_proto_generated_compile") { |
| 149 sources = [ | 121 sources = [ |
| 150 cloud_policy_proto_path, | 122 cloud_policy_proto_path, |
| 151 ] | 123 ] |
| 152 | 124 |
| 153 proto_out_dir = "policy/proto" | 125 proto_out_dir = "policy/proto" |
| 154 cc_generator_options = "dllexport_decl=POLICY_PROTO_EXPORT:" | 126 cc_generator_options = "dllexport_decl=POLICY_PROTO_EXPORT:" |
| 155 cc_include = "components/policy/policy_proto_export.h" | 127 cc_include = "components/policy/policy_proto_export.h" |
| 156 defines = [ "POLICY_PROTO_COMPILATION" ] | 128 defines = [ "POLICY_PROTO_COMPILATION" ] |
| 157 | 129 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 | 211 |
| 240 deps = [ | 212 deps = [ |
| 241 ":policy_component", | 213 ":policy_component", |
| 242 ":test_support", | 214 ":test_support", |
| 243 "//components/policy/proto", | 215 "//components/policy/proto", |
| 244 "//testing/gmock", | 216 "//testing/gmock", |
| 245 "//testing/gtest", | 217 "//testing/gtest", |
| 246 ] | 218 ] |
| 247 } | 219 } |
| 248 } | 220 } |
| 249 #TODO(GYP) chrome_manifest_bundle | 221 #TODO(GYP) policy templates, chrome_manifest_bundle |
| OLD | NEW |