Fixes option-right in textfields when VoiceOver is set to read to the right of the...
[chromium-blink-merge.git] / build / filename_rules.gypi
blobc6dceeadc11c3e4430f29d4c84708a0db0e73c23
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
3 # found in the LICENSE file.
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
7 # included by common.gypi for chromium_code.
10   'conditions': [
11     ['OS!="win"', {
12       'sources/': [ ['exclude', '_win(_unittest)?\\.(h|cc)$'],
13                     ['exclude', '(^|/)win/'],
14                     ['exclude', '(^|/)win_[^/]*\\.(h|cc)$'] ],
15     }],
16     ['OS!="mac"', {
17       'sources/': [ ['exclude', '_(cocoa|mac)(_unittest)?\\.(h|cc)$'],
18                     ['exclude', '(^|/)(cocoa|mac)/'],
19                     ['exclude', '\\.mm?$' ] ],
20     }],
21     # Do not exclude the linux files on *BSD since most of them can be
22     # shared at this point.
23     # 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
25     # files on non-linux.
26     ['OS!="linux" and OS!="openbsd" and OS!="freebsd"', {
27       'sources/': [
28         ['exclude', '_linux(_unittest)?\\.(h|cc)$'],
29         ['exclude', '(^|/)linux/'],
30       ],
31     }],
32     ['OS!="android" and OS!="linux" and OS!="openbsd" and OS!="freebsd"', {
33       'sources/': [
34         ['exclude', '_linuxish(_unittest)?\\.(h|cc)$'],
35         ['exclude', '(^|/)linuxish/'],
36       ],
37     }],
38     ['OS!="android"', {
39       'sources/': [
40         ['exclude', '_android(_unittest)?\\.cc$'],
41         ['exclude', '(^|/)android/'],
42       ],
43     }],
44     ['OS=="win"', {
45       'sources/': [
46         ['exclude', '_posix(_unittest)?\\.(h|cc)$'],
47         ['exclude', '(^|/)posix/'],
48       ],
50     }],
51     ['chromeos!=1', {
52       'sources/': [ ['exclude', '_chromeos\\.(h|cc)$'] ]
53     }],
54     ['OS!="linux" and OS!="openbsd" and OS!="freebsd"', {
55       'sources/': [
56         ['exclude', '_xdg(_unittest)?\\.(h|cc)$'],
57       ],
58     }],
61     ['use_x11!=1', {
62       'sources/': [
63         ['exclude', '_(chromeos|x|x11)(_unittest)?\\.(h|cc)$'],
64         ['exclude', '(^|/)x11_[^/]*\\.(h|cc)$'],
65       ],
66     }],
67     ['toolkit_uses_gtk!=1', {
68       'sources/': [
69         ['exclude', '_gtk(_unittest)?\\.(h|cc)$'],
70         ['exclude', '(^|/)gtk/'],
71         ['exclude', '(^|/)gtk_[^/]*\\.(h|cc)$'],
72       ],
73     }],
74     ['toolkit_views==0', {
75       'sources/': [ ['exclude', '_views\\.(h|cc)$'] ]
76     }],
77     ['use_aura==0', {
78       'sources/': [ ['exclude', '_aura(_unittest)?\\.(h|cc)$'],
79                     ['exclude', '(^|/)aura/'],
80       ]
81     }],
82     ['use_aura==0 or use_x11==0', {
83       'sources/': [ ['exclude', '_aurax11\\.(h|cc)$'] ]
84     }],
85     ['use_aura==0 or OS!="win"', {
86       'sources/': [ ['exclude', '_aurawin\\.(h|cc)$'] ]
87     }],
88     ['use_ash==0', {
89       'sources/': [ ['exclude', '_ash(_unittest)?\\.(h|cc)$'],
90                     ['exclude', '(^|/)ash/'],
91       ]
92     }],
93   ]