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/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
7 import("//build/toolchain/toolchain.gni") | 7 import("//build/toolchain/toolchain.gni") |
8 import("//components/policy/resources/policy_templates.gni") | 8 import("//components/policy/resources/policy_templates.gni") |
9 import("//third_party/protobuf/proto_library.gni") | 9 import("//third_party/protobuf/proto_library.gni") |
10 import("//tools/grit/grit_rule.gni") | 10 import("//tools/grit/grit_rule.gni") |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 target_os, | 139 target_os, |
140 chromeos_flag, | 140 chromeos_flag, |
141 rebase_path("resources/policy_templates.json", root_build_dir), | 141 rebase_path("resources/policy_templates.json", root_build_dir), |
142 ] | 142 ] |
143 } | 143 } |
144 | 144 |
145 policy_templates_grd_file = "resources/policy_templates.grd" | 145 policy_templates_grd_file = "resources/policy_templates.grd" |
146 | 146 |
147 grit("grit_policy_templates") { | 147 grit("grit_policy_templates") { |
148 source = policy_templates_grd_file | 148 source = policy_templates_grd_file |
149 use_qualified_include = true | |
150 output_dir = "$root_gen_dir/chrome" | 149 output_dir = "$root_gen_dir/chrome" |
151 outputs = [] | 150 outputs = [] |
152 defines = [] | 151 defines = [] |
153 | 152 |
154 if (gen_policy_templates_common) { | 153 if (gen_policy_templates_common) { |
155 outputs += policy_templates_doc_outputs | 154 outputs += policy_templates_doc_outputs |
156 defines += [ "gen_policy_templates_common" ] | 155 defines += [ "gen_policy_templates_common" ] |
157 } | 156 } |
158 if (gen_policy_templates_android) { | 157 if (gen_policy_templates_android) { |
159 outputs += policy_templates_android_outputs | 158 outputs += policy_templates_android_outputs |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 ] + grit_defines | 414 ] + grit_defines |
416 if (is_chrome_branded) { | 415 if (is_chrome_branded) { |
417 args += [ "--include_google_admx" ] | 416 args += [ "--include_google_admx" ] |
418 } | 417 } |
419 deps = [ | 418 deps = [ |
420 ":add_version", | 419 ":add_version", |
421 ":policy_templates", | 420 ":policy_templates", |
422 ] | 421 ] |
423 } | 422 } |
424 } | 423 } |
OLD | NEW |