[Meson] Create shared and static libraries of plug-in APIs
authorWook Song <wook16.song@samsung.com>
Fri, 25 Jan 2019 01:57:33 +0000 (10:57 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 28 Jan 2019 10:57:58 +0000 (19:57 +0900)
This patch updates meson build script to create shared and static
libraries of plug-in APIs.

Signed-off-by: Wook Song <wook16.song@samsung.com>
gst/nnstreamer/meson.build

index d7547c3..afcf497 100644 (file)
@@ -16,6 +16,14 @@ nnstreamer_base_deps = [
   thread_dep
 ]
 
+# Dependencies
+nnstreamer_plugin_api_base_deps = [
+  glib_dep,
+  gst_dep,
+  gst_video_dep,
+  gst_audio_dep,
+]
+
 if have_orcc
   nnstreamer_base_deps += [orc_dep]
 endif
@@ -48,7 +56,8 @@ endforeach
 # Common headers to be installed
 nnst_common_headers = [
   'tensor_typedef.h',
-  'tensor_filter_custom.h'
+  'tensor_filter_custom.h',
+  'nnstreamer_plugin_api.h'
 ]
 
 foreach h : nnst_common_headers
@@ -101,6 +110,22 @@ if get_option('default_library') == 'static'
   nnstreamer_lib = nnstreamer_static
 endif
 
+nnstreamer_plugin_api_shared = shared_library('nnstreamer_plugin_api',
+  nnst_plugin_api_sources,
+  dependencies: [nnstreamer_plugin_api_base_deps],
+  include_directories: nnstreamer_inc,
+  install: true,
+  install_dir: libs_install_dir
+)
+
+nnstreamer_plugin_api_static = static_library('nnstreamer_plugin_api',
+  nnst_plugin_api_sources,
+  dependencies: [nnstreamer_plugin_api_base_deps],
+  include_directories: nnstreamer_inc,
+  install: true,
+  install_dir: libs_install_dir
+)
+
 nnstreamer_dep = declare_dependency(link_with: nnstreamer_lib,
   sources: nnstreamer_generated,
   dependencies: nnstreamer_base_deps,