mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-06-08 17:30:13 +02:00
commit
adb9ab1424
10
README.md
10
README.md
@ -38,12 +38,14 @@ First, install both meson (which requires Python3) and ninja.
|
|||||||
Then,
|
Then,
|
||||||
|
|
||||||
cd jsoncpp/
|
cd jsoncpp/
|
||||||
BUILD_TYPE=shared
|
BUILD_TYPE=debug
|
||||||
#BUILD_TYPE=static
|
#BUILD_TYPE=release
|
||||||
LIB_TYPE=debug
|
LIB_TYPE=shared
|
||||||
#LIB_TYPE=release
|
#LIB_TYPE=static
|
||||||
meson --buildtype ${BUILD_TYPE} --default-library ${LIB_TYPE} . build-${LIB_TYPE}
|
meson --buildtype ${BUILD_TYPE} --default-library ${LIB_TYPE} . build-${LIB_TYPE}
|
||||||
ninja -v -C build-${LIB_TYPE} test
|
ninja -v -C build-${LIB_TYPE} test
|
||||||
|
cd build-${LIB_TYPE}
|
||||||
|
sudo ninja install
|
||||||
|
|
||||||
### Building and testing with other build systems
|
### Building and testing with other build systems
|
||||||
See https://github.com/open-source-parsers/jsoncpp/wiki/Building
|
See https://github.com/open-source-parsers/jsoncpp/wiki/Building
|
||||||
|
@ -18,6 +18,7 @@ jsoncpp_cdata.set('JSONCPP_VERSION', meson.project_version())
|
|||||||
jsoncpp_cdata.set('JSONCPP_VERSION_MAJOR', jsoncpp_major_version)
|
jsoncpp_cdata.set('JSONCPP_VERSION_MAJOR', jsoncpp_major_version)
|
||||||
jsoncpp_cdata.set('JSONCPP_VERSION_MINOR', jsoncpp_minor_version)
|
jsoncpp_cdata.set('JSONCPP_VERSION_MINOR', jsoncpp_minor_version)
|
||||||
jsoncpp_cdata.set('JSONCPP_VERSION_PATCH', jsoncpp_patch_version)
|
jsoncpp_cdata.set('JSONCPP_VERSION_PATCH', jsoncpp_patch_version)
|
||||||
|
jsoncpp_cdata.set('JSONCPP_USE_SECURE_MEMORY',0)
|
||||||
|
|
||||||
jsoncpp_gen_sources = configure_file(
|
jsoncpp_gen_sources = configure_file(
|
||||||
input : 'src/lib_json/version.h.in',
|
input : 'src/lib_json/version.h.in',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user