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

Side by Side Diff: build/filename_rules.gypi

Issue 9288078: build/common.gypi: split out filename exclude rules (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ok Created 8 years, 11 months 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 | Annotate | Revision Log
« no previous file with comments | « build/common.gypi ('k') | 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
(Empty)
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.
4
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.
8
9 {
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"', {
33 'sources/': [
34 ['exclude', '_android(_unittest)?\\.cc$'],
35 ['exclude', '(^|/)android/'],
36 ],
37 }],
38 ['OS=="win"', {
39 'sources/': [ ['exclude', '_posix(_unittest)?\\.(h|cc)$'] ],
40 }],
41 ['chromeos!=1', {
42 'sources/': [ ['exclude', '_chromeos\\.(h|cc)$'] ]
43 }],
44 ['OS!="linux" and OS!="openbsd" and OS!="freebsd"', {
45 'sources/': [
46 ['exclude', '_xdg(_unittest)?\\.(h|cc)$'],
47 ],
48 }],
49
50
51 ['use_x11!=1', {
52 'sources/': [
53 ['exclude', '_(chromeos|x|x11)(_unittest)?\\.(h|cc)$'],
54 ['exclude', '(^|/)x11_[^/]*\\.(h|cc)$'],
55 ],
56 }],
57 ['toolkit_uses_gtk!=1', {
58 'sources/': [
59 ['exclude', '_gtk(_unittest)?\\.(h|cc)$'],
60 ['exclude', '(^|/)gtk/'],
61 ['exclude', '(^|/)gtk_[^/]*\\.(h|cc)$'],
62 ],
63 }],
64 ['toolkit_views==0', {
65 'sources/': [ ['exclude', '_views\\.(h|cc)$'] ]
66 }],
67 ['use_aura==0', {
68 'sources/': [ ['exclude', '_aura(_unittest)?\\.(h|cc)$'],
69 ['exclude', '(^|/)aura/'],
70 ]
71 }],
72 ['use_aura==0 or use_x11==0', {
73 'sources/': [ ['exclude', '_aurax11\\.(h|cc)$'] ]
74 }],
75 ['use_aura==0 or OS!="win"', {
76 'sources/': [ ['exclude', '_aurawin\\.(h|cc)$'] ]
77 }],
78 ['use_wayland!=1', {
79 'sources/': [
80 ['exclude', '_(wayland)(_unittest)?\\.(h|cc)$'],
81 ['exclude', '(^|/)wayland/'],
82 ['exclude', '(^|/)(wayland)_[^/]*\\.(h|cc)$'],
83 ],
84 }],
85 ]
86 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698