Moved common build options into build/Jamfile

[SVN r20355]
This commit is contained in:
John Maddock
2003-10-12 11:19:15 +00:00
parent c23a7a8cfe
commit ff1c0a0bb5
4 changed files with 32 additions and 32 deletions

View File

@ -1,26 +0,0 @@
# copyright John Maddock 2003
#
# this template defines the options common to
# all regex builds and tests:
#
template regex-options
: # sources
: # requirements
<define>BOOST_REGEX_NO_LIB=1
<debug><define>BOOST_REGEX_CONFIG_INFO=1
<sysinclude>$(BOOST_ROOT)
# como requires this:
<como-win32><*><define>BOOST_REGEX_NO_W32=1
;
#
# this template defines the options common to
# all regex dll builds and tests:
#
template regex-dll-options
: <template>regex-options # sources
: # requirements
<define>BOOST_REGEX_DYN_LINK=1
<runtime-link>dynamic
;

View File

@ -2,7 +2,30 @@
subproject libs/regex/build ; subproject libs/regex/build ;
import ../base ; #
# this template defines the options common to
# all regex builds and tests:
#
template regex-options
: # sources
: # requirements
<define>BOOST_REGEX_NO_LIB=1
<debug><define>BOOST_REGEX_CONFIG_INFO=1
<sysinclude>$(BOOST_ROOT)
# como requires this:
<como-win32><*><define>BOOST_REGEX_NO_W32=1
;
#
# this template defines the options common to
# all regex dll builds and tests:
#
template regex-dll-options
: <template>regex-options # sources
: # requirements
<define>BOOST_REGEX_DYN_LINK=1
<runtime-link>dynamic
;
SOURCES = c_regex_traits c_regex_traits_common cpp_regex_traits SOURCES = c_regex_traits c_regex_traits_common cpp_regex_traits
cregex fileiter posix_api regex regex_debug cregex fileiter posix_api regex regex_debug
@ -142,3 +165,4 @@ stage bin-stage : <lib>boost_regex <dll>boost_regex

View File

@ -3,7 +3,7 @@
subproject libs/regex/example ; subproject libs/regex/example ;
# bring in the rules for testing # bring in the rules for testing
import testing ../base ; import testing ;
rule regex-test-run ( sources + : input * ) rule regex-test-run ( sources + : input * )
{ {
@ -11,7 +11,7 @@ rule regex-test-run ( sources + : input * )
run run
# sources # sources
$(sources) $(sources)
<template>regex-options <template>../build/regex-options
# dependencies # dependencies
<lib>../build/boost_regex <lib>../build/boost_regex
@ -51,3 +51,4 @@ test-suite regex-examples :

View File

@ -3,14 +3,14 @@
subproject libs/regex/test ; subproject libs/regex/test ;
# bring in the rules for testing # bring in the rules for testing
import testing ../base ; import testing ;
# #
# this template defines the options common to # this template defines the options common to
# all regex tests: # all regex tests:
# #
template test template test
: <template>regex-options : <template>../build/regex-options
<lib>../build/boost_regex # sources <lib>../build/boost_regex # sources
: <threading>multi : <threading>multi
; ;
@ -44,7 +44,7 @@ rule regex-test ( name : sources + : requirements * : input-files * )
# all regex dll tests: # all regex dll tests:
# #
template test-dll template test-dll
: <template>regex-dll-options : <template>../build/regex-dll-options
<dll>../build/boost_regex # sources <dll>../build/boost_regex # sources
: <threading>multi : <threading>multi
; ;
@ -133,3 +133,4 @@ test-suite regex