mirror of
https://github.com/boostorg/json.git
synced 2026-01-19 04:12:14 +00:00
97 lines
2.1 KiB
Plaintext
97 lines
2.1 KiB
Plaintext
#
|
|
# Copyright (c) 2013-2019 Vinnie Falco (vinnie.falco@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)
|
|
#
|
|
# Official repository: https://github.com/boostorg/json
|
|
#
|
|
|
|
import testing ;
|
|
|
|
local SOURCES =
|
|
array.cpp
|
|
basic_parser.cpp
|
|
conversion.cpp
|
|
doc_background.cpp
|
|
doc_forward_conversion.cpp
|
|
doc_parsing.cpp
|
|
doc_quick_look.cpp
|
|
doc_serializing.cpp
|
|
doc_storage_ptr.cpp
|
|
doc_uses_allocator.cpp
|
|
doc_using_numbers.cpp
|
|
double.cpp
|
|
error.cpp
|
|
fwd.cpp
|
|
json.cpp
|
|
kind.cpp
|
|
memory_resource.cpp
|
|
monotonic_resource.cpp
|
|
natvis.cpp
|
|
null_resource.cpp
|
|
object.cpp
|
|
parse.cpp
|
|
parser.cpp
|
|
parse_into.cpp
|
|
pilfer.cpp
|
|
pointer.cpp
|
|
result_for.cpp
|
|
serialize.cpp
|
|
serializer.cpp
|
|
snippets.cpp
|
|
static_resource.cpp
|
|
storage_ptr.cpp
|
|
stream_parser.cpp
|
|
string.cpp
|
|
string_view.cpp
|
|
value.cpp
|
|
value_from.cpp
|
|
value_stack.cpp
|
|
value_to.cpp
|
|
value_ref.cpp
|
|
utf8.cpp
|
|
visit.cpp
|
|
ryu/d2s_intrinsics_test.cpp
|
|
ryu/d2s_table_test.cpp
|
|
ryu/d2s_test.cpp
|
|
;
|
|
|
|
project
|
|
: requirements
|
|
<include>.
|
|
<toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS
|
|
;
|
|
|
|
for local f in $(SOURCES)
|
|
{
|
|
local extra-reqs ;
|
|
if $(f) = parse_into.cpp
|
|
{
|
|
extra-reqs += <toolset>msvc:<cxxflags>/bigobj ;
|
|
}
|
|
|
|
run $(f) main.cpp /boost/json//boost_json
|
|
: requirements
|
|
<toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS
|
|
$(extra-reqs)
|
|
;
|
|
}
|
|
|
|
run limits.cpp main.cpp /boost/json//json_sources
|
|
: requirements
|
|
<define>BOOST_JSON_SOURCE
|
|
<define>BOOST_JSON_MAX_STRING_SIZE=1000
|
|
<define>BOOST_JSON_MAX_STRUCTURED_SIZE=20
|
|
<define>BOOST_JSON_STACK_BUFFER_SIZE=256
|
|
;
|
|
|
|
run no_exceptions.cpp main.cpp /boost/json//json_sources
|
|
: requirements
|
|
<exception-handling>off
|
|
<toolset>msvc:<cxxflags>"/wd4530" # C++ exception handler used
|
|
<toolset>msvc:<cxxflags>"/wd4577" # noexcept used without /EHsc
|
|
;
|
|
|
|
run intrusive_macros.cpp main.cpp /boost/json//json_deps ;
|