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

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: 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.
Evan Martin 2012/01/26 21:53:28 I disagree with this comment, but I'm attempting t
24 ['OS!="linux" and OS!="openbsd" and OS!="freebsd"', {
25 'sources/': [
26 ['exclude', '_linux(_unittest)?\\.(h|cc)$'],
27 ['exclude', '(^|/)linux/'],
28 ],
29 }],
30 ['OS!="android"', {
31 'sources/': [
32 ['exclude', '_android(_unittest)?\\.cc$'],
33 ['exclude', '(^|/)android/'],
34 ],
35 }],
36 ['OS=="win"', {
37 'sources/': [ ['exclude', '_posix(_unittest)?\\.(h|cc)$'] ],
38 }],
39 ['chromeos!=1', {
40 'sources/': [ ['exclude', '_chromeos\\.(h|cc)$'] ]
41 }],
42 ['OS!="linux" and OS!="openbsd" and OS!="freebsd"', {
43 'sources/': [
44 ['exclude', '_xdg(_unittest)?\\.(h|cc)$'],
Nico 2012/01/26 22:05:50 Can this be merged into the other OS!=linux && !=o
Evan Martin 2012/01/26 22:09:39 I put a TODO on the other block about how it shoul
45 ],
46 }],
47
48
49 ['use_x11!=1', {
50 'sources/': [
51 ['exclude', '_(chromeos|x|x11)(_unittest)?\\.(h|cc)$'],
Nico 2012/01/26 22:05:50 use_x11=1 excludes chromeos_unittests? huh.
Evan Martin 2012/01/26 22:09:39 Hahah, no idea why.
52 ['exclude', '(^|/)x11_[^/]*\\.(h|cc)$'],
53 ],
54 }],
55 ['toolkit_uses_gtk!=1', {
56 'sources/': [
57 ['exclude', '_gtk(_unittest)?\\.(h|cc)$'],
58 ['exclude', '(^|/)gtk/'],
59 ['exclude', '(^|/)gtk_[^/]*\\.(h|cc)$'],
60 ],
61 }],
62 ['toolkit_views==0', {
63 'sources/': [ ['exclude', '_views\\.(h|cc)$'] ]
64 }],
65 ['use_aura==0', {
66 'sources/': [ ['exclude', '_aura(_unittest)?\\.(h|cc)$'],
67 ['exclude', '(^|/)aura/'],
68 ]
69 }],
70 ['use_aura==0 or use_x11==0', {
71 'sources/': [ ['exclude', '_aurax11\\.(h|cc)$'] ]
72 }],
73 ['use_aura==0 or OS!="win"', {
74 'sources/': [ ['exclude', '_aurawin\\.(h|cc)$'] ]
75 }],
76 ['use_wayland!=1', {
77 'sources/': [
78 ['exclude', '_(wayland)(_unittest)?\\.(h|cc)$'],
79 ['exclude', '(^|/)wayland/'],
80 ['exclude', '(^|/)(wayland)_[^/]*\\.(h|cc)$'],
81 ],
82 }],
83 ]
84 }
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