[Meson/Test] add code to make bmp2png for test
authorJaeyun <jy1210.jung@samsung.com>
Wed, 12 Dec 2018 07:45:18 +0000 (16:45 +0900)
committerMyungJoo Ham <myungjoo.ham@gmail.com>
Wed, 19 Dec 2018 04:41:28 +0000 (13:41 +0900)
1. make bmp2png for the unittest
2. set gtest dependency false

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
tests/meson.build

index 1fd9545..dae1597 100644 (file)
@@ -1,7 +1,14 @@
 subdir('nnstreamer_tensors/tensors_test')
 
-gtest_dep = dependency('gtest', main: false, required: true)
+libpng_dep = dependency('libpng', required: false)
+if libpng_dep.found()
+  executable('bmp2png',
+    'bmp2png.c',
+    dependencies: [libpng_dep]
+  )
+endif
 
+gtest_dep = dependency('gtest', required: false)
 if gtest_dep.found()
   # This custom filter is used in unittest_sink.
   nnscustom_framecounter_lib = library('nnscustom_framecounter',