-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJamfile
120 lines (109 loc) · 2.4 KB
/
Jamfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#
# Copyright (c) 2013-2019 Vinnie Falco ([email protected])
#
# 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 ;
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
doc_background.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
monotonic_resource.cpp
natvis.cpp
null_resource.cpp
object.cpp
parse.cpp
parser.cpp
pilfer.cpp
serialize.cpp
serializer.cpp
snippets.cpp
static_resource.cpp
storage_ptr.cpp
stream_parser.cpp
string.cpp
string_view.cpp
system_error.cpp
value.cpp
value_from.cpp
value_stack.cpp
value_to.cpp
value_ref.cpp
visit.cpp
ryu/d2s_intrinsics_test.cpp
ryu/d2s_table_test.cpp
ryu/d2s_test.cpp
;
local LIMIT_SOURCES =
limits.cpp
;
local RUN_TESTS ;
project : requirements $(c11-requires) ;
for local f in $(SOURCES)
{
RUN_TESTS += [
run $(f) main.cpp
/boost//container/<warnings-as-errors>off
: : : $(LIB) <include>.
] ;
}
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
] ;
}
if ! $(STANDALONE)
{
RUN_TESTS += [
compile standalone_with_boost.cpp
: [ requires
cxx17_hdr_string_view
cxx17_hdr_memory_resource
]
<define>BOOST_JSON_STANDALONE=1
] ;
}
alias run-tests : $(RUN_TESTS) ;