From 200247f7c591da920a753e6396f5304567b8ba39 Mon Sep 17 00:00:00 2001 From: Deniz Bahadir Date: Thu, 5 Jan 2017 11:15:43 +0100 Subject: [PATCH] New build-option ICU_LIBPATH to manually provide path to libs of ICU. --- build/Jamfile.v2 | 33 +++++++++++++++++---------------- doc/building_boost_locale.txt | 4 ++++ doc/html/building_boost_locale.html | 2 ++ 3 files changed, 23 insertions(+), 16 deletions(-) diff --git a/build/Jamfile.v2 b/build/Jamfile.v2 index 578e722..0f89707 100644 --- a/build/Jamfile.v2 +++ b/build/Jamfile.v2 @@ -60,8 +60,9 @@ explicit has_xlocale ; #end xlocale -ICU_PATH = [ modules.peek : ICU_PATH ] ; -ICU_LINK = [ modules.peek : ICU_LINK ] ; +ICU_PATH = [ modules.peek : ICU_PATH ] ; +ICU_LIBPATH = [ modules.peek : ICU_LIBPATH ] ; +ICU_LINK = [ modules.peek : ICU_LINK ] ; if $(ICU_LINK) { @@ -71,25 +72,25 @@ if $(ICU_LINK) else { searched-lib icuuc : : icuuc - $(ICU_PATH)/lib + $(ICU_LIBPATH)&&$(ICU_PATH)/lib shared shared ; searched-lib icuuc : : msvc debug icuucd - $(ICU_PATH)/lib + $(ICU_LIBPATH)&&$(ICU_PATH)/lib shared shared ; searched-lib icuuc : : this_is_an_invalid_library_name ; - searched-lib icudt : : $(ICU_PATH)/lib + searched-lib icudt : : $(ICU_LIBPATH)&&$(ICU_PATH)/lib icudata shared shared ; - searched-lib icudt : : $(ICU_PATH)/lib + searched-lib icudt : : $(ICU_LIBPATH)&&$(ICU_PATH)/lib icudt msvc shared @@ -97,7 +98,7 @@ else searched-lib icudt : : this_is_an_invalid_library_name ; - searched-lib icuin : : $(ICU_PATH)/lib + searched-lib icuin : : $(ICU_LIBPATH)&&$(ICU_PATH)/lib icui18n shared shared ; @@ -105,14 +106,14 @@ else searched-lib icuin : : msvc debug icuind - $(ICU_PATH)/lib + $(ICU_LIBPATH)&&$(ICU_PATH)/lib shared shared ; searched-lib icuin : : msvc release icuin - $(ICU_PATH)/lib + $(ICU_LIBPATH)&&$(ICU_PATH)/lib shared shared ; @@ -130,25 +131,25 @@ else searched-lib icuuc_64 : : icuuc - $(ICU_PATH)/lib64 + $(ICU_LIBPATH)&&$(ICU_PATH)/lib64 shared shared ; searched-lib icuuc_64 : : msvc debug icuucd - $(ICU_PATH)/lib64 + $(ICU_LIBPATH)&&$(ICU_PATH)/lib64 shared shared ; searched-lib icuuc_64 : : this_is_an_invalid_library_name ; - searched-lib icudt_64 : : $(ICU_PATH)/lib64 + searched-lib icudt_64 : : $(ICU_LIBPATH)&&$(ICU_PATH)/lib64 icudata shared shared ; - searched-lib icudt_64 : : $(ICU_PATH)/lib64 + searched-lib icudt_64 : : $(ICU_LIBPATH)&&$(ICU_PATH)/lib64 icudt msvc shared @@ -156,7 +157,7 @@ else searched-lib icudt_64 : : this_is_an_invalid_library_name ; - searched-lib icuin_64 : : $(ICU_PATH)/lib64 + searched-lib icuin_64 : : $(ICU_LIBPATH)&&$(ICU_PATH)/lib64 icui18n shared shared ; @@ -164,14 +165,14 @@ else searched-lib icuin_64 : : msvc debug icuind - $(ICU_PATH)/lib64 + $(ICU_LIBPATH)&&$(ICU_PATH)/lib64 shared shared ; searched-lib icuin_64 : : msvc release icuin - $(ICU_PATH)/lib64 + $(ICU_LIBPATH)&&$(ICU_PATH)/lib64 shared shared ; diff --git a/doc/building_boost_locale.txt b/doc/building_boost_locale.txt index 37f3684..0606d9c 100644 --- a/doc/building_boost_locale.txt +++ b/doc/building_boost_locale.txt @@ -90,6 +90,9 @@ For example: when using Microsoft Visual Studio so Boost.Build will link correctly debug and release versions of boost_locale library. +\note If ICU libraries are located at some other (sub)directory you can provide this +location by additionally using \c -sICU_LIBPATH option. + \section bb_build_opts Build Options Boost.Locale supports following options with values \c off or \c on @@ -106,6 +109,7 @@ Boost.Locale supports following options with values \c off or \c on Also Boost.Locale supports following options - \c -sICU_PATH=/path/to/location/of/icu - the location of custom ICU library +- \c -sICU_LIBPATH=/path/to/location/of/icu/libraries - the location of custom ICU library libs - \c -sICONV_PATH=/path/to/location/of/iconv - the location of custom iconv library diff --git a/doc/html/building_boost_locale.html b/doc/html/building_boost_locale.html index 3aeb549..9a3f645 100644 --- a/doc/html/building_boost_locale.html +++ b/doc/html/building_boost_locale.html @@ -121,6 +121,7 @@ then you need to provide an option -sICU_PATH=c:\icu46
    .\bjam --with-locale -sICU_PATH=c:\icu46  stage
Note
Don't forget to put both debug and release versions of ICU libraries in this path when using Microsoft Visual Studio so Boost.Build will link correctly debug and release versions of boost_locale library.
+
Note
If ICU libraries are located at some other (sub)directory you can provide this location by additionally using -sICU_LIBPATH option.

Build Options

Boost.Locale supports following options with values off or on

@@ -134,6 +135,7 @@

Also Boost.Locale supports following options

  • -sICU_PATH=/path/to/location/of/icu - the location of custom ICU library
  • +
  • -sICU_LIBPATH=/path/to/location/of/icu/libraries - the location of custom ICU library libs
  • -sICONV_PATH=/path/to/location/of/iconv - the location of custom iconv library

For example: