| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/env python |
| 2 # | |
| 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 6 | 5 |
| 7 """Creates windows and posix stub files for a given set of signatures. | 6 """Creates windows and posix stub files for a given set of signatures. |
| 8 | 7 |
| 9 For libraries that need to be loaded outside of the standard executable startup | 8 For libraries that need to be loaded outside of the standard executable startup |
| 10 path mechanism, stub files need to be generated for the wanted functions. In | 9 path mechanism, stub files need to be generated for the wanted functions. In |
| 11 windows, this is done via "def" files and the delay load mechanism. On a posix | 10 windows, this is done via "def" files and the delay load mechanism. On a posix |
| 12 system, a set of stub functions need to be generated that dispatch to functions | 11 system, a set of stub functions need to be generated that dispatch to functions |
| (...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1045 if options.type == FILE_TYPE_WIN: | 1044 if options.type == FILE_TYPE_WIN: |
| 1046 CreateWindowsLibForSigFiles(args, out_dir, intermediate_dir) | 1045 CreateWindowsLibForSigFiles(args, out_dir, intermediate_dir) |
| 1047 elif options.type == FILE_TYPE_POSIX_STUB: | 1046 elif options.type == FILE_TYPE_POSIX_STUB: |
| 1048 CreatePosixStubsForSigFiles(args, options.stubfile_name, out_dir, | 1047 CreatePosixStubsForSigFiles(args, options.stubfile_name, out_dir, |
| 1049 intermediate_dir, options.path_from_source, | 1048 intermediate_dir, options.path_from_source, |
| 1050 options.extra_stub_header) | 1049 options.extra_stub_header) |
| 1051 | 1050 |
| 1052 | 1051 |
| 1053 if __name__ == '__main__': | 1052 if __name__ == '__main__': |
| 1054 main() | 1053 main() |
| OLD | NEW |