mirror of
https://github.com/nlohmann/json.git
synced 2026-10-03 13:10:33 +00:00
Finish the Meson changes from #4452: - Offer all eight options that change the CMake target, named like the CMake options without the JSON_ prefix. MultipleHeaders defaults to false so that existing Meson users keep the single header. - Add a compile definition only for an option that differs from its default, exactly as target_compile_definitions does. Before, the GlobalUDLs and ImplicitConversions definitions were inverted and were also added in the default configuration. - Keep the nlohmann_json_multiple_headers dependency that earlier versions of meson.build provided. - Put the definitions into the pkg-config file and the Meson-generated nlohmann_jsonTargets.cmake, and install the pkg-config file into <datadir>/pkgconfig like CMake does. - Ship meson_options.txt in include.zip, since meson.build now reads options and the zip is documented as a Meson subproject. Signed-off-by: Niels Lohmann <mail@nlohmann.me>
49 lines
1.0 KiB
Meson
49 lines
1.0 KiB
Meson
option(
|
|
'MultipleHeaders',
|
|
type: 'boolean',
|
|
value: false,
|
|
description: 'Use non-amalgamated version of the library',
|
|
)
|
|
option(
|
|
'GlobalUDLs',
|
|
type: 'boolean',
|
|
value: true,
|
|
description: 'Place user-defined string literals in the global namespace',
|
|
)
|
|
option(
|
|
'ImplicitConversions',
|
|
type: 'boolean',
|
|
value: true,
|
|
description: 'Enable implicit conversions',
|
|
)
|
|
option(
|
|
'DisableEnumSerialization',
|
|
type: 'boolean',
|
|
value: false,
|
|
description: 'Disable default integer enum serialization',
|
|
)
|
|
option(
|
|
'Diagnostics',
|
|
type: 'boolean',
|
|
value: false,
|
|
description: 'Use extended diagnostic messages',
|
|
)
|
|
option(
|
|
'Diagnostic_Positions',
|
|
type: 'boolean',
|
|
value: false,
|
|
description: 'Enable diagnostic positions',
|
|
)
|
|
option(
|
|
'LegacyDiscardedValueComparison',
|
|
type: 'boolean',
|
|
value: false,
|
|
description: 'Enable legacy discarded value comparison',
|
|
)
|
|
option(
|
|
'StrictNulHandling',
|
|
type: 'boolean',
|
|
value: false,
|
|
description: 'Enable strict NUL-byte handling',
|
|
)
|