OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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/locales.gni") | 5 import("//build/config/locales.gni") |
6 import("//chrome/common/features.gni") | 6 import("//chrome/common/features.gni") |
7 import("//ui/base/ui_features.gni") | 7 import("//ui/base/ui_features.gni") |
8 import("chrome_repack_locales.gni") | 8 import("chrome_repack_locales.gni") |
9 | 9 |
10 # Generates a rule to repack a set of resources, substituting a given string | 10 # Generates a rule to repack a set of resources, substituting a given string |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 "//content/app/resources", | 44 "//content/app/resources", |
45 "//net:net_resources", | 45 "//net:net_resources", |
46 "//third_party/WebKit/public:image_resources", | 46 "//third_party/WebKit/public:image_resources", |
47 "//ui/resources", | 47 "//ui/resources", |
48 ] | 48 ] |
49 | 49 |
50 if (defined(invoker.deps)) { | 50 if (defined(invoker.deps)) { |
51 deps += invoker.deps | 51 deps += invoker.deps |
52 } | 52 } |
53 | 53 |
54 if (use_ash) { | 54 # Chrome --mash in non-chromeos builds need to access some ash resources |
| 55 # in order to avoid some missing icons in Ash's window manager session. |
| 56 # TODO(tonikitoo): Remove this when a chrome/mus is available. |
| 57 if (use_ash || enable_package_mash_services) { |
55 sources += | 58 sources += |
56 [ "$root_gen_dir/ash/resources/ash_resources_${percent}_percent.pak" ] | 59 [ "$root_gen_dir/ash/resources/ash_resources_${percent}_percent.pak" ] |
57 deps += [ "//ash/resources" ] | 60 deps += [ "//ash/resources" ] |
58 } | 61 } |
59 if (toolkit_views) { | 62 if (toolkit_views) { |
60 sources += [ "$root_gen_dir/ui/views/resources/views_resources_${percent}_
percent.pak" ] | 63 sources += [ "$root_gen_dir/ui/views/resources/views_resources_${percent}_
percent.pak" ] |
61 deps += [ "//ui/views/resources" ] | 64 deps += [ "//ui/views/resources" ] |
62 } | 65 } |
63 if (is_chromeos) { | 66 if (is_chromeos) { |
64 sources += [ "$root_gen_dir/ui/chromeos/resources/ui_chromeos_resources_${
percent}_percent.pak" ] | 67 sources += [ "$root_gen_dir/ui/chromeos/resources/ui_chromeos_resources_${
percent}_percent.pak" ] |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 ":${target_name}_locales", | 254 ":${target_name}_locales", |
252 ] | 255 ] |
253 if (enable_hidpi) { | 256 if (enable_hidpi) { |
254 public_deps += [ ":${target_name}_200_percent" ] | 257 public_deps += [ ":${target_name}_200_percent" ] |
255 } | 258 } |
256 if (defined(invoker.public_deps)) { | 259 if (defined(invoker.public_deps)) { |
257 public_deps += invoker.public_deps | 260 public_deps += invoker.public_deps |
258 } | 261 } |
259 } | 262 } |
260 } | 263 } |
OLD | NEW |