1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/webrtc/trunk/build/filename_rules.gypi Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,96 @@ 1.4 +# Copyright (c) 2012 The Chromium Authors. All rights reserved. 1.5 +# Use of this source code is governed by a BSD-style license that can be 1.6 +# found in the LICENSE file. 1.7 + 1.8 +# This gypi file defines the patterns used for determining whether a 1.9 +# file is excluded from the build on a given platform. It is 1.10 +# included by common.gypi for chromium_code. 1.11 + 1.12 +{ 1.13 + 'target_conditions': [ 1.14 + ['OS!="win" or >(nacl_untrusted_build)==1', { 1.15 + 'sources/': [ ['exclude', '_win(_unittest)?\\.(h|cc)$'], 1.16 + ['exclude', '(^|/)win/'], 1.17 + ['exclude', '(^|/)win_[^/]*\\.(h|cc)$'] ], 1.18 + }], 1.19 + ['OS!="mac" or >(nacl_untrusted_build)==1', { 1.20 + 'sources/': [ ['exclude', '_(cocoa|mac)(_unittest)?\\.(h|cc|mm?)$'], 1.21 + ['exclude', '(^|/)(cocoa|mac)/'] ], 1.22 + }], 1.23 + ['OS!="ios" or >(nacl_untrusted_build)==1', { 1.24 + 'sources/': [ ['exclude', '_ios(_unittest)?\\.(h|cc|mm?)$'], 1.25 + ['exclude', '(^|/)ios/'] ], 1.26 + }], 1.27 + ['(OS!="mac" and OS!="ios") or >(nacl_untrusted_build)==1', { 1.28 + 'sources/': [ ['exclude', '\\.mm?$' ] ], 1.29 + }], 1.30 + # Do not exclude the linux files on *BSD since most of them can be 1.31 + # shared at this point. 1.32 + # In case a file is not needed, it is going to be excluded later on. 1.33 + # TODO(evan): the above is not correct; we shouldn't build _linux 1.34 + # files on non-linux. 1.35 + ['OS!="linux" and OS!="openbsd" and OS!="freebsd" or >(nacl_untrusted_build)==1', { 1.36 + 'sources/': [ 1.37 + ['exclude', '_linux(_unittest)?\\.(h|cc)$'], 1.38 + ['exclude', '(^|/)linux/'], 1.39 + ], 1.40 + }], 1.41 + ['OS!="android"', { 1.42 + 'sources/': [ 1.43 + ['exclude', '_android(_unittest)?\\.cc$'], 1.44 + ['exclude', '(^|/)android/'], 1.45 + ], 1.46 + }], 1.47 + ['OS=="win" and >(nacl_untrusted_build)==0', { 1.48 + 'sources/': [ 1.49 + ['exclude', '_posix(_unittest)?\\.(h|cc)$'], 1.50 + ['exclude', '(^|/)posix/'], 1.51 + ], 1.52 + }], 1.53 + ['<(chromeos)!=1 or >(nacl_untrusted_build)==1', { 1.54 + 'sources/': [ ['exclude', '_chromeos(_unittest)?\\.(h|cc)$'] ] 1.55 + }], 1.56 + ['>(nacl_untrusted_build)==0', { 1.57 + 'sources/': [ 1.58 + ['exclude', '_nacl(_unittest)?\\.(h|cc)$'], 1.59 + ], 1.60 + }], 1.61 + ['OS!="linux" and OS!="openbsd" and OS!="freebsd" or >(nacl_untrusted_build)==1', { 1.62 + 'sources/': [ 1.63 + ['exclude', '_xdg(_unittest)?\\.(h|cc)$'], 1.64 + ], 1.65 + }], 1.66 + ['<(use_x11)!=1 or >(nacl_untrusted_build)==1', { 1.67 + 'sources/': [ 1.68 + ['exclude', '_(x|x11)(_unittest)?\\.(h|cc)$'], 1.69 + ['exclude', '(^|/)x11_[^/]*\\.(h|cc)$'], 1.70 + ], 1.71 + }], 1.72 + ['<(toolkit_uses_gtk)!=1 or >(nacl_untrusted_build)==1', { 1.73 + 'sources/': [ 1.74 + ['exclude', '_gtk(_browsertest|_unittest)?\\.(h|cc)$'], 1.75 + ['exclude', '(^|/)gtk/'], 1.76 + ['exclude', '(^|/)gtk_[^/]*\\.(h|cc)$'], 1.77 + ], 1.78 + }], 1.79 + ['<(toolkit_views)==0 or >(nacl_untrusted_build)==1', { 1.80 + 'sources/': [ ['exclude', '_views\\.(h|cc)$'] ] 1.81 + }], 1.82 + ['<(use_aura)==0 or >(nacl_untrusted_build)==1', { 1.83 + 'sources/': [ ['exclude', '_aura(_unittest)?\\.(h|cc)$'], 1.84 + ['exclude', '(^|/)aura/'], 1.85 + ] 1.86 + }], 1.87 + ['<(use_aura)==0 or <(use_x11)==0 or >(nacl_untrusted_build)==1', { 1.88 + 'sources/': [ ['exclude', '_aurax11\\.(h|cc)$'] ] 1.89 + }], 1.90 + ['<(use_aura)==0 or OS!="win" or >(nacl_untrusted_build)==1', { 1.91 + 'sources/': [ ['exclude', '_aurawin\\.(h|cc)$'] ] 1.92 + }], 1.93 + ['<(use_ash)==0 or >(nacl_untrusted_build)==1', { 1.94 + 'sources/': [ ['exclude', '_ash(_unittest)?\\.(h|cc)$'], 1.95 + ['exclude', '(^|/)ash/'], 1.96 + ] 1.97 + }], 1.98 + ] 1.99 +}