bbv2 updates.

[SVN r36549]
This commit is contained in:
John Maddock
2006-12-31 17:25:39 +00:00
parent 2a87146c18
commit 4f787b3c60
5 changed files with 16 additions and 399 deletions

View File

@ -3,10 +3,13 @@
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt.
subproject libs/regex/performance ;
SOURCES = command_line main time_boost time_greta time_localised_boost time_pcre time_dynamic_xpressive time_posix time_safe_greta ;
local HS_REGEX_PATH = [ modules.peek : HS_REGEX_PATH ] ;
local USE_POSIX = [ modules.peek : USE_POSIX ] ;
local PCRE_PATH = [ modules.peek : PCRE_PATH ] ;
local USE_PCRE = [ modules.peek : USE_PCRE ] ;
if $(HS_REGEX_PATH)
{
HS_SOURCES = $(HS_REGEX_PATH)/regcomp.c $(HS_REGEX_PATH)/regerror.c $(HS_REGEX_PATH)/regexec.c $(HS_REGEX_PATH)/regfree.c ;
@ -17,6 +20,8 @@ else if $(USE_POSIX)
POSIX_OPTS = <define>BOOST_HAS_POSIX=1 ;
}
lib pcre : : <name>pcre ;
if $(PCRE_PATH)
{
PCRE_SOURCES = $(PCRE_PATH)/chartables.c $(PCRE_PATH)/get.c $(PCRE_PATH)/pcre.c $(PCRE_PATH)/study.c ;
@ -24,7 +29,8 @@ if $(PCRE_PATH)
}
else if $(USE_PCRE)
{
PCRE_OPTS = <define>BOOST_HAS_PCRE=1 <find-library>pcre ;
PCRE_OPTS = <define>BOOST_HAS_PCRE=1 ;
PCRE_SOURCES = pcre ;
}
@ -32,10 +38,9 @@ exe regex_comparison :
$(SOURCES).cpp
$(HS_SOURCES)
$(PCRE_SOURCES)
<lib>../build/boost_regex
<lib>../../test/build/boost_prg_exec_monitor
../build//boost_regex
../../test/build//boost_prg_exec_monitor/<link>static
:
<include>$(BOOST_ROOT)
<define>BOOST_REGEX_NO_LIB=1
<define>BOOST_REGEX_STATIC_LINK=1
$(POSIX_OPTS)
@ -47,3 +52,4 @@ exe regex_comparison :