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

Side by Side Diff: build/filename_rules.gypi

Issue 10389196: Adding base_untrusted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 6 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
« base/base.gypi ('K') | « 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
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 'conditions': [ 10 'target_conditions': [
11 ['OS!="win"', { 11 ['OS!="win" or >(nacl_untrusted_build)==1', {
12 'sources/': [ ['exclude', '_win(_unittest)?\\.(h|cc)$'], 12 'sources/': [ ['exclude', '_win(_unittest)?\\.(h|cc)$'],
13 ['exclude', '(^|/)win/'], 13 ['exclude', '(^|/)win/'],
14 ['exclude', '(^|/)win_[^/]*\\.(h|cc)$'] ], 14 ['exclude', '(^|/)win_[^/]*\\.(h|cc)$'] ],
15 }], 15 }],
16 ['OS!="mac"', { 16 ['OS!="mac" or >(nacl_untrusted_build)==1', {
17 'sources/': [ ['exclude', '_(cocoa|mac)(_unittest)?\\.(h|cc)$'], 17 'sources/': [ ['exclude', '_(cocoa|mac)(_unittest)?\\.(h|cc)$'],
18 ['exclude', '(^|/)(cocoa|mac)/'], 18 ['exclude', '(^|/)(cocoa|mac)/'],
19 ['exclude', '\\.mm?$' ] ], 19 ['exclude', '\\.mm?$' ] ],
20 }], 20 }],
21 # Do not exclude the linux files on *BSD since most of them can be 21 # Do not exclude the linux files on *BSD since most of them can be
22 # shared at this point. 22 # shared at this point.
23 # In case a file is not needed, it is going to be excluded later on. 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 24 # TODO(evan): the above is not correct; we shouldn't build _linux
25 # files on non-linux. 25 # files on non-linux.
26 ['OS!="linux" and OS!="openbsd" and OS!="freebsd"', { 26 ['OS!="linux" and OS!="openbsd" and OS!="freebsd" or >(nacl_untrusted_build) ==1', {
27 'sources/': [ 27 'sources/': [
28 ['exclude', '_linux(_unittest)?\\.(h|cc)$'], 28 ['exclude', '_linux(_unittest)?\\.(h|cc)$'],
29 ['exclude', '(^|/)linux/'], 29 ['exclude', '(^|/)linux/'],
30 ], 30 ],
31 }], 31 }],
32 ['OS!="android" and OS!="linux" and OS!="openbsd" and OS!="freebsd"', { 32 ['OS!="android" and OS!="linux" and OS!="openbsd" and OS!="freebsd" or >(nac l_untrusted_build)==1', {
33 'sources/': [ 33 'sources/': [
34 ['exclude', '_linuxish(_unittest)?\\.(h|cc)$'], 34 ['exclude', '_linuxish(_unittest)?\\.(h|cc)$'],
35 ['exclude', '(^|/)linuxish/'], 35 ['exclude', '(^|/)linuxish/'],
36 ], 36 ],
37 }], 37 }],
38 ['OS!="android"', { 38 ['OS!="android"', {
39 'sources/': [ 39 'sources/': [
40 ['exclude', '_android(_unittest)?\\.cc$'], 40 ['exclude', '_android(_unittest)?\\.cc$'],
41 ['exclude', '(^|/)android/'], 41 ['exclude', '(^|/)android/'],
42 ], 42 ],
43 }], 43 }],
44 ['OS=="win"', { 44 ['OS=="win" or >(nacl_untrusted_build)==1', {
45 'sources/': [ 45 'sources/': [
46 ['exclude', '_posix(_unittest)?\\.(h|cc)$'], 46 ['exclude', '_posix(_unittest)?\\.(h|cc)$'],
47 ['exclude', '(^|/)posix/'], 47 ['exclude', '(^|/)posix/'],
48 ], 48 ],
49
50 }], 49 }],
51 ['chromeos!=1', { 50 ['<(chromeos)!=1 or >(nacl_untrusted_build)==1', {
52 'sources/': [ ['exclude', '_chromeos\\.(h|cc)$'] ] 51 'sources/': [ ['exclude', '_chromeos\\.(h|cc)$'] ]
53 }], 52 }],
54 ['OS!="linux" and OS!="openbsd" and OS!="freebsd"', { 53 ['OS!="linux" and OS!="openbsd" and OS!="freebsd" or >(nacl_untrusted_build) ==1', {
55 'sources/': [ 54 'sources/': [
56 ['exclude', '_xdg(_unittest)?\\.(h|cc)$'], 55 ['exclude', '_xdg(_unittest)?\\.(h|cc)$'],
57 ], 56 ],
58 }], 57 }],
59 58 ['<(use_x11)!=1 or >(nacl_untrusted_build)==1', {
60
61 ['use_x11!=1', {
62 'sources/': [ 59 'sources/': [
63 ['exclude', '_(chromeos|x|x11)(_unittest)?\\.(h|cc)$'], 60 ['exclude', '_(chromeos|x|x11)(_unittest)?\\.(h|cc)$'],
64 ['exclude', '(^|/)x11_[^/]*\\.(h|cc)$'], 61 ['exclude', '(^|/)x11_[^/]*\\.(h|cc)$'],
65 ], 62 ],
66 }], 63 }],
67 ['toolkit_uses_gtk!=1', { 64 ['<(toolkit_uses_gtk)!=1 or >(nacl_untrusted_build)==1', {
68 'sources/': [ 65 'sources/': [
69 ['exclude', '_gtk(_unittest)?\\.(h|cc)$'], 66 ['exclude', '_gtk(_unittest)?\\.(h|cc)$'],
70 ['exclude', '(^|/)gtk/'], 67 ['exclude', '(^|/)gtk/'],
71 ['exclude', '(^|/)gtk_[^/]*\\.(h|cc)$'], 68 ['exclude', '(^|/)gtk_[^/]*\\.(h|cc)$'],
72 ], 69 ],
73 }], 70 }],
74 ['toolkit_views==0', { 71 ['<(toolkit_views)==0 or >(nacl_untrusted_build)==1', {
75 'sources/': [ ['exclude', '_views\\.(h|cc)$'] ] 72 'sources/': [ ['exclude', '_views\\.(h|cc)$'] ]
76 }], 73 }],
77 ['use_aura==0', { 74 ['<(use_aura)==0 or >(nacl_untrusted_build)==1', {
78 'sources/': [ ['exclude', '_aura(_unittest)?\\.(h|cc)$'], 75 'sources/': [ ['exclude', '_aura(_unittest)?\\.(h|cc)$'],
79 ['exclude', '(^|/)aura/'], 76 ['exclude', '(^|/)aura/'],
80 ] 77 ]
81 }], 78 }],
82 ['use_aura==0 or use_x11==0', { 79 ['<(use_aura)==0 or <(use_x11)==0 or >(nacl_untrusted_build)==1', {
83 'sources/': [ ['exclude', '_aurax11\\.(h|cc)$'] ] 80 'sources/': [ ['exclude', '_aurax11\\.(h|cc)$'] ]
84 }], 81 }],
85 ['use_aura==0 or OS!="win"', { 82 ['<(use_aura)==0 or OS!="win" or >(nacl_untrusted_build)==1', {
86 'sources/': [ ['exclude', '_aurawin\\.(h|cc)$'] ] 83 'sources/': [ ['exclude', '_aurawin\\.(h|cc)$'] ]
87 }], 84 }],
88 ['use_ash==0', { 85 ['<(use_ash)==0 or >(nacl_untrusted_build)==1', {
89 'sources/': [ ['exclude', '_ash(_unittest)?\\.(h|cc)$'], 86 'sources/': [ ['exclude', '_ash(_unittest)?\\.(h|cc)$'],
90 ['exclude', '(^|/)ash/'], 87 ['exclude', '(^|/)ash/'],
91 ] 88 ]
92 }], 89 }],
93 ] 90 ]
94 } 91 }
OLDNEW
« base/base.gypi ('K') | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698