Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2303)

Unified Diff: build/mac/clobber_generated_headers.py

Issue 2848030: [Mac] Remove the nacl clobber hook, GYP seems to have all the deps handing se... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/mac/clobber_generated_headers.py
===================================================================
--- build/mac/clobber_generated_headers.py (revision 50981)
+++ build/mac/clobber_generated_headers.py (working copy)
@@ -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 previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698