2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-17 01:32:12 +00:00
Files
build/v1/example/template_use/sub/Jamfile
Rene Rivera b11dfc4490 BSL.
[SVN r24062]
2004-07-26 04:46:01 +00:00

44 lines
1.1 KiB
Plaintext

# (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 use a template target declared in another project.
# This is for Boost.Build-V1
subproject tools/build/examples/template_use/sub ;
# Declare a library target. This 'inherits' the attributes of
# the template which in this case adds the needed include
# directory. Because templates are "special" targets they
# appear in the source dependencies section and must be
# a relative reference to the template target in it's declared
# location.
#
lib simple
:
# SOURCES
<template>../t-common
simple_lib.cpp
:
# REQUIREMENTS
:
# DEFAULT BUILDS
debug <threading>single/multi
;
# Declare an executable target that also uses the template,
# and the above library target.
#
exe simple
:
# SOURCES
<template>../t-common
simple.cpp
<lib>simple
:
# REQUIREMENTS
<threading>multi
:
# DEFAULT BUILDS
;