Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: components/policy/BUILD.gn

Issue 2083903005: Adds gn config for policy_templates.zip (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix trybot failure Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("//components/policy/resources/policy_templates.gni") 7 import("//components/policy/resources/policy_templates.gni")
8 import("//third_party/protobuf/proto_library.gni") 8 import("//third_party/protobuf/proto_library.gni")
9 import("//tools/grit/grit_rule.gni") 9 import("//tools/grit/grit_rule.gni")
10 10
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 "--app-restrictions-definition=" + 126 "--app-restrictions-definition=" +
127 rebase_path(app_restrictions_path, root_build_dir), 127 rebase_path(app_restrictions_path, root_build_dir),
128 "--risk-tag-header=" + rebase_path(risk_tag_header_path, root_build_dir), 128 "--risk-tag-header=" + rebase_path(risk_tag_header_path, root_build_dir),
129 chrome_version_path, 129 chrome_version_path,
130 target_os, 130 target_os,
131 chromeos_flag, 131 chromeos_flag,
132 rebase_path("resources/policy_templates.json", root_build_dir), 132 rebase_path("resources/policy_templates.json", root_build_dir),
133 ] 133 ]
134 } 134 }
135 135
136 policy_templates_grd_file = "resources/policy_templates.grd"
136 grit("policy_templates") { 137 grit("policy_templates") {
137 source = "resources/policy_templates.grd" 138 source = policy_templates_grd_file
138 use_qualified_include = true 139 use_qualified_include = true
139 output_dir = "$root_gen_dir/chrome" 140 output_dir = "$root_gen_dir/chrome"
140 outputs = policy_templates_doc_outputs 141 outputs = policy_templates_doc_outputs
141 if (is_android) { 142 if (is_android) {
142 outputs += policy_templates_android_outputs 143 outputs += policy_templates_android_outputs
143 } 144 }
144 if (is_linux) { 145 if (is_linux) {
145 outputs += policy_templates_linux_outputs 146 outputs += policy_templates_linux_outputs
146 } 147 }
147 if (is_mac) { 148 if (is_mac) {
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 create_bundle("chrome_manifest_bundle") { 388 create_bundle("chrome_manifest_bundle") {
388 bundle_root_dir = "$root_out_dir/$chrome_mac_bundle_id.manifest/Contents" 389 bundle_root_dir = "$root_out_dir/$chrome_mac_bundle_id.manifest/Contents"
389 bundle_resources_dir = "$bundle_root_dir/Resources" 390 bundle_resources_dir = "$bundle_root_dir/Resources"
390 391
391 deps = [ 392 deps = [
392 ":manifest_bundle_data", 393 ":manifest_bundle_data",
393 ":manifest_strings_bundle_data", 394 ":manifest_strings_bundle_data",
394 ] 395 ]
395 } 396 }
396 } 397 }
398
399 if (is_win) {
400 version_file = "VERSION"
401 version_path = "$policy_templates_base_dir/$version_file"
402
403 copy("add_version") {
404 sources = [
405 "//chrome/VERSION",
406 ]
407 outputs = [
408 version_path,
409 ]
410 }
411
412 action("pack_policy_templates") {
413 output_zip_file = "$root_out_dir/policy_templates.zip"
414 script = "tools/make_policy_zip.py"
415 inputs =
416 [
417 version_path,
418 policy_templates_grd_file,
419 grit_info_script,
420 ] + policy_templates_windows_outputs + policy_templates_doc_outputs
421 outputs = [
422 output_zip_file,
423 ]
424 args = [
425 "--output",
426 rebase_path(output_zip_file, root_build_dir),
427 "--basedir",
428 rebase_path(policy_templates_base_dir, root_build_dir),
429 "--grd_input",
430 rebase_path(policy_templates_grd_file, root_build_dir),
431 "--grd_strip_path_prefix",
432 "app/policy",
433 "--extra_input",
434 version_file,
435 "--grit_info",
436 rebase_path(grit_info_script, root_build_dir),
437 ] + grit_defines
438 deps = [
439 ":add_version",
440 ":policy_templates",
441 ]
442 }
443 }
397 } 444 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698