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

Unified 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. 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 | « no previous file | plugin/idl/idl.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: plugin/idl/get_idl_files.py
===================================================================
--- plugin/idl/get_idl_files.py (revision 0)
+++ plugin/idl/get_idl_files.py (revision 0)
@@ -0,0 +1,26 @@
+#!/usr/bin/env 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.
+
+"""Helper script to generate file lists for idl.gyp."""
+
+import os.path
+import sys
+import types
+
+
+# Read in the manifest files (which are just really simple python files),
+# and scrape out the file lists.
+def main(argv):
+ idl_list_filename = os.path.join('..', 'idl_list.manifest')
+ files = eval(open(idl_list_filename, "r").read())
+ files = [os.path.basename(f) for f in files]
+ files.sort()
+ for file in files:
+ # gyp wants paths with slashes, not backslashes.
+ print file.replace("\\", "/")
+
+
+if __name__ == "__main__":
+ main(sys.argv[1:])
« no previous file with comments | « no previous file | plugin/idl/idl.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698