# (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 simple0 simple1 : # TAGS : # DEFAULT BUILDS debug release ;