diff --git a/build.jam b/build.jam new file mode 100644 index 00000000..133aeb89 --- /dev/null +++ b/build.jam @@ -0,0 +1,29 @@ +# 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) + +require-b2 5.2 ; + +import feature ; + +feature.feature boost.nowide.lfs : auto no : optional propagated ; + +constant boost_dependencies : + /boost/config//boost_config + /boost/filesystem//boost_filesystem ; + +project /boost/nowide + : common-requirements + include + ; + +explicit + [ alias boost_nowide : build//boost_nowide ] + [ alias all : boost_nowide test ] + ; + +call-if : boost-library nowide + : install boost_nowide + ; + diff --git a/build/Jamfile.v2 b/build/Jamfile.v2 index 8ea6ae74..49271b05 100644 --- a/build/Jamfile.v2 +++ b/build/Jamfile.v2 @@ -1,24 +1,24 @@ # Copyright (c) 2002, 2006 Beman Dawes # Copyright (c) 2012 Artyom Beilis (Tonkikh) # Copyright (c) 2020-2021 Alexander Grund -# +# # Distributed under the Boost Software License, Version 1.0. # https://www.boost.org/LICENSE_1_0.txt # # See library home page at https://www.boost.org/libs/nowide -import ../../config/checks/config : requires ; +import-search /boost/config/checks ; +import config : requires ; import configure ; -import feature ; - -feature.feature boost.nowide.lfs : auto no : optional propagated ; local requirements = shared:BOOST_NOWIDE_DYN_LINK=1 + BOOST_NOWIDE_NO_LIB=1 ; -project boost/nowide +project : source-location ../src + : common-requirements $(boost_dependencies) : requirements $(requirements) [ requires cxx11_auto_declarations @@ -46,5 +46,3 @@ lib boost_nowide : $(SOURCES).cpp : ../src ; - -boost-install boost_nowide ; diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index f632ed58..8aa57eab 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -1,7 +1,7 @@ # Copyright (c) 2003, 2006 Beman Dawes # Copyright (c) 2012 Artyom Beilis (Tonkikh) # Copyright (c) 2020-2022 Alexander Grund -# +# # Distributed under the Boost Software License, Version 1.0. # https://www.boost.org/LICENSE_1_0.txt @@ -23,11 +23,11 @@ project : requirements . pedantic on - [ check-target-builds ../config//cxx11_moveable_fstreams "std::fstream is moveable and swappable" : : no ] + [ check-target-builds ../config//cxx11_moveable_fstreams "std::fstream is moveable and swappable" : : no ] ; lib shell32 ; -lib file_test_helpers : file_test_helpers.cpp : static -/boost/nowide//boost_nowide ; +lib file_test_helpers : file_test_helpers.cpp : static -/boost/nowide//boost_nowide /boost/nowide//boost_nowide ; explicit file_test_helpers ; run test_codecvt.cpp ;