Skip to content

Commit

Permalink
[Service] Register pipeline description
Browse files Browse the repository at this point in the history
 - Register pipeline description
 - Add unittest to register pipeline

Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
  • Loading branch information
gichan-jang committed Jul 10, 2023
1 parent 664451e commit ba23c36
Show file tree
Hide file tree
Showing 9 changed files with 761 additions and 6 deletions.
15 changes: 11 additions & 4 deletions c/src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ endif
nns_capi_single_srcs = files('ml-api-inference-single.c')
nns_capi_pipeline_srcs = files('ml-api-inference-pipeline.c')
nns_capi_service_srcs = files('ml-api-service-common.c','ml-api-service-agent-client.c', 'ml-api-service-query-client.c')
if nnstreamer_edge_dep.found()
nns_capi_service_srcs += files('ml-api-remote-service.c')
endif

# Build ML-API Common Lib First.
nns_capi_common_shared_lib = shared_library ('capi-ml-common',
Expand Down Expand Up @@ -97,12 +100,16 @@ nns_capi_dep = declare_dependency(link_with: nns_capi_lib,
include_directories: nns_capi_include
)


# Service API
if get_option('enable-ml-service')
ml_service_deps = [nns_capi_dep, ml_agentd_deps]
if nnstreamer_edge_dep.found()
ml_service_deps += nnstreamer_edge_dep
endif

nns_capi_service_shared_lib = shared_library ('capi-ml-service',
nns_capi_service_srcs,
dependencies: [nns_capi_dep, ml_agentd_deps],
dependencies: ml_service_deps,
include_directories: [nns_capi_include, ml_agentd_incs],
install: true,
install_dir: api_install_libdir,
Expand All @@ -112,7 +119,7 @@ if get_option('enable-ml-service')

nns_capi_service_static_lib = static_library ('capi-ml-service',
nns_capi_service_srcs,
dependencies: [nns_capi_dep, ml_agentd_deps],
dependencies: ml_service_deps,
include_directories: [nns_capi_include, ml_agentd_incs],
install: true,
link_with: ml_agentd_lib,
Expand All @@ -125,7 +132,7 @@ if get_option('enable-ml-service')
endif

nns_capi_service_dep = declare_dependency(link_with: nns_capi_service_lib,
dependencies: [nns_capi_dep, ml_agentd_deps],
dependencies: ml_service_deps,
include_directories: nns_capi_include
)
endif
Loading

0 comments on commit ba23c36

Please sign in to comment.