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 # This gypi file defines the patterns used for determining whether a | 5 # This gypi file defines the patterns used for determining whether a |
6 # file is excluded from the build on a given platform. It is | 6 # file is excluded from the build on a given platform. It is |
7 # included by common.gypi for chromium_code. | 7 # included by common.gypi for chromium_code. |
8 | 8 |
9 { | 9 { |
10 'target_conditions': [ | 10 'target_conditions': [ |
11 ['OS!="win" or >(nacl_untrusted_build)==1', { | 11 ['OS!="win" or >(nacl_untrusted_build)==1', { |
12 'sources/': [ ['exclude', '_win(_unittest)?\\.(h|cc)$'], | 12 'sources/': [ ['exclude', '_win(_unittest)?\\.(h|cc)$'], |
13 ['exclude', '(^|/)win/'], | 13 ['exclude', '(^|/)win/'], |
14 ['exclude', '(^|/)win_[^/]*\\.(h|cc)$'] ], | 14 ['exclude', '(^|/)win_[^/]*\\.(h|cc)$'] ], |
15 }], | 15 }], |
16 ['OS!="mac" or >(nacl_untrusted_build)==1', { | 16 ['OS!="mac" or >(nacl_untrusted_build)==1', { |
17 'sources/': [ ['exclude', '_(cocoa|mac)(_unittest)?\\.(h|cc)$'], | 17 'sources/': [ ['exclude', '_(cocoa|mac)(_unittest)?\\.(cc|m|mm)$'], |
Mark Mentovai
2012/06/29 13:17:28
Don’t lose the h here or on line 21.
Mark Mentovai
2012/06/29 13:17:28
I usually write 'm|mm' as 'mm?', as on line 25.
stuartmorgan
2012/06/29 13:26:21
Done.
stuartmorgan
2012/06/29 13:26:21
Done.
| |
18 ['exclude', '(^|/)(cocoa|mac)/'], | 18 ['exclude', '(^|/)(cocoa|mac)/'] ], |
19 ['exclude', '\\.mm?$' ] ], | 19 }], |
20 ['OS!="ios" or >(nacl_untrusted_build)==1', { | |
21 'sources/': [ ['exclude', '_ios(_unittest)?\\.(cc|m|mm)$'], | |
22 ['exclude', '(^|/)ios/'] ], | |
23 }], | |
24 ['(OS!="mac" and OS!="ios") or >(nacl_untrusted_build)==1', { | |
25 'sources/': [ ['exclude', '\\.mm?$' ] ], | |
20 }], | 26 }], |
21 # Do not exclude the linux files on *BSD since most of them can be | 27 # Do not exclude the linux files on *BSD since most of them can be |
22 # shared at this point. | 28 # shared at this point. |
23 # In case a file is not needed, it is going to be excluded later on. | 29 # In case a file is not needed, it is going to be excluded later on. |
24 # TODO(evan): the above is not correct; we shouldn't build _linux | 30 # TODO(evan): the above is not correct; we shouldn't build _linux |
25 # files on non-linux. | 31 # files on non-linux. |
26 ['OS!="linux" and OS!="openbsd" and OS!="freebsd" or >(nacl_untrusted_build) ==1', { | 32 ['OS!="linux" and OS!="openbsd" and OS!="freebsd" or >(nacl_untrusted_build) ==1', { |
27 'sources/': [ | 33 'sources/': [ |
28 ['exclude', '_linux(_unittest)?\\.(h|cc)$'], | 34 ['exclude', '_linux(_unittest)?\\.(h|cc)$'], |
29 ['exclude', '(^|/)linux/'], | 35 ['exclude', '(^|/)linux/'], |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
81 ['<(use_aura)==0 or OS!="win" or >(nacl_untrusted_build)==1', { | 87 ['<(use_aura)==0 or OS!="win" or >(nacl_untrusted_build)==1', { |
82 'sources/': [ ['exclude', '_aurawin\\.(h|cc)$'] ] | 88 'sources/': [ ['exclude', '_aurawin\\.(h|cc)$'] ] |
83 }], | 89 }], |
84 ['<(use_ash)==0 or >(nacl_untrusted_build)==1', { | 90 ['<(use_ash)==0 or >(nacl_untrusted_build)==1', { |
85 'sources/': [ ['exclude', '_ash(_unittest)?\\.(h|cc)$'], | 91 'sources/': [ ['exclude', '_ash(_unittest)?\\.(h|cc)$'], |
86 ['exclude', '(^|/)ash/'], | 92 ['exclude', '(^|/)ash/'], |
87 ] | 93 ] |
88 }], | 94 }], |
89 ] | 95 ] |
90 } | 96 } |
OLD | NEW |