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 |
|
---|
10 | import common, gcc, builtin
|
---|
11 | from b2.build import feature, toolset, type, action, generators
|
---|
12 | from b2.util.utility import *
|
---|
13 |
|
---|
14 | toolset.register ('mingw')
|
---|
15 |
|
---|
16 | toolset.inherit_generators ('mingw', [], 'gcc')
|
---|
17 | toolset.inherit_flags ('mingw', 'gcc')
|
---|
18 | toolset.inherit_rules ('mingw', 'gcc')
|
---|
19 |
|
---|
20 | def 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 |
|
---|