Chromium Code Reviews

Side by Side Diff: plugin/idl/get_idl_files.py

Issue 346043: Make gyp build get idl files from only one location. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « no previous file | plugin/idl/idl.gyp » ('j') | 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/env 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 """Helper script to generate file lists for idl.gyp."""
7
8 import os.path
9 import sys
10 import types
11
12
13 # Read in the manifest files (which are just really simple python files),
14 # and scrape out the file lists.
15 def main(argv):
16 idl_list_filename = os.path.join('..', 'idl_list.manifest')
17 files = eval(open(idl_list_filename, "r").read())
18 files = [os.path.basename(f) for f in files]
19 files.sort()
20 for file in files:
21 # gyp wants paths with slashes, not backslashes.
22 print file.replace("\\", "/")
23
24
25 if __name__ == "__main__":
26 main(sys.argv[1:])
OLDNEW
« no previous file with comments | « no previous file | plugin/idl/idl.gyp » ('j') | no next file with comments »

Powered by Google App Engine