From 3fd3088bb31d80eabba9ecf01a59f904263f4023 Mon Sep 17 00:00:00 2001 From: Dorinda Bassey Date: Wed, 26 Jan 2022 22:29:54 +0100 Subject: [PATCH] Add RapidJSON dependency in Meson BuildSystem this RapidJSON dependency added in the Meson Build is needed for loading of Linux perf JSON. see reference - https://github.com/mikesart/gpuvis/pull/64 Signed-off-by: Dorinda Bassey --- meson.build | 5 +++++ meson_options.txt | 1 + 2 files changed, 6 insertions(+) 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')