2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-14 12:42:11 +00:00
Files
build/test/dependency-test/foo.jam
Dave Abrahams 8ecc2fb311 Fixes for NT
[SVN r17675]
2003-02-27 15:04:11 +00:00

28 lines
589 B
Plaintext

import type ;
import generators ;
import os ;
type.register FOO : foo ;
generators.register-standard foo.foo : FOO : CPP H ;
rule foo ( targets * : sources * : properties * )
{
# On NT, you may need an exported symbol in order to have an import lib generated
if [ os.name ] = NT
{
.decl = "echo void __declspec(dllexport) foo(){}" ;
}
.decl1 on $(<) = $(.decl:E="echo //") ;
# Further files must be touched also; NT doesn't have a touch command
.decl2 on $(<) = "
echo // > " ;
}
actions foo
{
$(.decl1) > $(<[1]) $(.decl2)$(<[2-])
}