Remove dependency about libresourced 45/83045/2
authorKichan Kwon <k_c.kwon@samsung.com>
Tue, 9 Aug 2016 01:42:21 +0000 (10:42 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Tue, 9 Aug 2016 05:32:50 +0000 (14:32 +0900)
Change-Id: Ifef6dc6d6e7c384e6d6e8c08a2e363c668ce8396
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
agent/CMakeLists.txt
agent/download-agent-dl-mgr.c
packaging/download-provider.spec

index cb43d14..a4b6b68 100755 (executable)
@@ -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")
index e57f3f3..06e4b5f 100755 (executable)
 #include <sys/syscall.h>
 #include <signal.h>
 
-#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);
index 1c6433d..d2eae52 100755 (executable)
@@ -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 \