ENDIF(SUPPORT_COMPANION_MODE)
ENDIF(DEFINED SUPPORT_COMPANION_MODE)
+IF(DEFINED MAX_CONCURRENT_DOWNLOADS)
+ MESSAGE("MAX_CONCURRENT_DOWNLOADS: ${MAX_CONCURRENT_DOWNLOADS}")
+ ADD_DEFINITIONS(-DMAX_CONCURRENT_DOWNLOADS=${MAX_CONCURRENT_DOWNLOADS})
+ENDIF(DEFINED MAX_CONCURRENT_DOWNLOADS)
+
ADD_DEFINITIONS(-DLIB_AGENT_PATH=\"${LIB_AGENT_PATH}\")
IF(BUILD_GCOV)
ADD_DEFINITIONS(-DBUILD_GCOV)
* Max count to download files simultaneously. \n
* Main reason for this restriction is because of Network bandwidth.
*/
+#ifdef MAX_CONCURRENT_DOWNLOADS
+#define DA_MAX_DOWNLOAD_REQ_AT_ONCE MAX_CONCURRENT_DOWNLOADS
+#else
#define DA_MAX_DOWNLOAD_REQ_AT_ONCE 50
+#endif
+
#define DA_MAX_TIME_OUT 65
#define DA_RESULT_OK 0
%if "%{?tizen_profile_name}" == "tv"
%define _ca_cert /opt/data/cert/vdca.pem
%define _ca_path /opt/data/cert/user/
+%define max_concurrent_downloads 15
+%else
+%define max_concurrent_downloads 50
%endif
%build
-DSUPPORT_MULTILINGUAL:BOOL=ON \
%else
-DSUPPORT_MULTILINGUAL:BOOL=OFF \
+ -DMAX_CONCURRENT_DOWNLOADS=%{?max_concurrent_downloads}\
%endif
-DCMAKE_LOG_DUMP_SCRIPT_DIR=%{_logdump_script_dir} \
-DHTTP_LIB=%{_http_lib} \