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

Side by Side Diff: tools/generate_stubs/generate_stubs.py

Issue 8678023: Fix python scripts in src/tools/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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()
OLDNEW
« no previous file with comments | « tools/gen_keyboard_overlay_data/gen_keyboard_overlay_data.py ('k') | tools/generate_stubs/generate_stubs_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698