2012-01-27 08:55:13 +04:00
|
|
|
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
# This gypi file defines the patterns used for determining whether a
|
|
|
|
# file is excluded from the build on a given platform. It is
|
|
|
|
# included by common.gypi for chromium_code.
|
|
|
|
|
|
|
|
{
|
2012-06-08 05:01:57 +04:00
|
|
|
'target_conditions': [
|
|
|
|
['OS!="win" or >(nacl_untrusted_build)==1', {
|
2012-01-27 08:55:13 +04:00
|
|
|
'sources/': [ ['exclude', '_win(_unittest)?\\.(h|cc)$'],
|
|
|
|
['exclude', '(^|/)win/'],
|
|
|
|
['exclude', '(^|/)win_[^/]*\\.(h|cc)$'] ],
|
|
|
|
}],
|
2012-06-08 05:01:57 +04:00
|
|
|
['OS!="mac" or >(nacl_untrusted_build)==1', {
|
2012-06-29 19:26:46 +04:00
|
|
|
'sources/': [ ['exclude', '_(cocoa|mac)(_unittest)?\\.(h|cc|mm?)$'],
|
|
|
|
['exclude', '(^|/)(cocoa|mac)/'] ],
|
|
|
|
}],
|
|
|
|
['OS!="ios" or >(nacl_untrusted_build)==1', {
|
|
|
|
'sources/': [ ['exclude', '_ios(_unittest)?\\.(h|cc|mm?)$'],
|
|
|
|
['exclude', '(^|/)ios/'] ],
|
|
|
|
}],
|
|
|
|
['(OS!="mac" and OS!="ios") or >(nacl_untrusted_build)==1', {
|
|
|
|
'sources/': [ ['exclude', '\\.mm?$' ] ],
|
2012-01-27 08:55:13 +04:00
|
|
|
}],
|
|
|
|
# Do not exclude the linux files on *BSD since most of them can be
|
|
|
|
# shared at this point.
|
|
|
|
# In case a file is not needed, it is going to be excluded later on.
|
|
|
|
# TODO(evan): the above is not correct; we shouldn't build _linux
|
|
|
|
# files on non-linux.
|
2012-06-08 05:01:57 +04:00
|
|
|
['OS!="linux" and OS!="openbsd" and OS!="freebsd" or >(nacl_untrusted_build)==1', {
|
2012-01-27 08:55:13 +04:00
|
|
|
'sources/': [
|
|
|
|
['exclude', '_linux(_unittest)?\\.(h|cc)$'],
|
|
|
|
['exclude', '(^|/)linux/'],
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['OS!="android"', {
|
|
|
|
'sources/': [
|
|
|
|
['exclude', '_android(_unittest)?\\.cc$'],
|
|
|
|
['exclude', '(^|/)android/'],
|
|
|
|
],
|
|
|
|
}],
|
2012-06-12 08:02:33 +04:00
|
|
|
['OS=="win" and >(nacl_untrusted_build)==0', {
|
2012-06-04 23:33:56 +04:00
|
|
|
'sources/': [
|
|
|
|
['exclude', '_posix(_unittest)?\\.(h|cc)$'],
|
|
|
|
['exclude', '(^|/)posix/'],
|
|
|
|
],
|
2012-01-27 08:55:13 +04:00
|
|
|
}],
|
2012-06-08 05:01:57 +04:00
|
|
|
['<(chromeos)!=1 or >(nacl_untrusted_build)==1', {
|
2012-06-23 00:20:31 +04:00
|
|
|
'sources/': [ ['exclude', '_chromeos(_unittest)?\\.(h|cc)$'] ]
|
2012-01-27 08:55:13 +04:00
|
|
|
}],
|
2012-06-12 08:02:33 +04:00
|
|
|
['>(nacl_untrusted_build)==0', {
|
|
|
|
'sources/': [
|
|
|
|
['exclude', '_nacl(_unittest)?\\.(h|cc)$'],
|
|
|
|
],
|
|
|
|
}],
|
2012-06-08 05:01:57 +04:00
|
|
|
['OS!="linux" and OS!="openbsd" and OS!="freebsd" or >(nacl_untrusted_build)==1', {
|
2012-01-27 08:55:13 +04:00
|
|
|
'sources/': [
|
|
|
|
['exclude', '_xdg(_unittest)?\\.(h|cc)$'],
|
|
|
|
],
|
|
|
|
}],
|
2012-06-08 05:01:57 +04:00
|
|
|
['<(use_x11)!=1 or >(nacl_untrusted_build)==1', {
|
2012-01-27 08:55:13 +04:00
|
|
|
'sources/': [
|
2012-06-23 00:20:31 +04:00
|
|
|
['exclude', '_(x|x11)(_unittest)?\\.(h|cc)$'],
|
2012-01-27 08:55:13 +04:00
|
|
|
['exclude', '(^|/)x11_[^/]*\\.(h|cc)$'],
|
|
|
|
],
|
|
|
|
}],
|
2012-06-08 05:01:57 +04:00
|
|
|
['<(toolkit_uses_gtk)!=1 or >(nacl_untrusted_build)==1', {
|
2012-01-27 08:55:13 +04:00
|
|
|
'sources/': [
|
2012-10-05 05:47:13 +04:00
|
|
|
['exclude', '_gtk(_browsertest|_unittest)?\\.(h|cc)$'],
|
2012-01-27 08:55:13 +04:00
|
|
|
['exclude', '(^|/)gtk/'],
|
|
|
|
['exclude', '(^|/)gtk_[^/]*\\.(h|cc)$'],
|
|
|
|
],
|
|
|
|
}],
|
2012-06-08 05:01:57 +04:00
|
|
|
['<(toolkit_views)==0 or >(nacl_untrusted_build)==1', {
|
2012-01-27 08:55:13 +04:00
|
|
|
'sources/': [ ['exclude', '_views\\.(h|cc)$'] ]
|
|
|
|
}],
|
2012-06-08 05:01:57 +04:00
|
|
|
['<(use_aura)==0 or >(nacl_untrusted_build)==1', {
|
2012-01-27 08:55:13 +04:00
|
|
|
'sources/': [ ['exclude', '_aura(_unittest)?\\.(h|cc)$'],
|
|
|
|
['exclude', '(^|/)aura/'],
|
|
|
|
]
|
|
|
|
}],
|
2012-06-08 05:01:57 +04:00
|
|
|
['<(use_aura)==0 or <(use_x11)==0 or >(nacl_untrusted_build)==1', {
|
2012-01-27 08:55:13 +04:00
|
|
|
'sources/': [ ['exclude', '_aurax11\\.(h|cc)$'] ]
|
|
|
|
}],
|
2012-06-08 05:01:57 +04:00
|
|
|
['<(use_aura)==0 or OS!="win" or >(nacl_untrusted_build)==1', {
|
2012-01-27 08:55:13 +04:00
|
|
|
'sources/': [ ['exclude', '_aurawin\\.(h|cc)$'] ]
|
|
|
|
}],
|
2012-06-08 05:01:57 +04:00
|
|
|
['<(use_ash)==0 or >(nacl_untrusted_build)==1', {
|
2012-10-23 05:08:59 +04:00
|
|
|
'sources/': [ ['exclude', '_ash(_browsertest|_unittest)?\\.(h|cc)$'],
|
2012-03-03 02:40:55 +04:00
|
|
|
['exclude', '(^|/)ash/'],
|
|
|
|
]
|
|
|
|
}],
|
2012-01-27 08:55:13 +04:00
|
|
|
]
|
|
|
|
}
|