[Meson] dependency to tizen pkgs
authorJaeyun Jung <jy1210.jung@samsung.com>
Mon, 24 Apr 2023 10:54:19 +0000 (19:54 +0900)
committerwooksong <wook16.song@samsung.com>
Tue, 25 Apr 2023 01:09:40 +0000 (10:09 +0900)
Code clean, define dependencies to tizen packages.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
c/src/meson.build
daemon/meson.build
meson.build

index afb8405..ff5e3fe 100644 (file)
@@ -102,7 +102,7 @@ nns_capi_dep = declare_dependency(link_with: nns_capi_lib,
 if get_option('enable-ml-service')
   nns_capi_service_shared_lib = shared_library ('capi-ml-service',
     nns_capi_service_srcs,
-    dependencies: [nns_capi_dep, ai_service_daemon_deps, json_glib_dep, appfw_app_common_dep],
+    dependencies: [nns_capi_dep, ai_service_daemon_deps],
     include_directories: nns_capi_include,
     install: true,
     install_dir: api_install_libdir,
@@ -111,7 +111,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, ai_service_daemon_deps, json_glib_dep, appfw_app_common_dep],
+    dependencies: [nns_capi_dep, ai_service_daemon_deps],
     include_directories: nns_capi_include,
     install: true,
     install_dir: api_install_libdir,
index 413c975..72815c0 100644 (file)
@@ -42,7 +42,11 @@ ai_service_daemon_deps = [
 ]
 
 if (get_option('enable-tizen'))
-  ai_service_daemon_deps += [appfw_package_manager_dep, dependency('dlog')]
+  ai_service_daemon_deps += [
+    dependency('capi-appfw-app-common'),
+    dependency('capi-appfw-package-manager'),
+    dependency('dlog')
+  ]
 endif
 
 serviceDBPath = get_option('service-db-path')
index e8b5007..2431179 100644 (file)
@@ -36,12 +36,6 @@ if get_option('enable-ml-service')
   libsystemd_dep = dependency('libsystemd')
   sqlite_dep = dependency('sqlite3')
   json_glib_dep = dependency('json-glib-1.0')
-
-  appfw_app_common_dep = dependency('', required: false)
-  if get_option('enable-tizen')
-    appfw_package_manager_dep = dependency('capi-appfw-package-manager')
-    appfw_app_common_dep = dependency('capi-appfw-app-common')
-  endif
 endif
 
 # Set version info