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

Side by Side Diff: chrome/chrome_resources.gyp

Issue 11189031: Add iOS support to the chrome/ resource gyp/gypi files (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 8 years, 2 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 | « chrome/chrome_repack_resources.gypi ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 'variables': { 5 'variables': {
6 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome', 6 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
7 'repack_locales_cmd': ['python', 'tools/build/repack_locales.py'], 7 'repack_locales_cmd': ['python', 'tools/build/repack_locales.py'],
8 }, 8 },
9 'targets': [ 9 'targets': [
10 { 10 {
11 'target_name': 'chrome_extra_resources', 11 'target_name': 'chrome_extra_resources',
12 'type': 'none', 12 'type': 'none',
13 'dependencies': [
14 '../content/browser/debugger/devtools_resources.gyp:devtools_resources',
15 ],
16 # These resources end up in resources.pak because they are resources 13 # These resources end up in resources.pak because they are resources
17 # used by internal pages. Putting them in a spearate pak file makes 14 # used by internal pages. Putting them in a spearate pak file makes
18 # it easier for us to reference them internally. 15 # it easier for us to reference them internally.
19 'actions': [ 16 'actions': [
20 { 17 {
21 'action_name': 'component_extension_resources',
22 'variables': {
23 'grit_grd_file': 'browser/resources/component_extension_resources.gr d',
24 },
25 'includes': [ '../build/grit_action.gypi' ],
26 },
27 {
28 'action_name': 'net_internals_resources',
29 'variables': {
30 'grit_grd_file': 'browser/resources/net_internals_resources.grd',
31 },
32 'includes': [ '../build/grit_action.gypi' ],
33 },
34 {
35 'action_name': 'options_resources',
36 'variables': {
37 'grit_grd_file': 'browser/resources/options_resources.grd',
38 },
39 'includes': [ '../build/grit_action.gypi' ],
40 },
41 {
42 'action_name': 'quota_internals_resources',
43 'variables': {
44 'grit_grd_file': 'browser/resources/quota_internals_resources.grd',
45 },
46 'includes': [ '../build/grit_action.gypi' ],
47 },
48 {
49 'action_name': 'shared_resources', 18 'action_name': 'shared_resources',
50 'variables': { 19 'variables': {
51 'grit_grd_file': 'browser/resources/shared_resources.grd', 20 'grit_grd_file': 'browser/resources/shared_resources.grd',
52 }, 21 },
53 'includes': [ '../build/grit_action.gypi' ], 22 'includes': [ '../build/grit_action.gypi' ],
54 }, 23 },
55 { 24 {
56 'action_name': 'sync_internals_resources', 25 'action_name': 'sync_internals_resources',
57 'variables': { 26 'variables': {
58 'grit_grd_file': 'browser/resources/sync_internals_resources.grd', 27 'grit_grd_file': 'browser/resources/sync_internals_resources.grd',
59 }, 28 },
60 'includes': [ '../build/grit_action.gypi' ], 29 'includes': [ '../build/grit_action.gypi' ],
61 }, 30 },
62 {
63 'action_name': 'devtools_discovery_page_resources',
64 'variables': {
65 'grit_grd_file':
66 'browser/debugger/frontend/devtools_discovery_page_resources.grd' ,
67 },
68 'includes': [ '../build/grit_action.gypi' ]
69 },
70 ], 31 ],
71 'includes': [ '../build/grit_target.gypi' ], 32 'includes': [ '../build/grit_target.gypi' ],
72 'copies': [ 33 'conditions': [
73 { 34 ['OS != "ios"', {
74 'destination': '<(PRODUCT_DIR)/resources/extension/demo', 35 'dependencies': [
75 'files': [ 36 '../content/browser/debugger/devtools_resources.gyp:devtools_resourc es',
76 'browser/resources/extension_resource/demo/library.js',
77 ], 37 ],
78 }, 38 'actions': [
79 ] 39 {
40 'action_name': 'component_extension_resources',
41 'variables': {
42 'grit_grd_file': 'browser/resources/component_extension_resource s.grd',
43 },
44 'includes': [ '../build/grit_action.gypi' ],
45 },
46 {
47 'action_name': 'net_internals_resources',
48 'variables': {
49 'grit_grd_file': 'browser/resources/net_internals_resources.grd' ,
50 },
51 'includes': [ '../build/grit_action.gypi' ],
52 },
53 {
54 'action_name': 'options_resources',
55 'variables': {
56 'grit_grd_file': 'browser/resources/options_resources.grd',
57 },
58 'includes': [ '../build/grit_action.gypi' ],
59 },
60 {
61 'action_name': 'quota_internals_resources',
62 'variables': {
63 'grit_grd_file': 'browser/resources/quota_internals_resources.gr d',
64 },
65 'includes': [ '../build/grit_action.gypi' ],
66 },
67 {
68 'action_name': 'devtools_discovery_page_resources',
69 'variables': {
70 'grit_grd_file':
71 'browser/debugger/frontend/devtools_discovery_page_resources. grd',
72 },
73 'includes': [ '../build/grit_action.gypi' ]
74 },
75 ],
76 'copies': [
77 {
78 'destination': '<(PRODUCT_DIR)/resources/extension/demo',
79 'files': [
80 'browser/resources/extension_resource/demo/library.js',
81 ],
82 },
83 ],
84 }],
85 ],
80 }, 86 },
81 { 87 {
82 # TODO(mark): It would be better if each static library that needed 88 # TODO(mark): It would be better if each static library that needed
83 # to run grit would list its own .grd files, but unfortunately some 89 # to run grit would list its own .grd files, but unfortunately some
84 # of the static libraries currently have circular dependencies among 90 # of the static libraries currently have circular dependencies among
85 # generated headers. 91 # generated headers.
86 'target_name': 'chrome_resources', 92 'target_name': 'chrome_resources',
87 'type': 'none', 93 'type': 'none',
88 'actions': [ 94 'actions': [
89 # Data resources. 95 # Data resources.
(...skipping 11 matching lines...) Expand all
101 }, 107 },
102 'includes': [ '../build/grit_action.gypi' ], 108 'includes': [ '../build/grit_action.gypi' ],
103 }, 109 },
104 { 110 {
105 'action_name': 'renderer_resources', 111 'action_name': 'renderer_resources',
106 'variables': { 112 'variables': {
107 'grit_grd_file': 'renderer/resources/renderer_resources.grd', 113 'grit_grd_file': 'renderer/resources/renderer_resources.grd',
108 }, 114 },
109 'includes': [ '../build/grit_action.gypi' ], 115 'includes': [ '../build/grit_action.gypi' ],
110 }, 116 },
111 { 117 ],
112 'action_name': 'extensions_api_resources', 118 'conditions': [
113 'variables': { 119 ['OS != "ios"', {
114 'grit_grd_file': 'common/extensions_api_resources.grd', 120 'actions': [
115 }, 121 {
116 'includes': [ '../build/grit_action.gypi' ], 122 'action_name': 'extensions_api_resources',
117 } 123 'variables': {
124 'grit_grd_file': 'common/extensions_api_resources.grd',
125 },
126 'includes': [ '../build/grit_action.gypi' ],
127 }
128 ],
129 }],
118 ], 130 ],
119 'includes': [ '../build/grit_target.gypi' ], 131 'includes': [ '../build/grit_target.gypi' ],
120 }, 132 },
121 { 133 {
122 # TODO(mark): It would be better if each static library that needed 134 # TODO(mark): It would be better if each static library that needed
123 # to run grit would list its own .grd files, but unfortunately some 135 # to run grit would list its own .grd files, but unfortunately some
124 # of the static libraries currently have circular dependencies among 136 # of the static libraries currently have circular dependencies among
125 # generated headers. 137 # generated headers.
126 'target_name': 'chrome_strings', 138 'target_name': 'chrome_strings',
127 'type': 'none', 139 'type': 'none',
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 'conditions': [ 183 'conditions': [
172 ['chromeos==1', { 184 ['chromeos==1', {
173 'platform_locale_settings_grd': 185 'platform_locale_settings_grd':
174 'app/resources/locale_settings_cros.grd', 186 'app/resources/locale_settings_cros.grd',
175 }, { # chromeos==0 187 }, { # chromeos==0
176 'platform_locale_settings_grd': 188 'platform_locale_settings_grd':
177 'app/resources/locale_settings_linux.grd', 189 'app/resources/locale_settings_linux.grd',
178 }], 190 }],
179 ], 191 ],
180 },], 192 },],
181 ['os_posix == 1 and OS != "mac" and OS != "linux"', { 193 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "linux"', {
182 'platform_locale_settings_grd': 194 'platform_locale_settings_grd':
183 'app/resources/locale_settings_linux.grd', 195 'app/resources/locale_settings_linux.grd',
184 },], 196 },],
185 ['OS=="mac"', { 197 ['OS == "mac" or OS == "ios"', {
186 'platform_locale_settings_grd': 198 'platform_locale_settings_grd':
187 'app/resources/locale_settings_mac.grd', 199 'app/resources/locale_settings_mac.grd',
188 }], 200 }],
189 ], # conditions 201 ], # conditions
190 }, # variables 202 }, # variables
191 'actions': [ 203 'actions': [
192 { 204 {
193 'action_name': 'platform_locale_settings', 205 'action_name': 'platform_locale_settings',
194 'variables': { 206 'variables': {
195 'grit_grd_file': '<(platform_locale_settings_grd)', 207 'grit_grd_file': '<(platform_locale_settings_grd)',
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 }, 241 },
230 'dependencies': [ 242 'dependencies': [
231 'chrome_extra_resources', 243 'chrome_extra_resources',
232 ], 244 ],
233 'actions': [ 245 'actions': [
234 { 246 {
235 'includes': ['chrome_repack_resources.gypi'] 247 'includes': ['chrome_repack_resources.gypi']
236 }, 248 },
237 ], 249 ],
238 'conditions': [ 250 'conditions': [
239 ['OS != "mac"', { 251 ['OS != "mac" and OS != "ios"', {
240 # We'll install the resource files to the product directory. The Mac 252 # We'll install the resource files to the product directory. The Mac
241 # copies the results over as bundle resources in its own special way. 253 # copies the results over as bundle resources in its own special way.
242 'copies': [ 254 'copies': [
243 { 255 {
244 'destination': '<(PRODUCT_DIR)', 256 'destination': '<(PRODUCT_DIR)',
245 'files': [ 257 'files': [
246 '<(SHARED_INTERMEDIATE_DIR)/repack/resources.pak' 258 '<(SHARED_INTERMEDIATE_DIR)/repack/resources.pak'
247 ], 259 ],
248 }, 260 },
249 ], 261 ],
250 }] 262 }],
251 ] 263 ],
252 }, 264 },
253 { 265 {
254 'target_name': 'packed_resources', 266 'target_name': 'packed_resources',
255 'type': 'none', 267 'type': 'none',
256 'variables': { 268 'variables': {
257 'repack_path': '../tools/grit/grit/format/repack.py', 269 'repack_path': '../tools/grit/grit/format/repack.py',
258 }, 270 },
259 'dependencies': [ 271 'dependencies': [
260 # MSVS needs the dependencies explictly named, Make is able to 272 # MSVS needs the dependencies explictly named, Make is able to
261 # derive the dependencies from the output files. 273 # derive the dependencies from the output files.
262 'chrome_resources', 274 'chrome_resources',
263 'chrome_strings', 275 'chrome_strings',
264 'platform_locale_settings', 276 'platform_locale_settings',
265 'theme_resources', 277 'theme_resources',
266 # TODO(zork): Protect this with if use_aura==1
267 '<(DEPTH)/ash/ash_strings.gyp:ash_strings',
268 '<(DEPTH)/content/content_resources.gyp:content_resources',
269 '<(DEPTH)/net/net.gyp:net_resources', 278 '<(DEPTH)/net/net.gyp:net_resources',
270 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings', 279 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings',
271 '<(DEPTH)/ui/ui.gyp:ui_resources', 280 '<(DEPTH)/ui/ui.gyp:ui_resources',
272 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources',
273 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings',
274 ], 281 ],
275 'actions': [ 282 'actions': [
276 { 283 {
277 'includes': ['chrome_repack_chrome.gypi'] 284 'includes': ['chrome_repack_chrome.gypi']
278 }, 285 },
279 { 286 {
280 'includes': ['chrome_repack_locales.gypi'] 287 'includes': ['chrome_repack_locales.gypi']
281 }, 288 },
282 { 289 {
283 'includes': ['chrome_repack_pseudo_locales.gypi'] 290 'includes': ['chrome_repack_pseudo_locales.gypi']
284 }, 291 },
285 { 292 {
286 'includes': ['chrome_repack_chrome_100_percent.gypi'] 293 'includes': ['chrome_repack_chrome_100_percent.gypi']
287 }, 294 },
288 { 295 {
289 'includes': ['chrome_repack_chrome_200_percent.gypi'] 296 'includes': ['chrome_repack_chrome_200_percent.gypi']
290 }, 297 },
291 { 298 {
292 'includes': ['chrome_repack_chrome_touch_100_percent.gypi'] 299 'includes': ['chrome_repack_chrome_touch_100_percent.gypi']
293 }, 300 },
294 { 301 {
295 'includes': ['chrome_repack_chrome_touch_140_percent.gypi'] 302 'includes': ['chrome_repack_chrome_touch_140_percent.gypi']
296 }, 303 },
297 { 304 {
298 'includes': ['chrome_repack_chrome_touch_180_percent.gypi'] 305 'includes': ['chrome_repack_chrome_touch_180_percent.gypi']
299 }, 306 },
300 ], 307 ],
301 'conditions': [ 308 'conditions': [
309 ['OS != "ios"', {
310 'dependencies': [
311 # TODO(zork): Protect this with if use_aura==1
312 '<(DEPTH)/ash/ash_strings.gyp:ash_strings',
313 '<(DEPTH)/content/content_resources.gyp:content_resources',
314 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources',
315 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings',
316 ],
317 }],
302 ['use_ash==1', { 318 ['use_ash==1', {
303 'dependencies': [ 319 'dependencies': [
304 '<(DEPTH)/ash/ash.gyp:ash_resources', 320 '<(DEPTH)/ash/ash.gyp:ash_resources',
305 '<(DEPTH)/ash/ash.gyp:ash_wallpaper_resources', 321 '<(DEPTH)/ash/ash.gyp:ash_wallpaper_resources',
306 ], 322 ],
307 }], 323 }],
308 ['OS != "mac"', { 324 ['OS != "mac" and OS != "ios"', {
309 # Copy pak files to the product directory. These files will be picked 325 # Copy pak files to the product directory. These files will be picked
310 # up by the following installer scripts: 326 # up by the following installer scripts:
311 # - Windows: chrome/installer/mini_installer/chrome.release 327 # - Windows: chrome/installer/mini_installer/chrome.release
312 # - Linux: chrome/installer/linux/internal/common/installer.include 328 # - Linux: chrome/installer/linux/internal/common/installer.include
313 # Ensure that the above scripts are updated when adding or removing 329 # Ensure that the above scripts are updated when adding or removing
314 # pak files. 330 # pak files.
315 # Copying files to the product directory is not needed on the Mac 331 # Copying files to the product directory is not needed on the Mac
316 # since the framework build phase will copy them into the framework 332 # since the framework build phase will copy them into the framework
317 # bundle directly. 333 # bundle directly.
318 'copies': [ 334 'copies': [
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 'destination': '<(PRODUCT_DIR)', 387 'destination': '<(PRODUCT_DIR)',
372 'files': [ 388 'files': [
373 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_100_percent. pak', 389 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_100_percent. pak',
374 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_140_percent. pak', 390 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_140_percent. pak',
375 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_180_percent. pak', 391 '<(SHARED_INTERMEDIATE_DIR)/repack/chrome_touch_180_percent. pak',
376 ], 392 ],
377 }, 393 },
378 ], 394 ],
379 }], 395 }],
380 ], # conditions 396 ], # conditions
381 }], # end OS != "mac" 397 }], # end OS != "mac" and OS != "ios"
382 ], # conditions 398 ], # conditions
383 }, 399 },
384 ], # targets 400 ], # targets
385 } 401 }
OLDNEW
« no previous file with comments | « chrome/chrome_repack_resources.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698