Skip to content

Commit

Permalink
[Benchmarks] Update Meson.build file
Browse files Browse the repository at this point in the history
- modify meson build to check for the existence of a dependency on Google Benchmarks
- configure it with options to run application benchmarks

**Self evaluation:**
1. Build test:	 [X]Passed [ ]Failed [ ]Skipped
2. Run test:	 [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Donghak PARK <[email protected]>
  • Loading branch information
DonghakPark committed Aug 14, 2024
1 parent 87aaebd commit c719a94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ endif
gmock_dep = dependency('gmock', static: true, main: false, required: false)
gtest_dep = dependency('gtest', static: true, main: false, required: false)
gtest_main_dep = dependency('gtest', static: true, main: true, required: false)

benchmark_dep = dependency('benchmark', static : true, main : false, required : false)

if get_option('enable-test') # and get_option('platform') != 'android'
extra_defines += '-DENABLE_TEST=1'
Expand Down Expand Up @@ -474,3 +474,7 @@ endif
if get_option('platform') != 'none'
message('building for ' + get_option('platform'))
endif

if get_option('enable-benchmarks')
subdir('benchmarks')
endif
1 change: 1 addition & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ option('enable-openmp', type: 'boolean', value: true)
option('enable-neon', type: 'boolean', value: false)
option('enable-avx', type: 'boolean', value: false)
option('enable-opencl', type: 'boolean', value: false)
option('enable-benchmarks', type: 'boolean', value : false)

# ml-api dependency (to enable, install capi-inference from github.com/nnstreamer/api )
# To inter-operate with nnstreamer and ML-API packages, you need to enable this.
Expand Down

0 comments on commit c719a94

Please sign in to comment.