--- libs/locale/build/Jamfile.v2 | 63 ++++++-------------------------------- libs/locale/build/has_icu_test.cpp | 4 --- libs/regex/build/Jamfile.v2 | 47 +++++++--------------------- 3 files changed, 20 insertions(+), 94 deletions(-) diff --git a/libs/locale/build/Jamfile.v2 b/libs/locale/build/Jamfile.v2 index 578e722..5f25917 100644 --- a/libs/locale/build/Jamfile.v2 +++ b/libs/locale/build/Jamfile.v2 @@ -70,62 +70,17 @@ if $(ICU_LINK) } 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 ; diff --git a/libs/locale/build/has_icu_test.cpp b/libs/locale/build/has_icu_test.cpp index 9419b30..ed9be05 100644 --- a/libs/locale/build/has_icu_test.cpp +++ b/libs/locale/build/has_icu_test.cpp @@ -15,10 +15,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; diff --git a/libs/regex/build/Jamfile.v2 b/libs/regex/build/Jamfile.v2 index 58fd1fb..76ee9f4 100644 --- a/libs/regex/build/Jamfile.v2 +++ b/libs/regex/build/Jamfile.v2 @@ -48,50 +48,25 @@ if ! $(disable-icu) } else { - lib icuuc : : shared @path_options ; - lib icuuc : : msvc debug icuucd shared @path_options ; - lib icuuc : : intel windows debug icuucd shared @path_options ; - lib icuuc : : sicuuc static @path_options ; - lib icuuc : : msvc debug sicuucd static @path_options ; - lib icuuc : : intel windows debug sicuucd static @path_options ; - lib icuuc : : this_is_an_invalid_library_name ; - - lib icudt : : icudata shared @path_options ; - lib icudt : : icudt msvc shared @path_options ; - lib icudt : : icudt intel windows shared @path_options ; - lib icudt : : sicudata static @path_options ; - lib icudt : : sicudt msvc static @path_options ; - lib icudt : : sicudt intel windows static @path_options ; - lib icudt : : this_is_an_invalid_library_name ; - - lib icuin : : icui18n shared @path_options ; - lib icuin : : msvc debug icuind shared @path_options ; - lib icuin : : msvc icuin shared @path_options ; - lib icuin : : intel windows debug icuind shared @path_options ; - lib icuin : : intel windows icuin shared @path_options ; - lib icuin : : sicui18n static @path_options ; - lib icuin : : msvc debug sicuind static @path_options ; - lib icuin : : msvc sicuin static @path_options ; - lib icuin : : intel windows debug sicuind static @path_options ; - lib icuin : : intel windows sicuin static @path_options ; - lib icuin : : this_is_an_invalid_library_name ; + + alias icuuc : /user-config//icuuc ; + alias icuin : /user-config//icuin ; + alias icudt : /user-config//icudt ; + + explicit icuuc icuin icudt ; ICU_OPTS = $(ICU_PATH)/include - shared:icuuc/shared - shared:icudt/shared - shared:icuin/shared - static:icuuc - static:icudt - static:icuin - BOOST_HAS_ICU=1 - static:U_STATIC_IMPLEMENTATION=1 + icuuc + icudt + icuin + BOOST_HAS_ICU=1 ; } } -unit-test has_icu : has_icu_test.cpp : $(ICU_OPTS) ; +exe has_icu : has_icu_test.cpp : $(ICU_OPTS) ; explicit has_icu ; alias icu_options : : : : [ check-target-builds has_icu : $(ICU_OPTS) : ] ; -- 2.12.2.windows.2