build/Jamfile.v2 | 69 +++++++++++--------------------------------------- build/has_icu_test.cpp | 4 --- 2 files changed, 15 insertions(+), 58 deletions(-) diff --git a/build/Jamfile.v2 b/build/Jamfile.v2 index 450ec87..653f592 100644 --- a/build/Jamfile.v2 +++ b/build/Jamfile.v2 @@ -20,6 +20,7 @@ project /boost/locale # Features feature.feature boost.locale.iconv : on off : optional propagated ; +feature.feature boost.locale.force-found-iconv : on off : optional propagated ; feature.feature boost.locale.icu : on off : optional propagated ; feature.feature boost.locale.posix : on off : optional propagated ; feature.feature boost.locale.std : on off : optional propagated ; @@ -86,62 +87,17 @@ if $(ICU_LINK) ICU64_OPTS = $(icu-path)/include $(ICU_LINK) $(icu-path)/bin64 shared ; } else { - searched-lib icuuc : : icuuc - $(icu-path)/lib - shared - shared ; - - searched-lib icuuc : : msvc - debug - icuucd - $(icu-path)/lib - shared - shared ; - - searched-lib icuuc : : this_is_an_invalid_library_name ; - - searched-lib icudt : : $(icu-path)/lib - icudata - shared - shared ; - - searched-lib icudt : : $(icu-path)/lib - icudt - msvc - shared - shared ; - - searched-lib icudt : : this_is_an_invalid_library_name ; - - searched-lib icuin : : $(icu-path)/lib - icui18n - shared - shared ; - - searched-lib icuin : : msvc - debug - icuind - $(icu-path)/lib - shared - shared ; - - searched-lib icuin : : msvc - release - icuin - $(icu-path)/lib - shared - shared ; - - searched-lib icuin : : this_is_an_invalid_library_name ; - - explicit icuuc icudt icuin ; + alias icuuc : /user-config//icuuc ; + alias icuin : /user-config//icuin ; + alias icudt : /user-config//icudt ; + + explicit icuuc icuin icudt ; ICU_OPTS = $(icu-path)/include - icuuc/shared/shared - icudt/shared/shared - icuin/shared/shared - $(icu-path)/bin - shared ; + icuuc + icuin + icudt + $(icu-path)/bin ; @@ -221,6 +177,11 @@ rule configure-full ( properties * : flags-only ) local found-iconv ; + if on in $(properties) + { + found-iconv = true ; + } + # The system Iconv on Solaris may have bugs, while the GNU Iconv is fine. # So enable by default only if not on Solaris. if on in $(properties) diff --git a/build/has_icu_test.cpp b/build/has_icu_test.cpp index 344c8ea..f200bce 100644 --- a/build/has_icu_test.cpp +++ b/build/has_icu_test.cpp @@ -9,10 +9,6 @@ #include #include -#if defined(_MSC_VER) && !defined(_DLL) -#error "Mixing ICU with a static runtime doesn't work" -#endif - int main() { icu::Locale loc;