mirror of
https://github.com/boostorg/json.git
synced 2026-02-02 08:52:13 +00:00
82 lines
1.6 KiB
Plaintext
82 lines
1.6 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/vinniefalco/json
|
|
#
|
|
|
|
import testing ;
|
|
import ../../config/checks/config : requires ;
|
|
|
|
import os ;
|
|
STANDALONE = [ os.environ STANDALONE ] ;
|
|
if $(STANDALONE)
|
|
{
|
|
LIB =
|
|
<define>BOOST_JSON_STANDALONE=1
|
|
<source>../src/src.cpp
|
|
;
|
|
}
|
|
else
|
|
{
|
|
LIB = <library>/boost/json//boost_json ;
|
|
}
|
|
|
|
local SOURCES =
|
|
array.cpp
|
|
basic_parser.cpp
|
|
error.cpp
|
|
json.cpp
|
|
kind.cpp
|
|
number_cast.cpp
|
|
object.cpp
|
|
parser.cpp
|
|
pool.cpp
|
|
serializer.cpp
|
|
snippets.cpp
|
|
storage.cpp
|
|
storage_ptr.cpp
|
|
string.cpp
|
|
to_value.cpp
|
|
traits.cpp
|
|
value.cpp
|
|
value_cast.cpp
|
|
value_ref.cpp
|
|
ryu/d2s_intrinsics_test.cpp
|
|
ryu/d2s_table_test.cpp
|
|
ryu/d2s_test.cpp
|
|
;
|
|
|
|
local LIMIT_SOURCES =
|
|
limits.cpp
|
|
;
|
|
|
|
local RUN_TESTS ;
|
|
|
|
for local f in $(SOURCES)
|
|
{
|
|
RUN_TESTS += [
|
|
run $(f) main.cpp : : :
|
|
$(LIB)
|
|
<include>.
|
|
] ;
|
|
}
|
|
|
|
for local f in $(LIMIT_SOURCES)
|
|
{
|
|
RUN_TESTS += [
|
|
run $(f) main.cpp : : :
|
|
<source>../src/src.cpp
|
|
<include>.
|
|
<define>BOOST_JSON_MAX_STRING_SIZE=1000
|
|
<define>BOOST_JSON_MAX_OBJECT_SIZE=30
|
|
<define>BOOST_JSON_MAX_ARRAY_SIZE=100
|
|
<define>BOOST_JSON_MAX_STACK_SIZE=1024
|
|
<define>BOOST_JSON_PARSER_BUFFER_SIZE=256
|
|
] ;
|
|
}
|
|
|
|
alias run-tests : $(RUN_TESTS) ;
|