From: jijoong.moon Date: Fri, 15 Mar 2019 09:55:03 +0000 (+0900) Subject: [YOCTO] Add enable-opencv-test meson option to remove opencv dep X-Git-Tag: v0.1.2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=84199629ce4e372d00dfc9e7e7e71ad453cd059c;p=platform%2Fupstream%2Fnnstreamer.git [YOCTO] Add enable-opencv-test meson option to remove opencv dep The only place which has opencv dependency is custom_exampel_opencv. In order to manage more efficient, enable-opencv-test meson option is added. If it is true, opencv example is enabled or disabled, if not. **Self evaluation:** 1. Build test: [X]Passed [ ]Failed [ ]Skipped 2. Run test: [X]Passed [ ]Failed [ ]Skipped Signed-off-by: jijoong.moon --- diff --git a/meson_options.txt b/meson_options.txt index 23f8d33..6025e90 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,4 +1,5 @@ option('enable-test', type: 'boolean', value: true) +option('enable-opencv-test', type: 'boolean', value: true) option('enable-tensorflow-lite', type: 'boolean', value: true) option('enable-tensorflow', type: 'boolean', value: true) option('install-example', type: 'boolean', value: false) diff --git a/nnstreamer_example/meson.build b/nnstreamer_example/meson.build index ca92703..aa64117 100644 --- a/nnstreamer_example/meson.build +++ b/nnstreamer_example/meson.build @@ -1,6 +1,8 @@ subdir('custom_example_passthrough') subdir('custom_example_scaler') subdir('custom_example_average') -subdir('custom_example_opencv') +if get_option('enable-opencv-test') + subdir('custom_example_opencv') +endif subdir('custom_example_RNN') subdir('custom_example_LSTM')