summaryrefslogtreecommitdiff
path: root/tools/build/v2/test/generators-test/qt.jam
blob: ec0ee33749366789783db6a08d5c9d651dbb0951 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 2002 Dave Abrahams 
# Copyright 2002 Vladimir Prus 
# Distributed under the Boost Software License, Version 1.0. 
# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) 

import modules ;

if [ modules.peek : NT ]
{
    comment = // ;
}
else
{
    comment = \"//\" ;
}

rule uic ( target : sources * : properties * )
{
    comment on $(<) = $(comment) ;
}
rule uic-h ( target : sources * : properties * )
{
    comment on $(<) = $(comment) ;
}

actions uic 
{
    echo $(comment) $(>) > $(<)
}

actions uic-h
{
    echo $(comment) $(>) > $(<)
}