Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
michael@0 | 2 | # Use of this source code is governed by a BSD-style license that can be |
michael@0 | 3 | # found in the LICENSE file. |
michael@0 | 4 | |
michael@0 | 5 | # This gypi file defines the patterns used for determining whether a |
michael@0 | 6 | # file is excluded from the build on a given platform. It is |
michael@0 | 7 | # included by common.gypi for chromium_code. |
michael@0 | 8 | |
michael@0 | 9 | { |
michael@0 | 10 | 'target_conditions': [ |
michael@0 | 11 | ['OS!="win" or >(nacl_untrusted_build)==1', { |
michael@0 | 12 | 'sources/': [ ['exclude', '_win(_unittest)?\\.(h|cc)$'], |
michael@0 | 13 | ['exclude', '(^|/)win/'], |
michael@0 | 14 | ['exclude', '(^|/)win_[^/]*\\.(h|cc)$'] ], |
michael@0 | 15 | }], |
michael@0 | 16 | ['OS!="mac" or >(nacl_untrusted_build)==1', { |
michael@0 | 17 | 'sources/': [ ['exclude', '_(cocoa|mac)(_unittest)?\\.(h|cc|mm?)$'], |
michael@0 | 18 | ['exclude', '(^|/)(cocoa|mac)/'] ], |
michael@0 | 19 | }], |
michael@0 | 20 | ['OS!="ios" or >(nacl_untrusted_build)==1', { |
michael@0 | 21 | 'sources/': [ ['exclude', '_ios(_unittest)?\\.(h|cc|mm?)$'], |
michael@0 | 22 | ['exclude', '(^|/)ios/'] ], |
michael@0 | 23 | }], |
michael@0 | 24 | ['(OS!="mac" and OS!="ios") or >(nacl_untrusted_build)==1', { |
michael@0 | 25 | 'sources/': [ ['exclude', '\\.mm?$' ] ], |
michael@0 | 26 | }], |
michael@0 | 27 | # Do not exclude the linux files on *BSD since most of them can be |
michael@0 | 28 | # shared at this point. |
michael@0 | 29 | # In case a file is not needed, it is going to be excluded later on. |
michael@0 | 30 | # TODO(evan): the above is not correct; we shouldn't build _linux |
michael@0 | 31 | # files on non-linux. |
michael@0 | 32 | ['OS!="linux" and OS!="openbsd" and OS!="freebsd" or >(nacl_untrusted_build)==1', { |
michael@0 | 33 | 'sources/': [ |
michael@0 | 34 | ['exclude', '_linux(_unittest)?\\.(h|cc)$'], |
michael@0 | 35 | ['exclude', '(^|/)linux/'], |
michael@0 | 36 | ], |
michael@0 | 37 | }], |
michael@0 | 38 | ['OS!="android"', { |
michael@0 | 39 | 'sources/': [ |
michael@0 | 40 | ['exclude', '_android(_unittest)?\\.cc$'], |
michael@0 | 41 | ['exclude', '(^|/)android/'], |
michael@0 | 42 | ], |
michael@0 | 43 | }], |
michael@0 | 44 | ['OS=="win" and >(nacl_untrusted_build)==0', { |
michael@0 | 45 | 'sources/': [ |
michael@0 | 46 | ['exclude', '_posix(_unittest)?\\.(h|cc)$'], |
michael@0 | 47 | ['exclude', '(^|/)posix/'], |
michael@0 | 48 | ], |
michael@0 | 49 | }], |
michael@0 | 50 | ['<(chromeos)!=1 or >(nacl_untrusted_build)==1', { |
michael@0 | 51 | 'sources/': [ ['exclude', '_chromeos(_unittest)?\\.(h|cc)$'] ] |
michael@0 | 52 | }], |
michael@0 | 53 | ['>(nacl_untrusted_build)==0', { |
michael@0 | 54 | 'sources/': [ |
michael@0 | 55 | ['exclude', '_nacl(_unittest)?\\.(h|cc)$'], |
michael@0 | 56 | ], |
michael@0 | 57 | }], |
michael@0 | 58 | ['OS!="linux" and OS!="openbsd" and OS!="freebsd" or >(nacl_untrusted_build)==1', { |
michael@0 | 59 | 'sources/': [ |
michael@0 | 60 | ['exclude', '_xdg(_unittest)?\\.(h|cc)$'], |
michael@0 | 61 | ], |
michael@0 | 62 | }], |
michael@0 | 63 | ['<(use_x11)!=1 or >(nacl_untrusted_build)==1', { |
michael@0 | 64 | 'sources/': [ |
michael@0 | 65 | ['exclude', '_(x|x11)(_unittest)?\\.(h|cc)$'], |
michael@0 | 66 | ['exclude', '(^|/)x11_[^/]*\\.(h|cc)$'], |
michael@0 | 67 | ], |
michael@0 | 68 | }], |
michael@0 | 69 | ['<(toolkit_uses_gtk)!=1 or >(nacl_untrusted_build)==1', { |
michael@0 | 70 | 'sources/': [ |
michael@0 | 71 | ['exclude', '_gtk(_browsertest|_unittest)?\\.(h|cc)$'], |
michael@0 | 72 | ['exclude', '(^|/)gtk/'], |
michael@0 | 73 | ['exclude', '(^|/)gtk_[^/]*\\.(h|cc)$'], |
michael@0 | 74 | ], |
michael@0 | 75 | }], |
michael@0 | 76 | ['<(toolkit_views)==0 or >(nacl_untrusted_build)==1', { |
michael@0 | 77 | 'sources/': [ ['exclude', '_views\\.(h|cc)$'] ] |
michael@0 | 78 | }], |
michael@0 | 79 | ['<(use_aura)==0 or >(nacl_untrusted_build)==1', { |
michael@0 | 80 | 'sources/': [ ['exclude', '_aura(_unittest)?\\.(h|cc)$'], |
michael@0 | 81 | ['exclude', '(^|/)aura/'], |
michael@0 | 82 | ] |
michael@0 | 83 | }], |
michael@0 | 84 | ['<(use_aura)==0 or <(use_x11)==0 or >(nacl_untrusted_build)==1', { |
michael@0 | 85 | 'sources/': [ ['exclude', '_aurax11\\.(h|cc)$'] ] |
michael@0 | 86 | }], |
michael@0 | 87 | ['<(use_aura)==0 or OS!="win" or >(nacl_untrusted_build)==1', { |
michael@0 | 88 | 'sources/': [ ['exclude', '_aurawin\\.(h|cc)$'] ] |
michael@0 | 89 | }], |
michael@0 | 90 | ['<(use_ash)==0 or >(nacl_untrusted_build)==1', { |
michael@0 | 91 | 'sources/': [ ['exclude', '_ash(_unittest)?\\.(h|cc)$'], |
michael@0 | 92 | ['exclude', '(^|/)ash/'], |
michael@0 | 93 | ] |
michael@0 | 94 | }], |
michael@0 | 95 | ] |
michael@0 | 96 | } |