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

Side by Side Diff: ui/resources/BUILD.gn

Issue 369603004: Work on GN build, mostly in //ui (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « ui/keyboard/keyboard.gyp ('k') | ui/resources/ui_resources.gyp » ('j') | 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("//tools/grit/grit_rule.gni") 5 import("//tools/grit/grit_rule.gni")
6 import("//tools/grit/repack.gni")
6 7
7 grit("resources") { 8 # GYP version: ui/resources/ui_resources.gyp:ui_resources
8 output_name = "ui_resources" 9 group("resources") {
10 deps = [
11 ":ui_resources_grd",
12 ":ui_unscaled_resources_grd",
13 ":webui_resources_grd",
14 ]
15 }
16
17 grit("ui_resources_grd") {
18 visibility = ":resources"
9 source = "ui_resources.grd" 19 source = "ui_resources.grd"
10 } 20 }
11 21
12 grit("unscaled_resources") { 22 grit("ui_unscaled_resources_grd") {
13 output_name = "ui_unscaled_resources" 23 visibility = ":resources"
14 source = "ui_unscaled_resources.grd" 24 source = "ui_unscaled_resources.grd"
15 } 25 }
26
27 grit("webui_resources_grd") {
28 visibility = ":resources"
29 source = "../webui/resources/webui_resources.grd"
30 }
31
32 if (!is_mac) {
33 copy("copy_ui_resources_100_percent") {
34 sources = [ "$root_gen_dir/ui/resources/ui_resources_100_percent.pak" ]
35 outputs = [ "$root_out_dir/ui_resources_100_percent.pak" ]
36 deps = [ "//ui/resources" ]
37 }
38 }
39
40 # On iOS the output needs to additionally be copied to another location, so
41 # we have this intermediate step.
42 #
43 # GYP version: ui/resources/ui_resources.gyp:ui_test_pak
44 # (copy_ui_test_pak action)
45 if (is_ios) {
46 copy("ui_test_pak") {
47 sources = [ "$root_out_dir/ui_test.pak" ]
48 outputs = [ "$root_out_dir/ui/en.lproj/locale.pak" ]
49 deps = [ ":repack_ui_test_pak" ]
50 }
51 } else {
52 group("ui_test_pak") {
53 deps = [ ":repack_ui_test_pak" ]
54 }
55 }
56
57 # GYP version: ui/resources/ui_resources.gyp:ui_test_pak
58 repack("repack_ui_test_pak") {
59 # Depend on ui_test_pak instead of this one.
60 visibility = ":ui_test_pak"
61
62 sources = [
63 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak",
64 "$root_gen_dir/ui/resources/webui_resources.pak",
65 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak",
66 "$root_gen_dir/ui/strings/ui_strings_en-US.pak",
67 ]
68
69 output = "$root_out_dir/ui_test.pak"
70
71 deps = [
72 "//ui/resources",
73 "//ui/strings",
74 ]
75
76 if (!is_mac) {
77 deps += [ ":copy_ui_resources_100_percent" ]
78 }
79 }
80
OLDNEW
« no previous file with comments | « ui/keyboard/keyboard.gyp ('k') | ui/resources/ui_resources.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698