mirror of
https://github.com/boostorg/regex.git
synced 2025-07-18 23:02:09 +02:00
Merge from trunk
[SVN r49356]
This commit is contained in:
@ -33,8 +33,6 @@ rule check-icu-config ( )
|
||||
|
||||
if [ GLOB $(dir)/include/unicode : utypes.h ]
|
||||
{
|
||||
ECHO Building Boost.Regex with Unicode/ICU support enabled ;
|
||||
ECHO Using ICU in $(ICU_PATH:J=" ")/include ;
|
||||
gHAS_ICU = true ;
|
||||
|
||||
# try and find ICU libraries, look for NT versions first:
|
||||
@ -153,21 +151,38 @@ rule check-icu-config ( )
|
||||
|
||||
if $(gHAS_ICU)
|
||||
{
|
||||
message icu_config ;
|
||||
message icu_config2
|
||||
: Note: Building Boost.Regex with Unicode/ICU support enabled
|
||||
: " Using ICU in " $(ICU_PATH:J=" ")/include ;
|
||||
return true ;
|
||||
}
|
||||
else
|
||||
{
|
||||
ECHO Building Boost.Regex with the optional Unicode/ICU support disabled. ;
|
||||
ECHO Please refer to the Boost.Regex documentation for more information ;
|
||||
ECHO (don't panic: this is a strictly optional feature). ;
|
||||
message icu_config
|
||||
: "Building Boost.Regex with the optional Unicode/ICU support disabled."
|
||||
: "Note: Please refer to the Boost.Regex documentation for more information"
|
||||
: "Note: this is a strictly optional feature." ;
|
||||
|
||||
if $(ICU_PATH)
|
||||
{
|
||||
ECHO Couldn't find utypes.h in $(ICU_PATH:J=" ")/include/unicode ;
|
||||
message icu_config2
|
||||
: WARNING! ICU configuration failed
|
||||
: " Couldn't find utypes.h in " $(ICU_PATH:J=" ")/include/unicode ;
|
||||
}
|
||||
else
|
||||
{
|
||||
message icu_config2 ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
explicit icu_config ;
|
||||
explicit icu_config2 ;
|
||||
|
||||
if [ check-icu-config ]
|
||||
{
|
||||
if $(gHAS_ICU)
|
||||
{
|
||||
BOOST_REGEX_ICU_OPTS = "<target-os>freebsd:<include>/usr/local/include" ;
|
||||
BOOST_REGEX_ICU_OPTS += "<define>BOOST_HAS_ICU=1" ;
|
||||
@ -212,6 +227,7 @@ if [ check-icu-config ]
|
||||
}
|
||||
#End of addition by Tommy Nordgren
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SOURCES =
|
||||
@ -234,7 +250,7 @@ SOURCES =
|
||||
usinstances.cpp ;
|
||||
|
||||
|
||||
lib boost_regex : ../src/$(SOURCES) $(ICU_EXTRA_SOURCE)
|
||||
lib boost_regex : ../src/$(SOURCES) $(ICU_EXTRA_SOURCE) icu_config2 icu_config
|
||||
:
|
||||
#<link>static:<define>BOOST_REGEX_NO_LIB=1
|
||||
#<link>static:<define>BOOST_REGEX_STATIC_LINK=1
|
||||
@ -261,3 +277,5 @@ boost-install boost_regex ;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user