diff --git a/build.jam b/build.jam new file mode 100644 index 00000000..75d4e07d --- /dev/null +++ b/build.jam @@ -0,0 +1,26 @@ +# Copyright René Ferdinand Rivera Morell 2023-2024 +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or copy at +# http://www.boost.org/LICENSE_1_0.txt) + +import project ; + +project /boost/locale + : common-requirements + /boost/assert//boost_assert + /boost/config//boost_config + /boost/core//boost_core + /boost/iterator//boost_iterator + /boost/predef//boost_predef + /boost/thread//boost_thread + include + ; + +explicit + [ alias boost_locale : build//boost_locale ] + [ alias all : boost_locale test ] + ; + +call-if : boost-library locale + : install boost_locale + ; diff --git a/build/Jamfile.v2 b/build/Jamfile.v2 index b7268c58..d9403048 100644 --- a/build/Jamfile.v2 +++ b/build/Jamfile.v2 @@ -15,7 +15,7 @@ import toolset ; path-constant TOP : .. ; -project /boost/locale +project : source-location $(TOP)/src/boost/locale ; @@ -46,7 +46,7 @@ explicit has_iconv ; ICONV_PATH = [ modules.peek : ICONV_PATH ] ; # There may also be an external iconv library -lib iconv : +searched-lib iconv : : $(ICONV_PATH)/lib shared shared : : $(ICONV_PATH)/include ; @@ -127,54 +127,54 @@ if [ modules.peek : ICU_ICUIN_NAME ] if $(ICU_ICUUC_NAME) { - lib icuuc : : $(ICU_ICUUC_NAME) @path_options ; + searched-lib icuuc : : $(ICU_ICUUC_NAME) @path_options ; debug-message Using "$(ICU_ICUUC_NAME)" for library "icuuc" ; } 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 ; + searched-lib icuuc : : shared @path_options ; + searched-lib icuuc : : msvc debug icuucd shared @path_options ; + searched-lib icuuc : : intel windows debug icuucd shared @path_options ; + searched-lib icuuc : : sicuuc static @path_options ; + searched-lib icuuc : : msvc debug sicuucd static @path_options ; + searched-lib icuuc : : intel windows debug sicuucd static @path_options ; + searched-lib icuuc : : this_is_an_invalid_library_name ; } if $(ICU_ICUDT_NAME) { - lib icudt : : $(ICU_ICUDT_NAME) @path_options ; + searched-lib icudt : : $(ICU_ICUDT_NAME) @path_options ; debug-message Using "$(ICU_ICUDT_NAME)" for library "icudt" ; } else { - 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 ; + searched-lib icudt : : icudata shared @path_options ; + searched-lib icudt : : icudt msvc shared @path_options ; + searched-lib icudt : : icudt intel windows shared @path_options ; + searched-lib icudt : : sicudata static @path_options ; + searched-lib icudt : : sicudt msvc static @path_options ; + searched-lib icudt : : sicudt intel windows static @path_options ; + searched-lib icudt : : this_is_an_invalid_library_name ; } if $(ICU_ICUIN_NAME) { - lib icuin : : $(ICU_ICUIN_NAME) @path_options ; + searched-lib icuin : : $(ICU_ICUIN_NAME) @path_options ; debug-message Using "$(ICU_ICUIN_NAME)" for library "icuin" ; } else { - 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 ; + searched-lib icuin : : icui18n shared @path_options ; + searched-lib icuin : : msvc debug icuind shared @path_options ; + searched-lib icuin : : msvc icuin shared @path_options ; + searched-lib icuin : : intel windows debug icuind shared @path_options ; + searched-lib icuin : : intel windows icuin shared @path_options ; + searched-lib icuin : : sicui18n static @path_options ; + searched-lib icuin : : msvc debug sicuind static @path_options ; + searched-lib icuin : : msvc sicuin static @path_options ; + searched-lib icuin : : intel windows debug sicuind static @path_options ; + searched-lib icuin : : intel windows sicuin static @path_options ; + searched-lib icuin : : this_is_an_invalid_library_name ; } ICU_OPTS = @@ -421,7 +421,7 @@ local cxx_requirements = [ requires cxx11_variadic_templates ] ; -boost-lib locale +lib boost_locale : encoding/codepage.cpp shared/date_time.cpp diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 40f4b6f1..e3b85592 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -6,7 +6,7 @@ # https://www.boost.org/LICENSE_1_0.txt import config : requires ; -import ../../predef/tools/check/predef : check : predef-check ; +import predef : check : predef-check ; project : requirements /boost/locale//boost_locale