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 # TODO(tonikitoo): On Ozone builds, we are (ab)using some ash resources. |
rjkroege
2016/10/25 20:10:40
That this build config launches ash (or needs it)
| |
55 # There should be a variable that better represents this build configuration . | |
56 if (use_ash || use_ozone) { | |
55 sources += | 57 sources += |
56 [ "$root_gen_dir/ash/resources/ash_resources_${percent}_percent.pak" ] | 58 [ "$root_gen_dir/ash/resources/ash_resources_${percent}_percent.pak" ] |
57 deps += [ "//ash/resources" ] | 59 deps += [ "//ash/resources" ] |
58 } | 60 } |
59 if (toolkit_views) { | 61 if (toolkit_views) { |
60 sources += [ "$root_gen_dir/ui/views/resources/views_resources_${percent}_ percent.pak" ] | 62 sources += [ "$root_gen_dir/ui/views/resources/views_resources_${percent}_ percent.pak" ] |
61 deps += [ "//ui/views/resources" ] | 63 deps += [ "//ui/views/resources" ] |
62 } | 64 } |
63 if (is_chromeos) { | 65 if (is_chromeos) { |
64 sources += [ "$root_gen_dir/ui/chromeos/resources/ui_chromeos_resources_${ percent}_percent.pak" ] | 66 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", | 253 ":${target_name}_locales", |
252 ] | 254 ] |
253 if (enable_hidpi) { | 255 if (enable_hidpi) { |
254 public_deps += [ ":${target_name}_200_percent" ] | 256 public_deps += [ ":${target_name}_200_percent" ] |
255 } | 257 } |
256 if (defined(invoker.public_deps)) { | 258 if (defined(invoker.public_deps)) { |
257 public_deps += invoker.public_deps | 259 public_deps += invoker.public_deps |
258 } | 260 } |
259 } | 261 } |
260 } | 262 } |
OLD | NEW |