Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for modular build structure. #26

Merged
merged 8 commits into from
Nov 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions Jamfile

This file was deleted.

27 changes: 27 additions & 0 deletions build.jam
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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 ;

constant boost_dependencies :
/boost/assert//boost_assert
/boost/config//boost_config
/boost/iterator//boost_iterator
/boost/throw_exception//boost_throw_exception
/boost/type_traits//boost_type_traits ;

project /boost/tokenizer
: common-requirements
<include>include
;

explicit
[ alias boost_tokenizer : : : : <library>$(boost_dependencies) ]
[ alias all : boost_tokenizer example test ]
;

call-if : boost-library tokenizer
;

2 changes: 2 additions & 0 deletions example/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

import testing ;

project : requirements <library>/boost/tokenizer//boost_tokenizer ;

test-suite "tokenizer-examples"
: [ run char_sep_example_1.cpp ]
[ run char_sep_example_2.cpp ]
Expand Down
4 changes: 3 additions & 1 deletion test/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

import testing ;

run examples.cpp ;
project : requirements <library>/boost/tokenizer//boost_tokenizer ;

run examples.cpp : : : <library>/boost/array//boost_array ;
run simple_example_1.cpp ;
run simple_example_2.cpp ;
run simple_example_3.cpp ;
Expand Down
Loading