[spec] Enable vivante for specific profile
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Mon, 20 May 2024 11:55:30 +0000 (20:55 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 23 May 2024 07:56:41 +0000 (16:56 +0900)
- Build vivante subplugin for some targets.

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
ext/nnstreamer/tensor_filter/vivante/meson.build
packaging/nnstreamer.spec

index df5a875..3e2344f 100644 (file)
@@ -2,8 +2,6 @@
 cc = meson.get_compiler('c')
 
 libovx_dep = cc.find_library('ovxlib') # ovxlib library
-libdl_dep = cc.find_library('dl') # dl library
-
 
 base_deps = [
   glib_dep,
@@ -23,7 +21,6 @@ sources = [
 # - https://dl.khadas.com/repos/vim3/ (Ubuntu 18.04, aarch64, Bionic)
 vivante_todo_incs = []
 vivante_todo_incs += include_directories(
-  '/usr/include/dann',
   '/usr/include/ovx',
   '/usr/include/amlogic-vsi-npu-sdk'
 )
index 4b99e11..fb49b5d 100644 (file)
 %define                tvm_support 0
 %define                trix_engine_support 0
 %define                onnxruntime_support 0
+
+# Enable subplugins for specific profiles
+%if 0%{?_with_meson64}
+%define                vivante_support 1
+%endif
+
 %endif
 
 # Release unit test suite as a subpackage only if check_test is enabled.
@@ -253,10 +259,7 @@ BuildRequires:     pkgconfig(openvino)
 %endif
 
 # for Vivante
-# TODO: dann and opencv will be removed in the near future.
 %if 0%{?vivante_support}
-BuildRequires:  pkgconfig(opencv)
-BuildRequires:  pkgconfig(dann)
 BuildRequires:  pkgconfig(ovxlib)
 BuildRequires:  pkgconfig(amlogic-vsi-npu-sdk)
 %endif