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}")
)
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")
#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"
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);
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"
%define _http_lib libcurl
%define download_booster OFF
-%define sys_resource OFF
%define support_oma_drm OFF
%ifarch armv7l
%define wifi_direct ON
-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 \