OLD | NEW |
| (Empty) |
1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | |
2 # | |
3 # Use of this source code is governed by a BSD-style license | |
4 # that can be found in the LICENSE file in the root of the source | |
5 # tree. An additional intellectual property rights grant can be found | |
6 # in the file PATENTS. All contributing project authors may | |
7 # be found in the AUTHORS file in the root of the source tree. | |
8 | |
9 # This is a copy of the deleted build/filename_includes.gypi that | |
10 # has now been dropped from Chromium. | |
11 { | |
12 'target_conditions': [ | |
13 ['OS!="win" or >(nacl_untrusted_build)==1', { | |
14 'sources/': [ ['exclude', '_win(_browsertest|_unittest|_test)?\\.(h|cc)$']
, | |
15 ['exclude', '(^|/)win/'], | |
16 ['exclude', '(^|/)win_[^/]*\\.(h|cc)$'] ], | |
17 }], | |
18 ['OS!="mac" or >(nacl_untrusted_build)==1', { | |
19 'sources/': [ ['exclude', '_(cocoa|mac|mach)(_unittest|_test)?\\.(h|cc|c|m
m?)$'], | |
20 ['exclude', '(^|/)(cocoa|mac|mach)/'] ], | |
21 }], | |
22 ['OS!="ios" or >(nacl_untrusted_build)==1', { | |
23 'sources/': [ ['exclude', '_ios(_unittest|_test)?\\.(h|cc|mm?)$'], | |
24 ['exclude', '(^|/)ios/'] ], | |
25 }], | |
26 ['(OS!="mac" and OS!="ios") or >(nacl_untrusted_build)==1', { | |
27 'sources/': [ ['exclude', '\\.mm?$' ] ], | |
28 }], | |
29 # Do not exclude the linux files on *BSD since most of them can be | |
30 # shared at this point. | |
31 # In case a file is not needed, it is going to be excluded later on. | |
32 # TODO(evan): the above is not correct; we shouldn't build _linux | |
33 # files on non-linux. | |
34 ['OS!="linux" and OS!="openbsd" and OS!="freebsd" or >(nacl_untrusted_build)
==1', { | |
35 'sources/': [ | |
36 ['exclude', '_linux(_unittest|_test)?\\.(h|cc)$'], | |
37 ['exclude', '(^|/)linux/'], | |
38 ], | |
39 }], | |
40 ['OS!="android" or _toolset=="host" or >(nacl_untrusted_build)==1', { | |
41 'sources/': [ | |
42 ['exclude', '_android(_unittest|_test)?\\.(h|cc)$'], | |
43 ['exclude', '(^|/)android/'], | |
44 ], | |
45 }], | |
46 ['OS=="win" and >(nacl_untrusted_build)==0', { | |
47 'sources/': [ | |
48 ['exclude', '_posix(_unittest|_test)?\\.(h|cc)$'], | |
49 ['exclude', '(^|/)posix/'], | |
50 ], | |
51 }], | |
52 ['<(chromeos)!=1 or >(nacl_untrusted_build)==1', { | |
53 'sources/': [ | |
54 ['exclude', '_chromeos(_unittest|_test)?\\.(h|cc)$'], | |
55 ['exclude', '(^|/)chromeos/'], | |
56 ], | |
57 }], | |
58 ['>(nacl_untrusted_build)==0', { | |
59 'sources/': [ | |
60 ['exclude', '_nacl(_unittest)?\\.(h|cc)$'], | |
61 ], | |
62 }], | |
63 ['OS!="linux" and OS!="openbsd" and OS!="freebsd" or >(nacl_untrusted_build)
==1', { | |
64 'sources/': [ | |
65 ['exclude', '_xdg(_unittest)?\\.(h|cc)$'], | |
66 ], | |
67 }], | |
68 ['<(use_x11)!=1 or >(nacl_untrusted_build)==1', { | |
69 'sources/': [ | |
70 ['exclude', '_(x|x11)(_interactive_uitest|_unittest)?\\.(h|cc)$'], | |
71 ['exclude', '(^|/)x11_[^/]*\\.(h|cc)$'], | |
72 ['exclude', '(^|/)x11/'], | |
73 ['exclude', '(^|/)x/'], | |
74 ], | |
75 }], | |
76 ['<(toolkit_views)==0 or >(nacl_untrusted_build)==1', { | |
77 'sources/': [ ['exclude', '_views(_browsertest|_unittest)?\\.(h|cc)$'] ] | |
78 }], | |
79 ['<(use_aura)==0 or >(nacl_untrusted_build)==1', { | |
80 'sources/': [ ['exclude', '_aura(_browsertest|_unittest)?\\.(h|cc)$'], | |
81 ['exclude', '(^|/)aura/'], | |
82 ['exclude', '_ash(_browsertest|_unittest)?\\.(h|cc)$'], | |
83 ['exclude', '(^|/)ash/'], | |
84 ] | |
85 }], | |
86 ['<(use_aura)==0 or <(use_x11)==0 or >(nacl_untrusted_build)==1', { | |
87 'sources/': [ ['exclude', '_aurax11(_browsertest|_unittest)?\\.(h|cc)$'] ] | |
88 }], | |
89 ['<(use_aura)==0 or OS!="win" or >(nacl_untrusted_build)==1', { | |
90 'sources/': [ ['exclude', '_aurawin\\.(h|cc)$'], | |
91 ['exclude', '_ashwin\\.(h|cc)$'] | |
92 ] | |
93 }], | |
94 ['<(use_aura)==0 or OS!="linux" or >(nacl_untrusted_build)==1', { | |
95 'sources/': [ ['exclude', '_auralinux\\.(h|cc)$'] ] | |
96 }], | |
97 ['<(use_ozone)==0 or >(nacl_untrusted_build)==1', { | |
98 'sources/': [ ['exclude', '_ozone(_browsertest|_unittest)?\\.(h|cc)$'] ] | |
99 }], | |
100 ['<(use_pango)==0', { | |
101 'sources/': [ ['exclude', '(^|_)pango(_util|_browsertest|_unittest)?\\.(h|
cc)$'], ], | |
102 }], | |
103 ] | |
104 } | |
105 | |
OLD | NEW |