[YOCTO] Add enable-opencv-test meson option to remove opencv dep
authorjijoong.moon <jijoong.moon@samsung.com>
Fri, 15 Mar 2019 09:55:03 +0000 (18:55 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 18 Mar 2019 00:54:48 +0000 (09:54 +0900)
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 <jijoong.moon@samsung.com>
meson_options.txt
nnstreamer_example/meson.build

index 23f8d33..6025e90 100644 (file)
@@ -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)
index ca92703..aa64117 100644 (file)
@@ -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')