mirror of
https://github.com/boostorg/json.git
synced 2025-05-11 05:33:57 +00:00
Remove unnecessary build script code
This commit is contained in:
parent
a9b1cecae4
commit
a30b76c51b
23
Jamfile
23
Jamfile
@ -7,29 +7,6 @@
|
||||
# Official repository: https://github.com/boostorg/json
|
||||
#
|
||||
|
||||
import ../config/checks/config : requires ;
|
||||
|
||||
# These make sure we only build on
|
||||
# compatible C++11 or later toolchains.
|
||||
obj check_basic_alignas : check/basic_alignas.cpp ;
|
||||
explicit check_basic_alignas ;
|
||||
|
||||
constant c11-requires :
|
||||
[ requires
|
||||
cxx11_constexpr
|
||||
cxx11_decltype
|
||||
cxx11_hdr_tuple
|
||||
cxx11_template_aliases
|
||||
cxx11_variadic_templates
|
||||
]
|
||||
# We only require limited alignas support,
|
||||
# so we have to use a custom check
|
||||
[ check-target-builds
|
||||
..//check_basic_alignas cxx11_basic_alignas : : <build>no
|
||||
]
|
||||
;
|
||||
|
||||
path-constant LIB_DIR : . ;
|
||||
|
||||
build-project bench ;
|
||||
build-project test ;
|
||||
|
@ -22,8 +22,6 @@ else
|
||||
LIB = <library>/boost/json//boost_json ;
|
||||
}
|
||||
|
||||
project : requirements $(c11-requires) ;
|
||||
|
||||
exe bench :
|
||||
bench.cpp
|
||||
:
|
||||
|
@ -1,5 +1,6 @@
|
||||
#
|
||||
# Copyright (c) 2019 Vinnie Falco (vinnie dot falco at gmail dot com)
|
||||
# Copyright (c) 2021 Dmitry Arkhipov (grisumbras@gmail.com)
|
||||
#
|
||||
# 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)
|
||||
@ -9,17 +10,32 @@
|
||||
|
||||
import ../../config/checks/config : requires ;
|
||||
|
||||
# These make sure we only build on compatible C++11 or later toolchains.
|
||||
obj check_basic_alignas : ../check/basic_alignas.cpp ;
|
||||
explicit check_basic_alignas ;
|
||||
|
||||
project boost/json
|
||||
: requirements
|
||||
$(c11-requires)
|
||||
[ requires
|
||||
cxx11_constexpr
|
||||
cxx11_decltype
|
||||
cxx11_hdr_tuple
|
||||
cxx11_template_aliases
|
||||
cxx11_variadic_templates
|
||||
]
|
||||
# We only require limited alignas support,
|
||||
# so we have to use a custom check
|
||||
[ check-target-builds
|
||||
check_basic_alignas cxx11_basic_alignas : : <build>no
|
||||
]
|
||||
<link>shared:<define>BOOST_JSON_DYN_LINK=1
|
||||
<link>static:<define>BOOST_JSON_STATIC_LINK=1
|
||||
<library>/boost//container/<warnings-as-errors>off
|
||||
<define>BOOST_JSON_SOURCE
|
||||
: usage-requirements
|
||||
$(c11-requires)
|
||||
<link>shared:<define>BOOST_JSON_DYN_LINK=1
|
||||
<link>static:<define>BOOST_JSON_STATIC_LINK=1
|
||||
<library>/boost//container/<warnings-as-errors>off
|
||||
: source-location ../src
|
||||
;
|
||||
|
||||
|
@ -22,8 +22,6 @@ else
|
||||
LIB = <library>/boost/json//boost_json ;
|
||||
}
|
||||
|
||||
project : requirements $(c11-requires) ;
|
||||
|
||||
exe path :
|
||||
path.cpp
|
||||
: :
|
||||
|
@ -22,8 +22,6 @@ else
|
||||
LIB = <library>/boost/json//boost_json ;
|
||||
}
|
||||
|
||||
project : requirements $(c11-requires) ;
|
||||
|
||||
# See the comments in CMakeLists.txt for why
|
||||
# these are libraries and not exe targets.
|
||||
lib fuzzerlib_basic_parser :
|
||||
|
62
test/Jamfile
62
test/Jamfile
@ -39,6 +39,7 @@ local SOURCES =
|
||||
fwd.cpp
|
||||
json.cpp
|
||||
kind.cpp
|
||||
memory_resource.cpp
|
||||
monotonic_resource.cpp
|
||||
natvis.cpp
|
||||
null_resource.cpp
|
||||
@ -66,55 +67,30 @@ local SOURCES =
|
||||
ryu/d2s_test.cpp
|
||||
;
|
||||
|
||||
local LIMIT_SOURCES =
|
||||
limits.cpp
|
||||
;
|
||||
|
||||
local RUN_TESTS ;
|
||||
|
||||
project : requirements $(c11-requires) ;
|
||||
project : requirements <include>. ;
|
||||
|
||||
for local f in $(SOURCES)
|
||||
{
|
||||
RUN_TESTS += [
|
||||
run $(f) main.cpp
|
||||
/boost//container/<warnings-as-errors>off
|
||||
: : : $(LIB) <include>.
|
||||
] ;
|
||||
run $(f) main.cpp
|
||||
: : : $(LIB)
|
||||
;
|
||||
}
|
||||
|
||||
RUN_TESTS += [
|
||||
run memory_resource.cpp main.cpp
|
||||
/boost//container/<warnings-as-errors>off
|
||||
: : :
|
||||
$(LIB)
|
||||
<include>.
|
||||
] ;
|
||||
|
||||
for local f in $(LIMIT_SOURCES)
|
||||
{
|
||||
RUN_TESTS += [
|
||||
run $(f) main.cpp
|
||||
/boost//container/<warnings-as-errors>off
|
||||
: : :
|
||||
<source>../src/src.cpp
|
||||
<include>.
|
||||
<define>BOOST_JSON_MAX_STRING_SIZE=1000
|
||||
<define>BOOST_JSON_MAX_STRUCTURED_SIZE=20
|
||||
<define>BOOST_JSON_STACK_BUFFER_SIZE=256
|
||||
] ;
|
||||
}
|
||||
run limits.cpp main.cpp
|
||||
/boost/json//json_sources
|
||||
: : :
|
||||
<define>BOOST_JSON_MAX_STRING_SIZE=1000
|
||||
<define>BOOST_JSON_MAX_STRUCTURED_SIZE=20
|
||||
<define>BOOST_JSON_STACK_BUFFER_SIZE=256
|
||||
;
|
||||
|
||||
if ! $(STANDALONE)
|
||||
{
|
||||
RUN_TESTS += [
|
||||
compile standalone_with_boost.cpp
|
||||
: [ requires
|
||||
cxx17_hdr_string_view
|
||||
cxx17_hdr_memory_resource
|
||||
]
|
||||
<define>BOOST_JSON_STANDALONE=1
|
||||
] ;
|
||||
compile standalone_with_boost.cpp
|
||||
: [ requires
|
||||
cxx17_hdr_string_view
|
||||
cxx17_hdr_memory_resource
|
||||
]
|
||||
<define>BOOST_JSON_STANDALONE=1
|
||||
;
|
||||
}
|
||||
|
||||
alias run-tests : $(RUN_TESTS) ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user