2
0
mirror of https://github.com/boostorg/json.git synced 2026-01-19 16:22:20 +00:00
Files
json/test/Jamfile
2025-02-27 15:46:02 +03:00

108 lines
2.5 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 boost-pretty-printers ;
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
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
<toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS
<toolset>gcc:<cxxflags>-Wno-restrict # annoying false positives
;
for local f in $(SOURCES)
{
run $(f) main.cpp /boost/json//boost_json ;
}
local HEAVY_SOURCES =
parse_into.cpp
;
for local f in $(HEAVY_SOURCES)
{
run $(f) main.cpp /boost/json//boost_json
: requirements <toolset>msvc:<cxxflags>/bigobj
;
}
run limits.cpp main.cpp /boost/json//json_sources
: requirements
<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 ;
boost-pretty-printers.test-gdb-printers gdb-printers
: printers.cpp
/boost/json//boost_json
: <dependency>../src/boost_json_gdb_printers.py
;
explicit gdb-printers ;
alias common : $(SOURCES:B) limits no_exceptions intrusive_macros ;
alias heavy : $(HEAVY_SOURCES:B) ;