OLD | NEW |
(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:]) |
OLD | NEW |