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.
12 'sources/': [ ['exclude', '_win(_unittest)?\\.(h|cc)$'],
13 ['exclude', '(^|/)win/'],
14 ['exclude', '(^|/)win_[^/]*\\.(h|cc)$'] ],
17 'sources/': [ ['exclude', '_(cocoa|mac)(_unittest)?\\.(h|cc)$'],
18 ['exclude', '(^|/)(cocoa|mac)/'],
19 ['exclude', '\\.mm?$' ] ],
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
26 ['OS!="linux" and OS!="openbsd" and OS!="freebsd"', {
28 ['exclude', '_linux(_unittest)?\\.(h|cc)$'],
29 ['exclude', '(^|/)linux/'],
32 ['OS!="android" and OS!="linux" and OS!="openbsd" and OS!="freebsd"', {
34 ['exclude', '_linuxish(_unittest)?\\.(h|cc)$'],
35 ['exclude', '(^|/)linuxish/'],
40 ['exclude', '_android(_unittest)?\\.cc$'],
41 ['exclude', '(^|/)android/'],
46 ['exclude', '_posix(_unittest)?\\.(h|cc)$'],
47 ['exclude', '(^|/)posix/'],
52 'sources/': [ ['exclude', '_chromeos\\.(h|cc)$'] ]
54 ['OS!="linux" and OS!="openbsd" and OS!="freebsd"', {
56 ['exclude', '_xdg(_unittest)?\\.(h|cc)$'],
63 ['exclude', '_(chromeos|x|x11)(_unittest)?\\.(h|cc)$'],
64 ['exclude', '(^|/)x11_[^/]*\\.(h|cc)$'],
67 ['toolkit_uses_gtk!=1', {
69 ['exclude', '_gtk(_unittest)?\\.(h|cc)$'],
70 ['exclude', '(^|/)gtk/'],
71 ['exclude', '(^|/)gtk_[^/]*\\.(h|cc)$'],
74 ['toolkit_views==0', {
75 'sources/': [ ['exclude', '_views\\.(h|cc)$'] ]
78 'sources/': [ ['exclude', '_aura(_unittest)?\\.(h|cc)$'],
79 ['exclude', '(^|/)aura/'],
82 ['use_aura==0 or use_x11==0', {
83 'sources/': [ ['exclude', '_aurax11\\.(h|cc)$'] ]
85 ['use_aura==0 or OS!="win"', {
86 'sources/': [ ['exclude', '_aurawin\\.(h|cc)$'] ]
89 'sources/': [ ['exclude', '_ash(_unittest)?\\.(h|cc)$'],
90 ['exclude', '(^|/)ash/'],