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

Side by Side Diff: ui/resources/ui_resources.gyp

Issue 565063002: Simplify test locales in Mac's ui_unittests Framework (take 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Corresponding GN change - seems to work Created 6 years, 3 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
« no previous file with comments | « ui/resources/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 { 5 {
6 'targets': [ 6 'targets': [
7 { 7 {
8 # GN version: //ui/resources 8 # GN version: //ui/resources
9 'target_name': 'ui_resources', 9 'target_name': 'ui_resources',
10 'type': 'none', 10 'type': 'none',
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 'copies': [ 67 'copies': [
68 { 68 {
69 # GN version //ui/resources:copy_ui_resources_100_percent 69 # GN version //ui/resources:copy_ui_resources_100_percent
70 'destination': '<(PRODUCT_DIR)/ui', 70 'destination': '<(PRODUCT_DIR)/ui',
71 'files': [ 71 'files': [
72 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percen t.pak', 72 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percen t.pak',
73 ], 73 ],
74 }, 74 },
75 ], 75 ],
76 }], 76 }],
77 ['OS == "ios"', { 77 ['OS == "ios" or OS == "mac"', {
78 'actions': [ 78 'actions': [
79 { 79 {
80 # GN version: //ui/resources:copy_ui_test_pak 80 # GN version: //ui/resources:repack_ui_test_mac_locale_pack
81 'action_name': 'copy_ui_test_pak', 81 # Repack just the strings for the framework locales on Mac and
82 'message': 'Copying ui_test.pak into locale.pak', 82 # iOS. This emulates repack_locales.py, but just for en-US. Note
83 'inputs': [ 83 # ui_test.pak is not simply copied, because it causes leaks from
84 '<(PRODUCT_DIR)/ui_test.pak', 84 # allocations within system libraries when trying to load non-
85 ], 85 # string resources. http://crbug.com/413034.
86 'outputs': [ 86 'action_name': 'repack_ui_test_mac_locale_pack',
87 '<(PRODUCT_DIR)/ui/en.lproj/locale.pak', 87 'variables': {
88 ], 88 'pak_inputs': [
89 'action': [ 89 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en- US.pak',
90 'python', 90 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
91 '../../build/cp.py', 91 ],
92 '<@(_inputs)', 92 'pak_output': '<(PRODUCT_DIR)/ui/en.lproj/locale.pak',
93 '<@(_outputs)' 93 },
94 ], 94 'includes': [ '../../build/repack_action.gypi' ],
95 }, 95 },
96 ], 96 ],
97 }], 97 }],
98 ['OS != "mac" and OS !="ios"', { 98 ['OS != "mac" and OS !="ios"', {
99 'actions': [ 99 'actions': [
100 { 100 {
101 'action_name': 'copy_ui_test_pak', 101 'action_name': 'copy_ui_test_pak',
102 'message': 'Copying ui_test.pak into en-US.pak', 102 'message': 'Copying ui_test.pak into en-US.pak',
103 'inputs': [ 103 'inputs': [
104 '<(PRODUCT_DIR)/ui_test.pak', 104 '<(PRODUCT_DIR)/ui_test.pak',
105 ], 105 ],
106 'outputs': [ 106 'outputs': [
107 '<(PRODUCT_DIR)/ui/en-US.pak', 107 '<(PRODUCT_DIR)/ui/en-US.pak',
108 ], 108 ],
109 'action': [ 109 'action': [
110 'python', 110 'python',
111 '../../build/cp.py', 111 '../../build/cp.py',
112 '<@(_inputs)', 112 '<@(_inputs)',
113 '<@(_outputs)' 113 '<@(_outputs)'
114 ], 114 ],
115 }, 115 },
116 ], 116 ],
117 }], 117 }],
118 ], 118 ],
119 }, 119 },
120 ], 120 ],
121 } 121 }
OLDNEW
« no previous file with comments | « ui/resources/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698