2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 13:22:11 +00:00
Files
build/test/unused/project-root.jam
Vladimir Prus 07e1e527a3 Handle hardcode-dll-paths a little bit differently.
* new/targets.jam
  (basic-target.compute-usage-requirements): Add second parameter 'targets'.

* new/builtin.jam
  (lib-target-class.compute-usage-requirements): Add proper <dll-path>
  properties when <hardcode-dll-paths> in in properties.

  (lib-target.adjust-properties): Don't handle <hardcode-dll-paths>.


[SVN r20441]
2003-10-21 10:44:06 +00:00

54 lines
1.2 KiB
Plaintext

import type ;
import generators ;
import print ;
import virtual-target ;
import "class" : new ;
import modules ;
import targets ;
type.register X : x ;
class test-target-class : basic-target
{
rule __init__ ( name : project )
{
basic-target.__init__ $(name) : $(project) ;
}
rule construct ( source-targets * : property-set )
{
if [ modules.peek : GENERATE_NOTHING ]
{
return ;
}
else if [ modules.peek : GENERATE_ONLY_UNUSABLE ]
{
return [ virtual-target.from-file b.x : $(self.project) ]
;
}
else
{
return [ virtual-target.from-file b.x : $(self.project) ]
[ virtual-target.from-file b.cpp : $(self.project) ]
;
}
}
rule compute-usage-requirements ( rproperties : targets * )
{
return [ property-set.create <define>FOO ] ;
}
}
rule make-b-main-target
{
local project = [ CALLER_MODULE ] ;
targets.main-target-alternative
[ new test-target-class b : $(project) ] ;
}
IMPORT $(__name__) : make-b-main-target : : make-b-main-target ;