Skip to content

Commit

Permalink
Add RapidJSON dependency in Meson BuildSystem
Browse files Browse the repository at this point in the history
this RapidJSON dependency added in the Meson Build is needed for loading
of Linux perf JSON. see reference - mikesart#64

Signed-off-by: Dorinda Bassey <dbassey@redhat.com>
  • Loading branch information
Dorinda Bassey committed Jan 26, 2022
1 parent 1bd9241 commit 3fd3088
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
@@ -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')

0 comments on commit 3fd3088

Please sign in to comment.