| 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("//printing/features/features.gni") |
| 5 import("//tools/grit/grit_rule.gni") | 6 import("//tools/grit/grit_rule.gni") |
| 6 import("//third_party/brotli/brotli.gni") | 7 import("//third_party/brotli/brotli.gni") |
| 7 | 8 |
| 8 about_credits_file = "$target_gen_dir/about_credits.html" | 9 about_credits_file = "$target_gen_dir/about_credits.html" |
| 9 about_credits_file_bro = "$target_gen_dir/about_credits.bro" | 10 about_credits_file_bro = "$target_gen_dir/about_credits.bro" |
| 10 | 11 |
| 11 group("resources") { | 12 group("resources") { |
| 12 public_deps = [ | 13 public_deps = [ |
| 13 ":components_resources", | 14 ":components_resources", |
| 14 ":components_scaled_resources", | 15 ":components_scaled_resources", |
| 15 ] | 16 ] |
| 16 } | 17 } |
| 17 | 18 |
| 18 grit("components_resources") { | 19 grit("components_resources") { |
| 19 source = "components_resources.grd" | 20 source = "components_resources.grd" |
| 20 | 21 |
| 21 # TODO(hashimoto): Remove this line. | 22 # TODO(hashimoto): Remove this line. |
| 22 output_name = "components_resources_new" | 23 output_name = "components_resources_new" |
| 23 outputs = [ | 24 outputs = [ |
| 24 "grit/components_resources.h", | 25 "grit/components_resources.h", |
| 25 "components_resources.pak", | 26 "components_resources.pak", |
| 26 ] | 27 ] |
| 27 output_dir = "$root_gen_dir/components" | 28 output_dir = "$root_gen_dir/components" |
| 28 | 29 |
| 29 grit_flags = [ | 30 grit_flags = [ |
| 30 "-E", | 31 "-E", |
| 31 "about_credits_file=" + rebase_path(about_credits_file_bro, root_build_dir), | 32 "about_credits_file=" + rebase_path(about_credits_file_bro, root_build_dir), |
| 32 ] | 33 ] |
| 34 defines = [ "enable_print_preview=$enable_print_preview" ] |
| 33 | 35 |
| 34 deps = [ | 36 deps = [ |
| 35 ":compressed_about_credits", | 37 ":compressed_about_credits", |
| 36 ] | 38 ] |
| 37 } | 39 } |
| 38 | 40 |
| 39 grit("components_scaled_resources") { | 41 grit("components_scaled_resources") { |
| 40 source = "components_scaled_resources.grd" | 42 source = "components_scaled_resources.grd" |
| 41 | 43 |
| 42 # TODO(hashimoto): Remove this line. | 44 # TODO(hashimoto): Remove this line. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 outputs = [ | 77 outputs = [ |
| 76 about_credits_file, | 78 about_credits_file, |
| 77 ] | 79 ] |
| 78 | 80 |
| 79 args = [ | 81 args = [ |
| 80 "--target-os=$target_os", | 82 "--target-os=$target_os", |
| 81 "credits", | 83 "credits", |
| 82 rebase_path(about_credits_file, root_build_dir), | 84 rebase_path(about_credits_file, root_build_dir), |
| 83 ] | 85 ] |
| 84 } | 86 } |
| OLD | NEW |