OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 'toolkit_views2': 0, # ui/views/ is an experimental framework on Windows. | 8 'toolkit_views2': 0, # ui/views/ is an experimental framework on Windows. |
9 }, | 9 }, |
10 'target_defaults': { | 10 'target_defaults': { |
11 'sources/': [ | 11 'sources/': [ |
12 ['exclude', '/(cocoa|gtk|win)/'], | 12 ['exclude', '/(cocoa|gtk|win)/'], |
13 ['exclude', '_(cocoa|gtk|linux|mac|posix|win|x)\\.(cc|mm?)$'], | 13 ['exclude', '_(cocoa|gtk|linux|mac|posix|win|x)\\.(cc|mm?)$'], |
14 ['exclude', '/(gtk|win|x11)_[^/]*\\.cc$'], | 14 ['exclude', '/(gtk|win|x11)_[^/]*\\.cc$'], |
15 ], | 15 ], |
16 'conditions': [ | 16 'conditions': [ |
17 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {'sources/': [ | 17 ['toolkit_uses_gtk == 1', { |
18 ['include', '/gtk/'], | 18 'sources/': [ |
19 ['include', '_(gtk|linux|posix|skia|x)\\.cc$'], | 19 ['include', '/gtk/'], |
20 ['include', '/(gtk|x11)_[^/]*\\.cc$'], | 20 ['include', '_(gtk|linux|posix|skia|x)\\.cc$'], |
21 ]}], | 21 ['include', '/(gtk|x11)_[^/]*\\.cc$'], |
| 22 ], |
| 23 }], |
22 ['OS=="mac"', {'sources/': [ | 24 ['OS=="mac"', {'sources/': [ |
23 ['include', '/cocoa/'], | 25 ['include', '/cocoa/'], |
24 ['include', '_(cocoa|mac|posix)\\.(cc|mm?)$'], | 26 ['include', '_(cocoa|mac|posix)\\.(cc|mm?)$'], |
25 ]}, { # else: OS != "mac" | 27 ]}, { # else: OS != "mac" |
26 'sources/': [ | 28 'sources/': [ |
27 ['exclude', '\\.mm?$'], | 29 ['exclude', '\\.mm?$'], |
28 ], | 30 ], |
29 }], | 31 }], |
30 ['OS=="win"', | 32 ['OS=="win"', |
31 {'sources/': [ | 33 {'sources/': [ |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 ], | 65 ], |
64 }], | 66 }], |
65 ], | 67 ], |
66 } | 68 } |
67 | 69 |
68 # Local Variables: | 70 # Local Variables: |
69 # tab-width:2 | 71 # tab-width:2 |
70 # indent-tabs-mode:nil | 72 # indent-tabs-mode:nil |
71 # End: | 73 # End: |
72 # vim: set expandtab tabstop=2 shiftwidth=2: | 74 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |