OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 # Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 3 # Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
6 | 6 |
7 import os | 7 import os |
8 import sys | 8 import sys |
9 import utils | 9 import utils |
10 | 10 |
11 def invoke_ar(args): | 11 def invoke_ar(args): |
12 library_name = args[len(args) - 1] | 12 library_name = args[len(args) - 1] |
13 libraries = args[:-1] | 13 libraries = args[:-1] |
(...skipping 25 matching lines...) Expand all Loading... |
39 os_name = utils.GuessOS() | 39 os_name = utils.GuessOS() |
40 if os_name == 'linux': | 40 if os_name == 'linux': |
41 invoke_ar(args) | 41 invoke_ar(args) |
42 elif os_name == 'macos': | 42 elif os_name == 'macos': |
43 invoke_libtool(args) | 43 invoke_libtool(args) |
44 elif os_name == 'windows': | 44 elif os_name == 'windows': |
45 invoke_lib_exe(args) | 45 invoke_lib_exe(args) |
46 | 46 |
47 if __name__ == '__main__': | 47 if __name__ == '__main__': |
48 main() | 48 main() |
OLD | NEW |