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

Side by Side Diff: build/filename_rules.gypi

Issue 1493773002: Exclude platform_test.cc files when platform does not match (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | 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 # 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(_browsertest|_unittest)?\\.(h|cc)$'], 12 'sources/': [ ['exclude', '_win(_browsertest|_unittest|_test)?\\.(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|mach)(_unittest)?\\.(h|cc|c|mm?)$'] , 17 'sources/': [ ['exclude', '_(cocoa|mac|mach)(_unittest|_test)?\\.(h|cc|c|m m?)$'],
18 ['exclude', '(^|/)(cocoa|mac|mach)/'] ], 18 ['exclude', '(^|/)(cocoa|mac|mach)/'] ],
19 }], 19 }],
20 ['OS!="ios" or >(nacl_untrusted_build)==1', { 20 ['OS!="ios" or >(nacl_untrusted_build)==1', {
21 'sources/': [ ['exclude', '_ios(_unittest)?\\.(h|cc|mm?)$'], 21 'sources/': [ ['exclude', '_ios(_unittest|_test)?\\.(h|cc|mm?)$'],
22 ['exclude', '(^|/)ios/'] ], 22 ['exclude', '(^|/)ios/'] ],
23 }], 23 }],
24 ['(OS!="mac" and OS!="ios") or >(nacl_untrusted_build)==1', { 24 ['(OS!="mac" and OS!="ios") or >(nacl_untrusted_build)==1', {
25 'sources/': [ ['exclude', '\\.mm?$' ] ], 25 'sources/': [ ['exclude', '\\.mm?$' ] ],
26 }], 26 }],
27 # 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
28 # shared at this point. 28 # shared at this point.
29 # 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.
30 # 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
31 # files on non-linux. 31 # files on non-linux.
32 ['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', {
33 'sources/': [ 33 'sources/': [
34 ['exclude', '_linux(_unittest)?\\.(h|cc)$'], 34 ['exclude', '_linux(_unittest|_test)?\\.(h|cc)$'],
35 ['exclude', '(^|/)linux/'], 35 ['exclude', '(^|/)linux/'],
36 ], 36 ],
37 }], 37 }],
38 ['OS!="android" or _toolset=="host" or >(nacl_untrusted_build)==1', { 38 ['OS!="android" or _toolset=="host" or >(nacl_untrusted_build)==1', {
39 'sources/': [ 39 'sources/': [
40 ['exclude', '_android(_unittest)?\\.(h|cc)$'], 40 ['exclude', '_android(_unittest|_test)?\\.(h|cc)$'],
41 ['exclude', '(^|/)android/'], 41 ['exclude', '(^|/)android/'],
42 ], 42 ],
43 }], 43 }],
44 ['OS=="win" and >(nacl_untrusted_build)==0', { 44 ['OS=="win" and >(nacl_untrusted_build)==0', {
45 'sources/': [ 45 'sources/': [
46 ['exclude', '_posix(_unittest)?\\.(h|cc)$'], 46 ['exclude', '_posix(_unittest|_test)?\\.(h|cc)$'],
47 ['exclude', '(^|/)posix/'], 47 ['exclude', '(^|/)posix/'],
48 ], 48 ],
49 }], 49 }],
50 ['<(chromeos)!=1 or >(nacl_untrusted_build)==1', { 50 ['<(chromeos)!=1 or >(nacl_untrusted_build)==1', {
51 'sources/': [ 51 'sources/': [
52 ['exclude', '_chromeos(_unittest)?\\.(h|cc)$'], 52 ['exclude', '_chromeos(_unittest|_test)?\\.(h|cc)$'],
53 ['exclude', '(^|/)chromeos/'], 53 ['exclude', '(^|/)chromeos/'],
54 ], 54 ],
55 }], 55 }],
56 ['>(nacl_untrusted_build)==0', { 56 ['>(nacl_untrusted_build)==0', {
57 'sources/': [ 57 'sources/': [
58 ['exclude', '_nacl(_unittest)?\\.(h|cc)$'], 58 ['exclude', '_nacl(_unittest)?\\.(h|cc)$'],
59 ], 59 ],
60 }], 60 }],
61 ['OS!="linux" and OS!="openbsd" and OS!="freebsd" or >(nacl_untrusted_build) ==1', { 61 ['OS!="linux" and OS!="openbsd" and OS!="freebsd" or >(nacl_untrusted_build) ==1', {
62 'sources/': [ 62 'sources/': [
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 'sources/': [ ['exclude', '_ashwin\\.(h|cc)$'] ] 97 'sources/': [ ['exclude', '_ashwin\\.(h|cc)$'] ]
98 }], 98 }],
99 ['<(use_ozone)==0 or >(nacl_untrusted_build)==1', { 99 ['<(use_ozone)==0 or >(nacl_untrusted_build)==1', {
100 'sources/': [ ['exclude', '_ozone(_browsertest|_unittest)?\\.(h|cc)$'] ] 100 'sources/': [ ['exclude', '_ozone(_browsertest|_unittest)?\\.(h|cc)$'] ]
101 }], 101 }],
102 ['<(use_pango)==0', { 102 ['<(use_pango)==0', {
103 'sources/': [ ['exclude', '(^|_)pango(_util|_browsertest|_unittest)?\\.(h| cc)$'], ], 103 'sources/': [ ['exclude', '(^|_)pango(_util|_browsertest|_unittest)?\\.(h| cc)$'], ],
104 }], 104 }],
105 ] 105 ]
106 } 106 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698