[SAM/CodeClean] remove global val
authorJaeyun <jy1210.jung@samsung.com>
Wed, 15 Jul 2020 07:31:15 +0000 (16:31 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 17 Jul 2020 08:43:05 +0000 (17:43 +0900)
sam report, remove global val in openvino plugin.
update script to install common header file.

Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
ext/nnstreamer/tensor_filter/tensor_filter_openvino.cc
ext/nnstreamer/tensor_filter/tensor_filter_openvino.hh
gst/nnstreamer/include/meson.build

index fd1a786..f7dfc6f 100644 (file)
 void init_filter_openvino (void) __attribute__ ((constructor));
 void fini_filter_openvino (void) __attribute__ ((destructor));
 
+static const gchar *openvino_accl_support[] = {
+  ACCL_NPU_MOVIDIUS_STR,    /** ACCL for default and auto config */
+  ACCL_NPU_STR,
+  ACCL_CPU_STR,
+  NULL
+};
+
 std::map<accl_hw, std::string> TensorFilterOpenvino::_nnsAcclHwToOVDevMap = {
     {ACCL_CPU, "CPU"},
     {ACCL_NPU, "MYRIAD"},
index 2025aed..17efb61 100644 (file)
 #include <string>
 #include <vector>
 
-const gchar *openvino_accl_support[] = {
-  ACCL_NPU_MOVIDIUS_STR,    /** ACCL for default and auto config */
-  ACCL_NPU_STR,
-  ACCL_CPU_STR,
-  NULL
-};
-
 class TensorFilterOpenvino
 {
 public:
index 6882b52..1d126da 100644 (file)
@@ -13,6 +13,10 @@ foreach h : nnst_common_headers
   nnstreamer_headers += join_paths(meson.current_source_dir(), h)
 endforeach
 
+if get_option('enable-filter-cpp-class')
+  nnstreamer_headers += join_paths(meson.current_source_dir(), 'nnstreamer_cppplugin_api_filter.hh')
+endif
+
 version_conf = configuration_data()
 version_conf.set('__NNSTREAMER_VERSION_MAJOR__', version_split[0])
 version_conf.set('__NNSTREAMER_VERSION_MINOR__', version_split[1])
@@ -28,9 +32,3 @@ nnstreamer_headers += generated_h
 install_headers(nnstreamer_headers,
   subdir: 'nnstreamer'
 )
-
-if get_option('enable-filter-cpp-class')
-  install_headers(['nnstreamer_cppplugin_api_filter.hh'],
-    subdir: 'nnstreamer'
-  )
-endif