From 68b3e488e40a243464a5854b3f2689cb564350f6 Mon Sep 17 00:00:00 2001 From: Kichan Kwon Date: Tue, 9 Aug 2016 10:42:21 +0900 Subject: [PATCH] Remove dependency about libresourced Change-Id: Ifef6dc6d6e7c384e6d6e8c08a2e363c668ce8396 Signed-off-by: Kichan Kwon --- agent/CMakeLists.txt | 17 ----------------- agent/download-agent-dl-mgr.c | 16 ---------------- packaging/download-provider.spec | 7 ------- 3 files changed, 40 deletions(-) diff --git a/agent/CMakeLists.txt b/agent/CMakeLists.txt index cb43d14..a4b6b68 100755 --- a/agent/CMakeLists.txt +++ b/agent/CMakeLists.txt @@ -33,27 +33,14 @@ SET(HEADERS INCLUDE(FindPkgConfig) -MESSAGE("SUPPORT_SYS_RESOURCE: ${SUPPORT_SYS_RESOURCE}") -IF (SUPPORT_SYS_RESOURCE) pkg_check_modules(subpkgs REQUIRED xdgmime vconf capi-network-connection dlog - system-resource storage tpkp-curl ) -ELSE (SUPPORT_SYS_RESOURCE) -pkg_check_modules(subpkgs REQUIRED - xdgmime - vconf - capi-network-connection - dlog - storage - tpkp-curl -) -ENDIF (SUPPORT_SYS_RESOURCE) IF ("${HTTP_LIB}" MATCHES "libcurl") MESSAGE("HTTP_LIB: ${HTTP_LIB}") @@ -77,10 +64,6 @@ IF (SUPPORT_OMA_DRM) ) ENDIF (SUPPORT_OMA_DRM) -IF (SUPPORT_SYS_RESOURCE) - ADD_DEFINITIONS("-D_ENABLE_SYS_RESOURCE") -ENDIF (SUPPORT_SYS_RESOURCE) - IF (SUPPORT_DOWNLOAD_BOOSTER) MESSAGE("SUPPORT_DOWNLOAD_BOOSTER:${SUPPORT_DOWNLOAD_BOOSTER}") ADD_DEFINITIONS("-D_RAF_SUPPORT") diff --git a/agent/download-agent-dl-mgr.c b/agent/download-agent-dl-mgr.c index e57f3f3..06e4b5f 100755 --- a/agent/download-agent-dl-mgr.c +++ b/agent/download-agent-dl-mgr.c @@ -18,10 +18,6 @@ #include #include -#ifdef _ENABLE_SYS_RESOURCE -#include "resourced.h" -#endif - #include "download-agent-dl-mgr.h" #include "download-agent-dl-info.h" #include "download-agent-http-mgr.h" @@ -64,18 +60,6 @@ static void *__thread_start_download(void *data) da_id = da_info->da_id; pthread_cleanup_push(__thread_clean_up_handler_for_start_download, DA_NULL); -#ifdef _ENABLE_SYS_RESOURCE - if (req_info->pkg_name) { - pid_t tid = (pid_t) syscall(SYS_gettid); - da_info->tid = (pid_t) syscall(SYS_gettid); - DA_SECURE_LOGI("pkg_name[%s] threadid[%lu]", - req_info->pkg_name,pthread_self()); - if (join_app_performance(req_info->pkg_name, tid) != - RESOURCED_ERROR_OK) { - DA_LOGE("Can not put app to network performance id[%d]", da_id); - } - } -#endif __download_content(da_info); destroy_da_info(da_id); pthread_cleanup_pop(0); diff --git a/packaging/download-provider.spec b/packaging/download-provider.spec index 1c6433d..d2eae52 100755 --- a/packaging/download-provider.spec +++ b/packaging/download-provider.spec @@ -28,7 +28,6 @@ BuildRequires: pkgconfig(libsmack) BuildRequires: gettext-devel BuildRequires: pkgconfig(libsystemd-daemon) BuildRequires: pkgconfig(capi-network-wifi-direct) -BuildRequires: pkgconfig(libresourced) #BuildRequires: model-build-features T30 BuildRequires: pkgconfig(storage) %if "%{?tizen_profile_name}" == "wearable" @@ -71,7 +70,6 @@ Description: Download the contents in background (development files) %define _http_lib libcurl %define download_booster OFF -%define sys_resource OFF %define support_oma_drm OFF %ifarch armv7l %define wifi_direct ON @@ -122,11 +120,6 @@ Description: Download the contents in background (development files) -DLOCALE_DIR:PATH=%{_localedir} \\\ -DLICENSE_DIR:PATH=%{_licensedir} \\\ -DSUPPORT_WIFI_DIRECT:BOOL=OFF \\\ - %if "%{?sys_resource}" == "ON" \ - -DSUPPORT_SYS_RESOURCE:BOOL=ON \\\ - %else \ - -DSUPPORT_SYS_RESOURCE:BOOL=OFF \\\ - %endif \ %if "%{?download_booster}" == "ON" \ -DSUPPORT_DOWNLOAD_BOOSTER:BOOL=ON \\\ %else \ -- 2.7.4