Ticket #6350: mingw.py

File mingw.py, 1.2 KB (added by anonymous, 11 years ago)

mingw jam python file

Line 
1# Copyright (C) Christopher Currie 2003. Permission to copy, use,
2# modify, sell and distribute this software is granted provided this
3# copyright notice appears in all copies. This software is provided
4# "as is" without express or implied warranty, and with no claim as to
5# its suitability for any purpose.
6
7# Please see http://article.gmane.org/gmane.comp.lib.boost.build/3389/
8# for explanation why it's a separate toolset.
9
10import common, gcc, builtin
11from b2.build import feature, toolset, type, action, generators
12from b2.util.utility import *
13
14toolset.register ('mingw')
15
16toolset.inherit_generators ('mingw', [], 'gcc')
17toolset.inherit_flags ('mingw', 'gcc')
18toolset.inherit_rules ('mingw', 'gcc')
19
20def init (version = None, command = None, options = None):
21 options = to_seq (options)
22
23 condition = common.check_init_parameters ('mingw', None, ('version', version))
24
25 command = common.get_invocation_command ('mingw', 'g++', command)
26
27 common.handle_options ('mingw', condition, command, options)
28
29# This is flag is useful for debugging the link step
30# uncomment to see what libtool is doing under the hood
31# toolset.flags ('mingw.link.dll', 'OPTIONS', None, '[-Wl,-v'])
32