9
9
# 2. /include/json/version.h
10
10
# 3. /CMakeLists.txt
11
11
# IMPORTANT: also update the SOVERSION!!
12
- version : ' 1.9.2 ' ,
12
+ version : ' 1.9.3 ' ,
13
13
default_options : [
14
14
' buildtype=release' ,
15
15
' cpp_std=c++11' ,
@@ -18,7 +18,7 @@ project(
18
18
meson_version : ' >= 0.49.0' )
19
19
20
20
21
- jsoncpp_headers = [
21
+ jsoncpp_headers = files ( [
22
22
' include/json/allocator.h' ,
23
23
' include/json/assertions.h' ,
24
24
' include/json/config.h' ,
@@ -28,7 +28,8 @@ jsoncpp_headers = [
28
28
' include/json/reader.h' ,
29
29
' include/json/value.h' ,
30
30
' include/json/version.h' ,
31
- ' include/json/writer.h' ]
31
+ ' include/json/writer.h' ,
32
+ ])
32
33
jsoncpp_include_directories = include_directories (' include' )
33
34
34
35
install_headers (
44
45
endif
45
46
46
47
jsoncpp_lib = library (
47
- ' jsoncpp' ,
48
- [ jsoncpp_headers,
49
- ' src/lib_json/json_tool.h' ,
48
+ ' jsoncpp' , files ([
50
49
' src/lib_json/json_reader.cpp' ,
51
50
' src/lib_json/json_value.cpp' ,
52
- ' src/lib_json/json_writer.cpp' ],
53
- soversion : 22 ,
51
+ ' src/lib_json/json_writer.cpp' ,
52
+ ]),
53
+ soversion : 23 ,
54
54
install : true ,
55
55
include_directories : jsoncpp_include_directories,
56
56
cpp_args : dll_export_flag)
@@ -66,18 +66,21 @@ import('pkgconfig').generate(
66
66
jsoncpp_dep = declare_dependency (
67
67
include_directories : jsoncpp_include_directories,
68
68
link_with : jsoncpp_lib,
69
- version : meson .project_version(),
70
- )
69
+ version : meson .project_version())
71
70
72
71
# tests
73
- python = import (' python' ).find_installation()
72
+ if meson .is_subproject() or not get_option (' tests' )
73
+ subdir_done ()
74
+ endif
75
+
76
+ python = import (' python' ).find_installation(' python3' )
74
77
75
78
jsoncpp_test = executable (
76
- ' jsoncpp_test' ,
77
- [ ' src/test_lib_json/jsontest.cpp' ,
78
- ' src/test_lib_json/jsontest.h' ,
79
+ ' jsoncpp_test' , files ([
80
+ ' src/test_lib_json/jsontest.cpp' ,
79
81
' src/test_lib_json/main.cpp' ,
80
- ' src/test_lib_json/fuzz.cpp' ],
82
+ ' src/test_lib_json/fuzz.cpp' ,
83
+ ]),
81
84
include_directories : jsoncpp_include_directories,
82
85
link_with : jsoncpp_lib,
83
86
install : false ,
0 commit comments