summaryrefslogtreecommitdiffstats
path: root/o3d/plugin/idl/get_idl_files.py
diff options
context:
space:
mode:
authorgman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-04 00:04:46 +0000
committergman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-04 00:04:46 +0000
commit28020a114bbf0263ec85f27e7f39b50533ca282d (patch)
treea8ed08f76ec410f26561984dd36acbd8950a36a3 /o3d/plugin/idl/get_idl_files.py
parent17fbfc46c22c6c928d37bd2d3e6a15523e09e5a5 (diff)
downloadchromium_src-28020a114bbf0263ec85f27e7f39b50533ca282d.zip
chromium_src-28020a114bbf0263ec85f27e7f39b50533ca282d.tar.gz
chromium_src-28020a114bbf0263ec85f27e7f39b50533ca282d.tar.bz2
Make gyp build get idl files from only one location.
Review URL: http://codereview.chromium.org/346043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30896 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/plugin/idl/get_idl_files.py')
-rw-r--r--o3d/plugin/idl/get_idl_files.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/o3d/plugin/idl/get_idl_files.py b/o3d/plugin/idl/get_idl_files.py
new file mode 100644
index 0000000..b0cbbcb
--- /dev/null
+++ b/o3d/plugin/idl/get_idl_files.py
@@ -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:])