From 38982dd5b41ef8538df9e8eef2b8209ef31a2ead Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Mon, 11 Mar 2024 08:38:17 -0500 Subject: [PATCH] Make the library modular usable. --- Jamfile | 10 ---------- build.jam | 21 +++++++++++++++++++++ test/Jamfile.v2 | 6 +++--- 3 files changed, 24 insertions(+), 13 deletions(-) delete mode 100644 Jamfile create mode 100644 build.jam diff --git a/Jamfile b/Jamfile deleted file mode 100644 index df48946..0000000 --- a/Jamfile +++ /dev/null @@ -1,10 +0,0 @@ -# Boost.Logic 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 test ; diff --git a/build.jam b/build.jam new file mode 100644 index 0000000..65ba4d1 --- /dev/null +++ b/build.jam @@ -0,0 +1,21 @@ +# 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/logic + : common-requirements + include + /boost/config//boost_config + /boost/core//boost_core + ; + +explicit + [ alias boost_logic ] + [ alias all : boost_logic test ] + ; + +call-if : boost-library logic + ; diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 994f2b6..cd0cdf9 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -13,13 +13,13 @@ import os ; import regex ; import testing ; -local self = logic ; +path-constant self : . ; rule test-expected-failures { local all_rules = ; local file ; - local tests_path = [ path.make $(BOOST_ROOT)/libs/$(self)/test/compile-fail ] ; + local tests_path = [ path.make $(self)/../test/compile-fail ] ; for file in [ path.glob-tree $(tests_path) : *.cpp ] { local rel_file = [ path.relative-to $(tests_path) $(file) ] ; @@ -37,7 +37,7 @@ rule test-header-isolation { local all_rules = ; local file ; - local headers_path = [ path.make $(BOOST_ROOT)/libs/$(self)/include ] ; + local headers_path = [ path.make $(self)/../include ] ; for file in [ path.glob-tree $(headers_path) : *.hpp ] { local rel_file = [ path.relative-to $(headers_path) $(file) ] ;