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("//tools/grit/grit_rule.gni") | 5 import("//tools/grit/grit_rule.gni") |
6 import("//tools/grit/repack.gni") | 6 import("//tools/grit/repack.gni") |
7 | 7 |
8 # GYP version: ui/resources/ui_resources.gyp:ui_resources | 8 # GYP version: ui/resources/ui_resources.gyp:ui_resources |
9 group("resources") { | 9 group("resources") { |
10 deps = [ | 10 deps = [ |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 } | 45 } |
46 | 46 |
47 if (!is_mac) { | 47 if (!is_mac) { |
48 copy("copy_ui_resources_100_percent") { | 48 copy("copy_ui_resources_100_percent") { |
49 sources = [ "$root_gen_dir/ui/resources/ui_resources_100_percent.pak" ] | 49 sources = [ "$root_gen_dir/ui/resources/ui_resources_100_percent.pak" ] |
50 outputs = [ "$root_out_dir/ui_resources_100_percent.pak" ] | 50 outputs = [ "$root_out_dir/ui_resources_100_percent.pak" ] |
51 deps = [ "//ui/resources" ] | 51 deps = [ "//ui/resources" ] |
52 } | 52 } |
53 } | 53 } |
54 | 54 |
55 # On iOS the output needs to additionally be copied to another location, so | 55 # On iOS and Mac the output needs to additionally be copied to another location, |
56 # we have this intermediate step. | 56 # so we have this intermediate step. |
57 # | 57 # |
58 # GYP version: ui/resources/ui_resources.gyp:ui_test_pak | 58 # GYP version: ui/resources/ui_resources.gyp:ui_test_pak |
59 # (copy_ui_test_pak action) | 59 # (copy_ui_test_pak action) |
60 if (is_ios) { | 60 if (is_ios || is_mac) { |
61 copy("ui_test_pak") { | 61 copy("ui_test_pak") { |
62 sources = [ "$root_out_dir/ui_test.pak" ] | 62 sources = [ "$root_out_dir/ui_test.pak" ] |
63 outputs = [ "$root_out_dir/ui/en.lproj/locale.pak" ] | 63 outputs = [ "$root_out_dir/ui/en.lproj/locale.pak" ] |
64 deps = [ ":repack_ui_test_pak" ] | 64 deps = [ ":repack_ui_test_pak" ] |
65 } | 65 } |
66 } else { | 66 } else { |
67 group("ui_test_pak") { | 67 group("ui_test_pak") { |
68 deps = [ ":repack_ui_test_pak" ] | 68 deps = [ ":repack_ui_test_pak" ] |
69 } | 69 } |
70 } | 70 } |
71 | 71 |
72 # GYP version: ui/resources/ui_resources.gyp:ui_test_pak | 72 # GYP version: ui/resources/ui_resources.gyp:ui_test_pak |
73 repack("repack_ui_test_pak") { | 73 repack("repack_ui_test_pak") { |
74 # Depend on ui_test_pak instead of this one. | 74 # Depend on ui_test_pak instead of this one. |
75 visibility = [ ":ui_test_pak" ] | 75 visibility = [ ":ui_test_pak" ] |
76 | 76 |
77 sources = [ | 77 sources = [ |
78 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", | 78 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", |
79 "$root_gen_dir/ui/resources/webui_resources.pak", | 79 "$root_gen_dir/ui/resources/webui_resources.pak", |
80 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", | 80 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", |
81 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", | 81 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", |
82 ] | 82 ] |
83 | 83 |
84 output = "$root_out_dir/ui_test.pak" | 84 output = "$root_out_dir/ui_test.pak" |
85 | 85 |
86 deps = [ | 86 deps = [ |
87 "//ui/resources", | 87 "//ui/resources", |
88 "//ui/strings", | 88 "//ui/strings", |
89 ] | 89 ] |
90 | 90 |
91 if (!is_mac) { | 91 if (!is_mac) { |
92 deps += [ ":copy_ui_resources_100_percent" ] | 92 deps += [ ":copy_ui_resources_100_percent" ] |
93 } | 93 } |
94 } | 94 } |
OLD | NEW |