diff --git a/README.md b/README.md index 6c5cf07..51d60e1 100644 --- a/README.md +++ b/README.md @@ -38,12 +38,14 @@ First, install both meson (which requires Python3) and ninja. Then, cd jsoncpp/ - BUILD_TYPE=shared - #BUILD_TYPE=static - LIB_TYPE=debug - #LIB_TYPE=release + BUILD_TYPE=debug + #BUILD_TYPE=release + LIB_TYPE=shared + #LIB_TYPE=static meson --buildtype ${BUILD_TYPE} --default-library ${LIB_TYPE} . build-${LIB_TYPE} ninja -v -C build-${LIB_TYPE} test + cd build-${LIB_TYPE} + sudo ninja install ### Building and testing with other build systems See https://github.com/open-source-parsers/jsoncpp/wiki/Building diff --git a/meson.build b/meson.build index f2a6800..f193fec 100644 --- a/meson.build +++ b/meson.build @@ -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_MINOR', jsoncpp_minor_version) jsoncpp_cdata.set('JSONCPP_VERSION_PATCH', jsoncpp_patch_version) +jsoncpp_cdata.set('JSONCPP_USE_SECURE_MEMORY',0) jsoncpp_gen_sources = configure_file( input : 'src/lib_json/version.h.in',