[Meson] change dependency for thread
authorJaeyun <jy1210.jung@samsung.com>
Thu, 17 Jan 2019 10:38:22 +0000 (19:38 +0900)
committerMyungJoo Ham <myungjoo.ham@gmail.com>
Mon, 21 Jan 2019 02:38:13 +0000 (11:38 +0900)
change dependency for thread (guide in meson-build https://mesonbuild.com/howtox.html)

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

index 51629a5..69433ff 100644 (file)
@@ -13,7 +13,7 @@ nnstreamer_base_deps = [
   gst_audio_dep,
   libm_dep,
   libdl_dep,
-  libpthread_dep
+  thread_dep
 ]
 
 if have_orcc
index 12d2fb6..d52bce7 100644 (file)
@@ -39,7 +39,7 @@ if have_tensorflow_lite
   tensor_filter_tflitecore_lib_shared = shared_library('tensor_filter_tflitecore',
     ['tensor_filter_tensorflow_lite_core.cc'],
     cpp_args: ['-Wno-sign-compare'],
-    dependencies: [tflite_dep, libpthread_dep, libdl_dep, glib_dep, gst_dep],
+    dependencies: [tflite_dep, thread_dep, libdl_dep, glib_dep, gst_dep],
     include_directories: nnstreamer_inc,
     install: true,
     install_dir: subplugins_install_dir
@@ -48,7 +48,7 @@ if have_tensorflow_lite
   tensor_filter_tflitecore_lib_static = static_library('tensor_filter_tflitecore',
     ['tensor_filter_tensorflow_lite_core.cc'],
     cpp_args: ['-Wno-sign-compare'],
-    dependencies: [tflite_dep, libpthread_dep, libdl_dep, glib_dep, gst_dep],
+    dependencies: [tflite_dep, thread_dep, libdl_dep, glib_dep, gst_dep],
     include_directories: nnstreamer_inc,
     install: true,
     install_dir: subplugins_install_dir
index ed5a002..f67b16c 100644 (file)
@@ -52,7 +52,7 @@ gst_check_dep = dependency('gstreamer-check-' + gst_api_verision)
 
 libm_dep = cc.find_library('m') # cmath library
 libdl_dep = cc.find_library('dl') # DL library
-libpthread_dep = cxx.find_library('pthread') # pthread for tensorflow-lite
+thread_dep = dependency('threads') # pthread for tensorflow-lite
 
 # Orc
 have_orcc = false