From fdbdbeeee5c2503cffbeb823b4aec1a9125e83c7 Mon Sep 17 00:00:00 2001 From: Wook Song Date: Fri, 25 Jan 2019 10:57:33 +0900 Subject: [PATCH] [Meson] Create shared and static libraries of plug-in APIs This patch updates meson build script to create shared and static libraries of plug-in APIs. Signed-off-by: Wook Song --- gst/nnstreamer/meson.build | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/gst/nnstreamer/meson.build b/gst/nnstreamer/meson.build index d7547c3..afcf497 100644 --- a/gst/nnstreamer/meson.build +++ b/gst/nnstreamer/meson.build @@ -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, -- 2.7.4