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. #138

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from
11 changes: 0 additions & 11 deletions Jamfile

This file was deleted.

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

project /boost/program_options
: common-requirements
<include>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
;

19 changes: 14 additions & 5 deletions build/Jamfile.v2
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@

project boost/program_options
: source-location ../src
constant boost_dependencies_private :
/boost/bind//boost_bind
/boost/tokenizer//boost_tokenizer
;

project
: source-location ../src
: common-requirements <library>$(boost_dependencies)
: requirements <library>$(boost_dependencies_private)
;

SOURCES =
cmdline config_file options_description parsers variables_map
cmdline config_file options_description parsers variables_map
value_semantic positional_options utf8_codecvt_facet
convert winmain split
;

boost-lib program_options
lib boost_program_options
: $(SOURCES).cpp
: # See https://svn.boost.org/trac/boost/ticket/5049
<target-os>hpux,<toolset>gcc:<define>_INCLUDE_STDC__SOURCE_199901
;
<link>shared:<define>BOOST_PROGRAM_OPTIONS_DYN_LINK=1
<define>BOOST_PROGRAM_OPTIONS_NO_LIB=1
;
10 changes: 5 additions & 5 deletions doc/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
import toolset ;
toolset.using doxygen ;

boostbook program_option
: program_options.xml
: <implicit-dependency>autodoc
boostbook program_option
: program_options.xml
: <implicit-dependency>autodoc
<xsl:param>boost.root=../../../..
<format>pdf:<xsl:param>boost.url.prefix=http://www.boost.org/doc/libs/release/doc/html
;

doxygen autodoc
: [ glob ../../../boost/program_options/*.hpp ] ;
doxygen autodoc
: [ glob ../include/boost/program_options/*.hpp ] ;

###############################################################################
alias boostdoc
Expand Down
2 changes: 1 addition & 1 deletion test/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ test-suite program_options :
[ run options_description_test.cpp : : : <rtti>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 ;
Loading