2
0
mirror of https://github.com/boostorg/wave.git synced 2026-01-19 04:42:16 +00:00
Files
wave/tool/build/Jamfile.v2
René Ferdinand Rivera Morell 7ce8b53d9d Add support for modular build structure. (#214)
* Make the library modular usable.

* Switch to library requirements instead of source. As source puts extra source in install targets.

* Add wave tool build to all target.

* Add missing NO_LIB usage requirements.

* Add requires-b2 check to top-level build file.

* Bump B2 require to 5.2

* Change all <source> references to <library>.

* Move inter-lib dependencies to a project variable and into the build targets.

* Update build deps.
2024-08-26 22:01:03 -07:00

75 lines
1.6 KiB
Plaintext

# Wave: A Standard compliant C++ preprocessor
#
# Boost Wave Library Build Jamfile
#
# http://www.boost.org/
#
# Copyright (c) 2001-2010 Hartmut Kaiser. 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)
# Make sure all of Wave is compiled with threading disabled. We still need
# to link with Boost.Thread, but no multi-threaded features are being used
# in the Wave tool anyway.
import feature ;
import option ;
feature.feature wavetool
: on
: optional composite propagated
;
feature.compose <wavetool>on
: <define>BOOST_WAVE_SUPPORT_THREADING=0
;
###############################################################################
project
: requirements
<toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
<toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
;
exe wave
:
../cpp.cpp
/boost/wave//boost_wave
/boost/program_options//boost_program_options
/boost/filesystem//boost_filesystem
/boost/serialization//boost_serialization
/boost/system//boost_system
/boost/thread//boost_thread
/boost/timer//boost_timer/<link>static
/boost/foreach//boost_foreach
:
<threading>multi
# <debug-symbols>on
<wavetool>on
:
release
;
local bindir = [ option.get bindir : ../dist/bin ] ;
local libdir = [ option.get libdir : ../dist/lib ] ;
install dist-bin
:
wave
:
<install-type>EXE
<location>$(bindir)
:
release
;
install dist-lib
:
wave
:
<install-type>LIB
<location>$(libdir)
:
release
;