Make the library modular usable.

This commit is contained in:
Rene Rivera
2024-03-11 08:38:17 -05:00
committed by Jim King
parent 145778490c
commit 38982dd5b4
3 changed files with 24 additions and 13 deletions

10
Jamfile
View File

@ -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 ;

21
build.jam Normal file
View File

@ -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>include
<source>/boost/config//boost_config
<source>/boost/core//boost_core
;
explicit
[ alias boost_logic ]
[ alias all : boost_logic test ]
;
call-if : boost-library logic
;

View File

@ -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) ] ;