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("//ui/base/ui_features.gni") | 6 import("//ui/base/ui_features.gni") |
7 import("chrome_repack_locales.gni") | 7 import("chrome_repack_locales.gni") |
8 | 8 |
9 # Generates a rule to repack a set of resources, substituting a given string | 9 # Generates a rule to repack a set of resources, substituting a given string |
10 # in for the percentage (e.g. "100", "200"). It generates the repacked files in | 10 # in for the percentage (e.g. "100", "200"). It generates the repacked files in |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
43 "//content/app/resources", | 43 "//content/app/resources", |
44 "//net:net_resources", | 44 "//net:net_resources", |
45 "//third_party/WebKit/public:image_resources", | 45 "//third_party/WebKit/public:image_resources", |
46 "//ui/resources", | 46 "//ui/resources", |
47 ] | 47 ] |
48 | 48 |
49 if (defined(invoker.deps)) { | 49 if (defined(invoker.deps)) { |
50 deps += invoker.deps | 50 deps += invoker.deps |
51 } | 51 } |
52 | 52 |
53 if (use_ash) { | 53 if (use_ash || use_ozone) { |
rjkroege
2016/10/11 18:49:47
I might be persuaded that this is a temporary expe
tonikitoo
2016/10/12 13:44:23
This is true (it is temporary). Will add a TODO he
| |
54 sources += | 54 sources += |
55 [ "$root_gen_dir/ash/resources/ash_resources_${percent}_percent.pak" ] | 55 [ "$root_gen_dir/ash/resources/ash_resources_${percent}_percent.pak" ] |
56 deps += [ "//ash/resources" ] | 56 deps += [ "//ash/resources" ] |
57 } | 57 } |
58 if (toolkit_views) { | 58 if (toolkit_views) { |
59 sources += [ "$root_gen_dir/ui/views/resources/views_resources_${percent}_ percent.pak" ] | 59 sources += [ "$root_gen_dir/ui/views/resources/views_resources_${percent}_ percent.pak" ] |
60 deps += [ "//ui/views/resources" ] | 60 deps += [ "//ui/views/resources" ] |
61 } | 61 } |
62 if (is_chromeos) { | 62 if (is_chromeos) { |
63 sources += [ "$root_gen_dir/ui/chromeos/resources/ui_chromeos_resources_${ percent}_percent.pak" ] | 63 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... | |
250 ":${target_name}_locales", | 250 ":${target_name}_locales", |
251 ] | 251 ] |
252 if (enable_hidpi) { | 252 if (enable_hidpi) { |
253 public_deps += [ ":${target_name}_200_percent" ] | 253 public_deps += [ ":${target_name}_200_percent" ] |
254 } | 254 } |
255 if (defined(invoker.public_deps)) { | 255 if (defined(invoker.public_deps)) { |
256 public_deps += invoker.public_deps | 256 public_deps += invoker.public_deps |
257 } | 257 } |
258 } | 258 } |
259 } | 259 } |
OLD | NEW |