diff --git a/Jamfile b/Jamfile deleted file mode 100644 index f0de2e0..0000000 --- a/Jamfile +++ /dev/null @@ -1,11 +0,0 @@ -# Boost.ProgramOptions Library Jamfile -# -# Copyright (c) 2018 James E. King III -# -# Use, modification, and distribution are subject to 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) - -# please order by name to ease maintenance -build-project example ; -build-project test ; diff --git a/build.jam b/build.jam new file mode 100644 index 0000000..d7eb722 --- /dev/null +++ b/build.jam @@ -0,0 +1,33 @@ +# Copyright René Ferdinand Rivera Morell 2023 +# 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/program_options + : common-requirements + /boost/any//boost_any + /boost/bind//boost_bind + /boost/config//boost_config + /boost/core//boost_core + /boost/detail//boost_detail + /boost/function//boost_function + /boost/iterator//boost_iterator + /boost/lexical_cast//boost_lexical_cast + /boost/smart_ptr//boost_smart_ptr + /boost/static_assert//boost_static_assert + /boost/throw_exception//boost_throw_exception + /boost/tokenizer//boost_tokenizer + /boost/type_traits//boost_type_traits + include + ; + +explicit + [ alias boost_program_options : build//boost_program_options ] + [ alias all : boost_program_options example test ] + ; + +call-if : boost-library program_options + : install boost_program_options + ; diff --git a/build/Jamfile.v2 b/build/Jamfile.v2 index 852054d..a90b51c 100644 --- a/build/Jamfile.v2 +++ b/build/Jamfile.v2 @@ -1,5 +1,5 @@ -project boost/program_options +project : source-location ../src ; @@ -9,8 +9,9 @@ SOURCES = convert winmain split ; -boost-lib program_options +lib boost_program_options : $(SOURCES).cpp : # See https://svn.boost.org/trac/boost/ticket/5049 hpux,gcc:_INCLUDE_STDC__SOURCE_199901 - ; \ No newline at end of file + shared:BOOST_PROGRAM_OPTIONS_DYN_LINK=1 + ; diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 0f1a6e7..968b5a8 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -38,7 +38,7 @@ test-suite program_options : [ run options_description_test.cpp : : : off : options_description_no_rtti_test ] ; -exe test_convert : test_convert.cpp ; +exe test_convert : test_convert.cpp /boost/timer//boost_timer ; # `quick` target (for CI) run quick.cpp : --path=initial ;