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

Side by Side Diff: app/app.gyp

Issue 443011: Refactor OS-dependent filename exclusion patterns (Closed)
Patch Set: cleanups Created 11 years 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 | « no previous file | base/base.gyp » ('j') | build/common.gypi » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2009 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 # TODO: remove this helper when we have loops in GYP 7 # TODO: remove this helper when we have loops in GYP
8 'apply_locales_cmd': ['python', '../chrome/tools/build/apply_locales.py',], 8 'apply_locales_cmd': ['python', '../chrome/tools/build/apply_locales.py',],
9 'chromium_code': 1, 9 'chromium_code': 1,
10 'grit_info_cmd': ['python', '../tools/grit/grit_info.py',], 10 'grit_info_cmd': ['python', '../tools/grit/grit_info.py',],
11 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/app', 11 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/app',
12 'grit_cmd': ['python', '../tools/grit/grit.py'], 12 'grit_cmd': ['python', '../tools/grit/grit.py'],
13 'localizable_resources': [ 13 'localizable_resources': [
14 'resources/app_locale_settings.grd', 14 'resources/app_locale_settings.grd',
15 'resources/app_strings.grd', 15 'resources/app_strings.grd',
16 ], 16 ],
17 }, 17 },
18 'target_defaults': {
19 'sources/': [
20 ['exclude', '/(cocoa|gtk|win)/'],
21 ['exclude', '_(cocoa|gtk|linux|mac|posix|skia|win|x)\\.(cc|mm?)$'],
22 ['exclude', '/(gtk|win|x11)_[^/]*\\.cc$'],
23 ],
24 'conditions': [
25 ['OS=="linux"', {'sources/': [
26 ['include', '/gtk/'],
27 ['include', '_(gtk|linux|posix|skia|x)\\.cc$'],
28 ['include', '/(gtk|x11)_[^/]*\\.cc$'],
29 ]}],
30 ['OS=="mac"', {'sources/': [
31 ['include', '/cocoa/'],
32 ['include', '_(cocoa|mac|posix)\\.(cc|mm?)$'],
33 ]}, { # else: OS != "mac"
34 'sources/': [
35 ['exclude', '\\.mm?$'],
36 ],
37 }],
38 ['OS=="win"', {'sources/': [
39 ['include', '_(win)\\.cc$'],
40 ['include', '/win/'],
41 ['include', '/win_[^/]*\\.cc$'],
42 ]}],
43 ],
44 },
45 'targets': [ 18 'targets': [
46 { 19 {
47 'target_name': 'app_base', 20 'target_name': 'app_base',
48 'type': '<(library)', 21 'type': '<(library)',
49 'msvs_guid': '4631946D-7D5F-44BD-A5A8-504C0A7033BE', 22 'msvs_guid': '4631946D-7D5F-44BD-A5A8-504C0A7033BE',
50 'dependencies': [ 23 'dependencies': [
51 'app_resources', 24 'app_resources',
52 'app_strings', 25 'app_strings',
53 '../base/base.gyp:base', 26 '../base/base.gyp:base',
54 '../base/base.gyp:base_i18n', 27 '../base/base.gyp:base_i18n',
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 ], 396 ],
424 }, 397 },
425 ], 398 ],
426 } 399 }
427 400
428 # Local Variables: 401 # Local Variables:
429 # tab-width:2 402 # tab-width:2
430 # indent-tabs-mode:nil 403 # indent-tabs-mode:nil
431 # End: 404 # End:
432 # vim: set expandtab tabstop=2 shiftwidth=2: 405 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « no previous file | base/base.gyp » ('j') | build/common.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698