Chromium Code Reviews| 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" | |
|
pneubeck (no reviews)
2015/03/03 17:32:03
if you set this, shouldn't all outputs be relative
knn
2015/03/03 19:22:41
The output_dir variable is used only for relative
| |
| 125 outputs = doc_outputs | |
| 126 if (is_android) { | |
| 127 outputs += android_outputs | |
| 128 } | |
| 129 if (is_linux) { | |
| 130 outputs += linux_outputs | |
| 131 } | |
| 132 if (is_mac) { | |
| 133 outputs += mac_outputs | |
| 134 } | |
| 135 if (is_win) { | |
| 136 outputs += windows_outputs | |
| 137 } | |
| 138 } | |
| 139 | |
| 120 proto_library("cloud_policy_proto_generated_compile") { | 140 proto_library("cloud_policy_proto_generated_compile") { |
| 121 sources = [ | 141 sources = [ |
| 122 cloud_policy_proto_path, | 142 cloud_policy_proto_path, |
| 123 ] | 143 ] |
| 124 | 144 |
| 125 proto_out_dir = "policy/proto" | 145 proto_out_dir = "policy/proto" |
| 126 cc_generator_options = "dllexport_decl=POLICY_PROTO_EXPORT:" | 146 cc_generator_options = "dllexport_decl=POLICY_PROTO_EXPORT:" |
| 127 cc_include = "components/policy/policy_proto_export.h" | 147 cc_include = "components/policy/policy_proto_export.h" |
| 128 defines = [ "POLICY_PROTO_COMPILATION" ] | 148 defines = [ "POLICY_PROTO_COMPILATION" ] |
| 129 | 149 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 211 | 231 |
| 212 deps = [ | 232 deps = [ |
| 213 ":policy_component", | 233 ":policy_component", |
| 214 ":test_support", | 234 ":test_support", |
| 215 "//components/policy/proto", | 235 "//components/policy/proto", |
| 216 "//testing/gmock", | 236 "//testing/gmock", |
| 217 "//testing/gtest", | 237 "//testing/gtest", |
| 218 ] | 238 ] |
| 219 } | 239 } |
| 220 } | 240 } |
| 221 #TODO(GYP) policy templates, chrome_manifest_bundle | 241 #TODO(GYP) chrome_manifest_bundle |
| OLD | NEW |