forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build/common.gypi: split out filename exclude rules
Here's a step towards making this enormous file a little more tractable. Review URL: http://codereview.chromium.org/9288078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119372 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
evan@chromium.org
committed
Jan 27, 2012
1 parent
8930789
commit a5c5981
Showing
2 changed files
with
90 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# 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. | ||
|
||
{ | ||
'conditions': [ | ||
['OS!="win"', { | ||
'sources/': [ ['exclude', '_win(_unittest)?\\.(h|cc)$'], | ||
['exclude', '(^|/)win/'], | ||
['exclude', '(^|/)win_[^/]*\\.(h|cc)$'] ], | ||
}], | ||
['OS!="mac"', { | ||
'sources/': [ ['exclude', '_(cocoa|mac)(_unittest)?\\.(h|cc)$'], | ||
['exclude', '(^|/)(cocoa|mac)/'], | ||
['exclude', '\\.mm?$' ] ], | ||
}], | ||
# 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. | ||
['OS!="linux" and OS!="openbsd" and OS!="freebsd"', { | ||
'sources/': [ | ||
['exclude', '_linux(_unittest)?\\.(h|cc)$'], | ||
['exclude', '(^|/)linux/'], | ||
], | ||
}], | ||
['OS!="android"', { | ||
'sources/': [ | ||
['exclude', '_android(_unittest)?\\.cc$'], | ||
['exclude', '(^|/)android/'], | ||
], | ||
}], | ||
['OS=="win"', { | ||
'sources/': [ ['exclude', '_posix(_unittest)?\\.(h|cc)$'] ], | ||
}], | ||
['chromeos!=1', { | ||
'sources/': [ ['exclude', '_chromeos\\.(h|cc)$'] ] | ||
}], | ||
['OS!="linux" and OS!="openbsd" and OS!="freebsd"', { | ||
'sources/': [ | ||
['exclude', '_xdg(_unittest)?\\.(h|cc)$'], | ||
], | ||
}], | ||
|
||
|
||
['use_x11!=1', { | ||
'sources/': [ | ||
['exclude', '_(chromeos|x|x11)(_unittest)?\\.(h|cc)$'], | ||
['exclude', '(^|/)x11_[^/]*\\.(h|cc)$'], | ||
], | ||
}], | ||
['toolkit_uses_gtk!=1', { | ||
'sources/': [ | ||
['exclude', '_gtk(_unittest)?\\.(h|cc)$'], | ||
['exclude', '(^|/)gtk/'], | ||
['exclude', '(^|/)gtk_[^/]*\\.(h|cc)$'], | ||
], | ||
}], | ||
['toolkit_views==0', { | ||
'sources/': [ ['exclude', '_views\\.(h|cc)$'] ] | ||
}], | ||
['use_aura==0', { | ||
'sources/': [ ['exclude', '_aura(_unittest)?\\.(h|cc)$'], | ||
['exclude', '(^|/)aura/'], | ||
] | ||
}], | ||
['use_aura==0 or use_x11==0', { | ||
'sources/': [ ['exclude', '_aurax11\\.(h|cc)$'] ] | ||
}], | ||
['use_aura==0 or OS!="win"', { | ||
'sources/': [ ['exclude', '_aurawin\\.(h|cc)$'] ] | ||
}], | ||
['use_wayland!=1', { | ||
'sources/': [ | ||
['exclude', '_(wayland)(_unittest)?\\.(h|cc)$'], | ||
['exclude', '(^|/)wayland/'], | ||
['exclude', '(^|/)(wayland)_[^/]*\\.(h|cc)$'], | ||
], | ||
}], | ||
] | ||
} |