mirror of
https://github.com/boostorg/build.git
synced 2026-02-12 12:02:24 +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
463 B
Python
28 lines
463 B
Python
#!/usr/bin/python
|
|
|
|
from BoostBuild import Tester
|
|
import os
|
|
from string import strip
|
|
|
|
t = Tester()
|
|
t.set_tree("project-test3")
|
|
|
|
|
|
t.run_build_system()
|
|
|
|
t.expect_addition("bin/a.obj")
|
|
t.fail_test(t.read("bin/a.obj") != \
|
|
"""variant-debug/optimization-off
|
|
a.cpp
|
|
""")
|
|
|
|
t.expect_addition("bin/a.exe")
|
|
t.fail_test(t.read("bin/a.exe") != \
|
|
"""variant-debug/optimization-off
|
|
bin/a.obj
|
|
""")
|
|
|
|
t.touch("a.cpp")
|
|
t.run_build_system()
|
|
t.expect_touch(["bin/a.obj", "bin/a.exe"])
|