예제 #1
0
    if ps.get('preserve-test-targets') == ['off']:
        bjam.call("set-target-variable", target, "REMOVE_TEST_TARGETS", "1")


get_manager().engine().register_bjam_action("testing.capture-output",
                                            capture_output_setup)

path = os.path.dirname(
    get_manager().projects().loaded_tool_module_path_[__name__])
import b2.util.os_j
get_manager().projects().project_rules()._import_rule("testing", "os.name",
                                                      b2.util.os_j.name)
import b2.tools.common
get_manager().projects().project_rules()._import_rule(
    "testing", "common.rm-command", b2.tools.common.rm_command)
get_manager().projects().project_rules()._import_rule(
    "testing", "common.file-creation-command",
    b2.tools.common.file_creation_command)

bjam.call("load", "testing", os.path.join(path, "testing-aux.jam"))

for name in ["expect-success", "expect-failure", "time"]:
    get_manager().engine().register_bjam_action("testing." + name)

get_manager().engine().register_bjam_action("testing.unit-test",
                                            run_path_setup)

if option.get("dump-tests", False, True):
    build_system.add_pre_build_hook(dump_tests)
예제 #2
0

stage_abs = os.path.abspath(os.path.join(stage_locate, "lib"))

##############################################################################
#
# 4. Add hook to report configuration before the build, and confirmation
# with setup instructions after the build
#
##############################################################################  

def pre_build():
    if "stage" in top_level_targets or "install" in top_level_targets:
        configure.print_component_configuration()

build_system.add_pre_build_hook(pre_build)

def post_build(ok):
    if "forward" in top_level_targets and ok:
        print """\n\nThe Boost C++ Libraries were successfully built!
          
The following directory should be added to compiler include paths:
          
    %s
      
The following directory should be added to linker library paths:
      
    %s
""" % (BOOST_ROOT, stage_abs)

build_system.set_post_build_hook(post_build)
예제 #3
0
    run_path_setup(target, sources, ps)

    if ps.get('preserve-test-targets') == ['off']:
        bjam.call("set-target-variable", target, "REMOVE_TEST_TARGETS", "1")

get_manager().engine().register_bjam_action("testing.capture-output",
                                            capture_output_setup)


path = os.path.dirname(__file__)
import b2.util.os_j
get_manager().projects().project_rules()._import_rule("testing", "os.name",
                                                      b2.util.os_j.name)
import b2.tools.common
get_manager().projects().project_rules()._import_rule("testing", "common.rm-command",
                                                      b2.tools.common.rm_command)
get_manager().projects().project_rules()._import_rule("testing", "common.file-creation-command",
                                                      b2.tools.common.file_creation_command)

bjam.call("load", "testing", os.path.join(path, "testing-aux.jam"))


for name in ["expect-success", "expect-failure", "time"]:
    get_manager().engine().register_bjam_action("testing." + name)

get_manager().engine().register_bjam_action("testing.unit-test",
                                            run_path_setup)

if option.get("dump-tests", False, True):
    build_system.add_pre_build_hook(dump_tests)
예제 #4
0
stage_abs = os.path.abspath(os.path.join(stage_locate, "lib"))

##############################################################################
#
# 4. Add hook to report configuration before the build, and confirmation
# with setup instructions after the build
#
##############################################################################


def pre_build():
    if "stage" in top_level_targets or "install" in top_level_targets:
        configure.print_component_configuration()


build_system.add_pre_build_hook(pre_build)


def post_build(ok):
    if "forward" in top_level_targets and ok:
        print """\n\nThe Boost C++ Libraries were successfully built!
          
The following directory should be added to compiler include paths:
          
    %s
      
The following directory should be added to linker library paths:
      
    %s
""" % (BOOST_ROOT, stage_abs)