mirror of
https://github.com/boostorg/build.git
synced 2026-02-13 12:22:17 +00:00
* new/targets.jam: Check for duplicate 'basic-target::generate()' calls.
Use better logic to tell is source is another main target or file.
(project-target::has-main-target): New rule.
* new/project.jam (lookup): Fixes. (find-target): Implemented.
* new/make.jam: New file, defines the 'make' rule and associated target
class.
* new/build-system.jam: Import 'make'. Generate virtual targets and
actualize them.
* new/utility.jam: Added "MkDir" rule and actions.
* test/project_test3.py: New test.
[SVN r14249]
28 lines
500 B
Plaintext
28 lines
500 B
Plaintext
|
|
import property ;
|
|
|
|
rule yfc-compile ( target : sources * : property-set * )
|
|
{
|
|
PROPERTIES on $(target) = [ property.as-path $(property-set) ] ;
|
|
}
|
|
|
|
actions yfc-compile
|
|
{
|
|
echo $(PROPERTIES) > $(<)
|
|
echo $(>) >> $(<)
|
|
}
|
|
|
|
rule yfc-link ( target : sources * : property-set * )
|
|
{
|
|
PROPERTIES on $(target) = [ property.as-path $(property-set) ] ;
|
|
}
|
|
|
|
actions yfc-link
|
|
{
|
|
echo $(PROPERTIES) > $(<)
|
|
echo $(>) >> $(<)
|
|
}
|
|
|
|
|
|
IMPORT $(__name__) : yfc-compile yfc-link : : yfc-compile yfc-link ;
|