diff --git a/meson.build b/meson.build index 56526770..fc6d9e8d 100644 --- a/meson.build +++ b/meson.build @@ -38,6 +38,11 @@ if get_option('use_i915_perf') all_deps += dependency('i915-perf') endif +if get_option('have_rapidjson') + compile_flags += '-DHAVE_RAPIDJSON=1' + all_deps += dependency('RapidJSON') +endif + gpuvis_files = files( 'src/gpuvis.cpp', 'src/gpuvis_graph.cpp', diff --git a/meson_options.txt b/meson_options.txt index c1b6047f..e6231b04 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,3 +1,4 @@ option('use_freetype', type : 'boolean', value : 'true') option('use_gtk3', type : 'boolean', value : 'true') option('use_i915_perf', type : 'boolean', value : 'false') +option('have_rapidjson', type : 'boolean', value : 'true')