]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/build/src/tools/mc.jam
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / tools / build / src / tools / mc.jam
CommitLineData
7c673cae
FG
1#~ Copyright 2005 Alexey Pakhunov.
2#~ Distributed under the Boost Software License, Version 1.0.
1e59de90 3#~ (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)
7c673cae
FG
4
5# Support for Microsoft message compiler tool.
6# Notes:
1e59de90 7# - there's just message compiler tool, there's no tool for
7c673cae
FG
8# extracting message strings from sources
9# - This file allows to use Microsoft message compiler
10# with any toolset. In msvc.jam, there's more specific
11# message compiling action.
12
13import common ;
14import generators ;
15import feature : feature get-values ;
16import toolset : flags ;
17import type ;
18import rc ;
19
20rule init ( )
21{
22}
23
24type.register MC : mc ;
25
26
27# Command line options
28feature mc-input-encoding : ansi unicode : free ;
29feature mc-output-encoding : unicode ansi : free ;
30feature mc-set-customer-bit : no yes : free ;
31
32flags mc.compile MCFLAGS <mc-input-encoding>ansi : -a ;
33flags mc.compile MCFLAGS <mc-input-encoding>unicode : -u ;
34flags mc.compile MCFLAGS <mc-output-encoding>ansi : -A ;
35flags mc.compile MCFLAGS <mc-output-encoding>unicode : -U ;
36flags mc.compile MCFLAGS <mc-set-customer-bit>no : ;
37flags mc.compile MCFLAGS <mc-set-customer-bit>yes : -c ;
38
39generators.register-standard mc.compile : MC : H RC ;
40
41actions compile
42{
43 mc $(MCFLAGS) -h "$(<[1]:DW)" -r "$(<[2]:DW)" "$(>:W)"
44}