diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-29 13:08:15 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-29 13:08:15 +0000 |
commit | e39489e1c05ece9adf61d61265a475cbfa0ce0f2 (patch) | |
tree | 6c092aaf432386402a89052a53f81e0b8756ba00 /build/mac | |
parent | 3c0a4121bbe6fd7752d56433668918b3b2fe2874 (diff) | |
download | chromium_src-e39489e1c05ece9adf61d61265a475cbfa0ce0f2.zip chromium_src-e39489e1c05ece9adf61d61265a475cbfa0ce0f2.tar.gz chromium_src-e39489e1c05ece9adf61d61265a475cbfa0ce0f2.tar.bz2 |
[Mac] Remove the nacl clobber hook, GYP seems to have all the deps handing setup right for Xcode (when expressed in the .gyp files). So this shouldn't be needed any more.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2848030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51119 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/mac')
-rw-r--r-- | build/mac/clobber_generated_headers.py | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/build/mac/clobber_generated_headers.py b/build/mac/clobber_generated_headers.py deleted file mode 100644 index 8771d27..0000000 --- a/build/mac/clobber_generated_headers.py +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/python -# Copyright (c) 2009 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 script helps workaround XCode dependencies bug. - -import os -import sys - -_SRC_PATH = os.path.join(os.path.dirname(__file__), '..', '..') - -def RemoveDir(path): - for root, dirs, files in os.walk(path, topdown=False): - for name in files: - os.remove(os.path.join(root, name)) - for name in dirs: - os.rmdir(os.path.join(root, name)) - os.rmdir(path) - -def main(argv): - # We need to apply the workaround only on Mac. - if not sys.platform.lower() in ("darwin", "mac"): - return 0 - - root = os.path.join(_SRC_PATH, 'xcodebuild', 'DerivedSources') - tail = os.path.join('gen', 'native_client', 'src', 'trusted') - - release_dir = os.path.join(root, 'Release', tail) - if (os.path.isdir(release_dir)): - RemoveDir(release_dir) - - debug_dir = os.path.join(root, 'Debug', tail) - if (os.path.isdir(debug_dir)): - RemoveDir(debug_dir) - - binaries_dir = os.path.join(root, '..', 'validator_x86.build') - if (os.path.isdir(binaries_dir)): - RemoveDir(binaries_dir) - - return 0 - -if __name__ == '__main__': - sys.exit(main(sys.argv[1:]))
\ No newline at end of file |