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

Side by Side 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, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/python
2 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 # This script helps workaround XCode dependencies bug.
7
8 import os
9 import sys
10
11 _SRC_PATH = os.path.join(os.path.dirname(__file__), '..', '..')
12
13 def RemoveDir(path):
14 for root, dirs, files in os.walk(path, topdown=False):
15 for name in files:
16 os.remove(os.path.join(root, name))
17 for name in dirs:
18 os.rmdir(os.path.join(root, name))
19 os.rmdir(path)
20
21 def main(argv):
22 # We need to apply the workaround only on Mac.
23 if not sys.platform.lower() in ("darwin", "mac"):
24 return 0
25
26 root = os.path.join(_SRC_PATH, 'xcodebuild', 'DerivedSources')
27 tail = os.path.join('gen', 'native_client', 'src', 'trusted')
28
29 release_dir = os.path.join(root, 'Release', tail)
30 if (os.path.isdir(release_dir)):
31 RemoveDir(release_dir)
32
33 debug_dir = os.path.join(root, 'Debug', tail)
34 if (os.path.isdir(debug_dir)):
35 RemoveDir(debug_dir)
36
37 binaries_dir = os.path.join(root, '..', 'validator_x86.build')
38 if (os.path.isdir(binaries_dir)):
39 RemoveDir(binaries_dir)
40
41 return 0
42
43 if __name__ == '__main__':
44 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698