• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Boost Nowide Library Build Jamfile
2
3# Copyright (c) 2002, 2006 Beman Dawes
4# Copyright (c) 2012 Artyom Beilis (Tonkikh)
5# Copyright (c) 2020 Alexander Grund
6#
7# Distributed under the Boost Software License, Version 1.0.
8# (See accompanying file LICENSE or www.boost.org/LICENSE_1_0.txt)
9# See library home page at http://www.boost.org/libs/nowide
10
11import ../../config/checks/config : requires ;
12
13local requirements =
14  <link>shared:<define>BOOST_NOWIDE_DYN_LINK=1
15  ;
16
17obj cxx11_moveable_fstreams : ../test/check_movable_fstreams.cpp ;
18explicit cxx11_moveable_fstreams ;
19exe lfs_support : ../test/check_lfs_support.cpp ;
20explicit lfs_support ;
21
22project boost/nowide
23  : source-location ../src
24  : requirements $(requirements)
25    [ requires
26      cxx11_defaulted_functions
27      cxx11_noexcept
28      cxx11_rvalue_references
29      cxx11_static_assert
30    ]
31    [ check-target-builds cxx11_moveable_fstreams "std::fstream is moveable and swappable" : : <build>no ]
32    [ check-target-builds lfs_support "Has Large File Support" : : <define>BOOST_NOWIDE_NO_LFS ]
33  : usage-requirements $(requirements)
34  ;
35
36local SOURCES = cstdio cstdlib filebuf iostream stat ;
37
38lib boost_nowide
39  : $(SOURCES).cpp
40  ;
41
42boost-install boost_nowide ;
43