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

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: reduce diff 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.gyp ('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/': [ ['exclude', '_posix(_unittest)?\\.(h|cc)$'] ], 45 'sources/': [ ['exclude', '_posix(_unittest)?\\.(h|cc)$'] ],
46 }], 46 }],
47 ['chromeos!=1', { 47 ['<(chromeos)!=1 or >(nacl_untrusted_build)==1', {
48 'sources/': [ ['exclude', '_chromeos\\.(h|cc)$'] ] 48 'sources/': [ ['exclude', '_chromeos\\.(h|cc)$'] ]
49 }], 49 }],
50 ['OS!="linux" and OS!="openbsd" and OS!="freebsd"', { 50 ['OS!="linux" and OS!="openbsd" and OS!="freebsd" or >(nacl_untrusted_build) ==1', {
51 'sources/': [ 51 'sources/': [
52 ['exclude', '_xdg(_unittest)?\\.(h|cc)$'], 52 ['exclude', '_xdg(_unittest)?\\.(h|cc)$'],
53 ], 53 ],
54 }], 54 }],
55 55 ['<(use_x11)!=1 or >(nacl_untrusted_build)==1', {
56
57 ['use_x11!=1', {
58 'sources/': [ 56 'sources/': [
59 ['exclude', '_(chromeos|x|x11)(_unittest)?\\.(h|cc)$'], 57 ['exclude', '_(chromeos|x|x11)(_unittest)?\\.(h|cc)$'],
60 ['exclude', '(^|/)x11_[^/]*\\.(h|cc)$'], 58 ['exclude', '(^|/)x11_[^/]*\\.(h|cc)$'],
61 ], 59 ],
62 }], 60 }],
63 ['toolkit_uses_gtk!=1', { 61 ['<(toolkit_uses_gtk)!=1 or >(nacl_untrusted_build)==1', {
64 'sources/': [ 62 'sources/': [
65 ['exclude', '_gtk(_unittest)?\\.(h|cc)$'], 63 ['exclude', '_gtk(_unittest)?\\.(h|cc)$'],
66 ['exclude', '(^|/)gtk/'], 64 ['exclude', '(^|/)gtk/'],
67 ['exclude', '(^|/)gtk_[^/]*\\.(h|cc)$'], 65 ['exclude', '(^|/)gtk_[^/]*\\.(h|cc)$'],
68 ], 66 ],
69 }], 67 }],
70 ['toolkit_views==0', { 68 ['<(toolkit_views)==0 or >(nacl_untrusted_build)==1', {
71 'sources/': [ ['exclude', '_views\\.(h|cc)$'] ] 69 'sources/': [ ['exclude', '_views\\.(h|cc)$'] ]
72 }], 70 }],
73 ['use_aura==0', { 71 ['<(use_aura)==0 or >(nacl_untrusted_build)==1', {
74 'sources/': [ ['exclude', '_aura(_unittest)?\\.(h|cc)$'], 72 'sources/': [ ['exclude', '_aura(_unittest)?\\.(h|cc)$'],
75 ['exclude', '(^|/)aura/'], 73 ['exclude', '(^|/)aura/'],
76 ] 74 ]
77 }], 75 }],
78 ['use_aura==0 or use_x11==0', { 76 ['<(use_aura)==0 or <(use_x11)==0 or >(nacl_untrusted_build)==1', {
79 'sources/': [ ['exclude', '_aurax11\\.(h|cc)$'] ] 77 'sources/': [ ['exclude', '_aurax11\\.(h|cc)$'] ]
80 }], 78 }],
81 ['use_aura==0 or OS!="win"', { 79 ['<(use_aura)==0 or OS!="win" or >(nacl_untrusted_build)==1', {
82 'sources/': [ ['exclude', '_aurawin\\.(h|cc)$'] ] 80 'sources/': [ ['exclude', '_aurawin\\.(h|cc)$'] ]
83 }], 81 }],
84 ['use_ash==0', { 82 ['<(use_ash)==0 or >(nacl_untrusted_build)==1', {
85 'sources/': [ ['exclude', '_ash(_unittest)?\\.(h|cc)$'], 83 'sources/': [ ['exclude', '_ash(_unittest)?\\.(h|cc)$'],
86 ['exclude', '(^|/)ash/'], 84 ['exclude', '(^|/)ash/'],
87 ] 85 ]
88 }], 86 }],
89 ] 87 ]
90 } 88 }
OLDNEW
« base/base.gyp ('K') | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698