99 # 2. /include/json/version.h
1010 # 3. /CMakeLists.txt
1111 # IMPORTANT: also update the SOVERSION!!
12- version : ' 1.9.2 ' ,
12+ version : ' 1.9.3 ' ,
1313 default_options : [
1414 ' buildtype=release' ,
1515 ' cpp_std=c++11' ,
@@ -18,7 +18,7 @@ project(
1818 meson_version : ' >= 0.49.0' )
1919
2020
21- jsoncpp_headers = [
21+ jsoncpp_headers = files ( [
2222 ' include/json/allocator.h' ,
2323 ' include/json/assertions.h' ,
2424 ' include/json/config.h' ,
@@ -28,7 +28,8 @@ jsoncpp_headers = [
2828 ' include/json/reader.h' ,
2929 ' include/json/value.h' ,
3030 ' include/json/version.h' ,
31- ' include/json/writer.h' ]
31+ ' include/json/writer.h' ,
32+ ])
3233jsoncpp_include_directories = include_directories (' include' )
3334
3435install_headers (
4445endif
4546
4647jsoncpp_lib = library (
47- ' jsoncpp' ,
48- [ jsoncpp_headers,
49- ' src/lib_json/json_tool.h' ,
48+ ' jsoncpp' , files ([
5049 ' src/lib_json/json_reader.cpp' ,
5150 ' 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 ,
5454 install : true ,
5555 include_directories : jsoncpp_include_directories,
5656 cpp_args : dll_export_flag)
@@ -66,18 +66,21 @@ import('pkgconfig').generate(
6666jsoncpp_dep = declare_dependency (
6767 include_directories : jsoncpp_include_directories,
6868 link_with : jsoncpp_lib,
69- version : meson .project_version(),
70- )
69+ version : meson .project_version())
7170
7271# 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' )
7477
7578jsoncpp_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' ,
7981 ' src/test_lib_json/main.cpp' ,
80- ' src/test_lib_json/fuzz.cpp' ],
82+ ' src/test_lib_json/fuzz.cpp' ,
83+ ]),
8184 include_directories : jsoncpp_include_directories,
8285 link_with : jsoncpp_lib,
8386 install : false ,
0 commit comments