jamfile

来自「C++的一个好库。。。现在很流行」· 代码 · 共 56 行

TXT
56
字号
# (C) Copyright Rene Rivera, 2002.
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)

# Example of how to select the targets included in a stage depending
# on the variant to build.
#
# This is for Boost.Build-V1

subproject tools/build/examples/stage_source_selection ;

# Simple executable.
#
exe simple0
    :
        # SOURCES
        simple.cpp
    :
        # REQUIREMENTS
    :
        # DEFAULT BUILDS
        debug
    ;

# Another simple executable. Here it's the same program source
# as the above, but this is only to simplify the example.
#
exe simple1
    :
        # SOURCES
        simple.cpp
    :
        # REQUIREMENTS
    :
        # DEFAULT BUILDS
        debug
    ;

# The stage that builds the two different targets into the
# single stage directory. Both debug and release builds are
# done by default. When soing a "debug" build only the
# "simple0" source is copied to the stage. And conversly
# on a "release" build only the "simple1" source is copied.
#
stage run
    :
        # SOURCES
        <debug><exe>simple0
        <release><exe>simple1
    :
        # TAGS
    :
        # DEFAULT BUILDS
        debug release
    ;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?