OLD | NEW |
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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome', | 8 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome', |
9 }, | 9 }, |
10 | 10 |
11 'targets': [ | 11 'targets': [ |
12 { | 12 { |
13 'target_name': 'ash', | 13 'target_name': 'ash', |
14 'type': '<(component)', | 14 'type': '<(component)', |
15 'dependencies': [ | 15 'dependencies': [ |
16 'ash_strings', | |
17 '../base/base.gyp:base', | 16 '../base/base.gyp:base', |
18 '../base/base.gyp:base_i18n', | 17 '../base/base.gyp:base_i18n', |
19 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 18 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
20 '../build/temp_gyp/googleurl.gyp:googleurl', | 19 '../build/temp_gyp/googleurl.gyp:googleurl', |
21 '../net/net.gyp:net', | 20 '../net/net.gyp:net', |
22 '../skia/skia.gyp:skia', | 21 '../skia/skia.gyp:skia', |
23 '../third_party/icu/icu.gyp:icui18n', | 22 '../third_party/icu/icu.gyp:icui18n', |
24 '../third_party/icu/icu.gyp:icuuc', | 23 '../third_party/icu/icu.gyp:icuuc', |
25 '../ui/aura/aura.gyp:aura', | 24 '../ui/aura/aura.gyp:aura', |
26 '../ui/base/strings/ui_strings.gyp:ui_strings', | 25 '../ui/base/strings/ui_strings.gyp:ui_strings', |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 ['exclude', 'tooltips/tooltip_controller_unittest.cc'], | 258 ['exclude', 'tooltips/tooltip_controller_unittest.cc'], |
260 ], | 259 ], |
261 'dependencies': [ | 260 'dependencies': [ |
262 # Mac tests access resources via the 'AuraShell.app' directory. | 261 # Mac tests access resources via the 'AuraShell.app' directory. |
263 'ash_shell', | 262 'ash_shell', |
264 ], | 263 ], |
265 # Special linker instructions that avoids stripping Obj-C classes that | 264 # Special linker instructions that avoids stripping Obj-C classes that |
266 # are not referenced in code, but are referenced in nibs. | 265 # are not referenced in code, but are referenced in nibs. |
267 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, | 266 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, |
268 }], | 267 }], |
269 ['use_glib == 1', { | |
270 'dependencies': [ | |
271 'aura_shell_unittests_strings', | |
272 ], | |
273 }], | |
274 ], | 268 ], |
275 }, | 269 }, |
276 { | 270 { |
277 'target_name': 'ash_shell', | 271 'target_name': 'ash_shell', |
278 'type': 'executable', | 272 'type': 'executable', |
279 'dependencies': [ | 273 'dependencies': [ |
280 '../base/base.gyp:base', | 274 '../base/base.gyp:base', |
281 '../base/base.gyp:base_i18n', | 275 '../base/base.gyp:base_i18n', |
282 '../chrome/chrome_resources.gyp:packed_resources', | 276 '../chrome/chrome_resources.gyp:packed_resources', |
283 '../skia/skia.gyp:skia', | 277 '../skia/skia.gyp:skia', |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 ], | 324 ], |
331 'mac_bundle_resources!': [ | 325 'mac_bundle_resources!': [ |
332 'shell/cocoa/app-Info.plist', | 326 'shell/cocoa/app-Info.plist', |
333 ], | 327 ], |
334 'xcode_settings': { | 328 'xcode_settings': { |
335 'INFOPLIST_FILE': 'shell/cocoa/app-Info.plist', | 329 'INFOPLIST_FILE': 'shell/cocoa/app-Info.plist', |
336 }, | 330 }, |
337 }], | 331 }], |
338 ], | 332 ], |
339 }, | 333 }, |
340 { | |
341 'target_name': 'ash_strings', | |
342 'type': 'none', | |
343 'actions': [ | |
344 # Localizable resources. | |
345 { | |
346 'action_name': 'ash_strings', | |
347 'variables': { | |
348 'grit_grd_file': 'ash_strings.grd', | |
349 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ash_strings', | |
350 }, | |
351 'includes': [ '../build/grit_action.gypi' ], | |
352 }, | |
353 ], | |
354 'includes': [ '../build/grit_target.gypi' ], | |
355 }, | |
356 ], | |
357 'conditions': [ | |
358 ['os_posix == 1 and OS != "mac"', { | |
359 'targets': [{ | |
360 'target_name': 'aura_shell_unittests_strings', | |
361 'type': 'none', | |
362 'variables': { | |
363 'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py', | |
364 }, | |
365 'actions': [ | |
366 { | |
367 'action_name': 'repack_aura_shell_unittests_strings', | |
368 'variables': { | |
369 'pak_inputs': [ | |
370 '<(SHARED_INTERMEDIATE_DIR)/ash_strings/ash_strings_en-US.pak', | |
371 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_en-US.pak', | |
372 '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_se
ttings_en-US.pak', | |
373 ], | |
374 }, | |
375 'inputs': [ | |
376 '<(repack_path)', | |
377 '<@(pak_inputs)', | |
378 ], | |
379 'outputs': [ | |
380 '<(PRODUCT_DIR)/aura_shell_unittests_strings/en-US.pak', | |
381 ], | |
382 'action': ['python', '<(repack_path)', '<@(_outputs)', | |
383 '<@(pak_inputs)'], | |
384 }, | |
385 ], | |
386 }], | |
387 }], | |
388 ], | 334 ], |
389 } | 335 } |
OLD | NEW |