From: hyunuktak Date: Wed, 9 Nov 2016 07:46:06 +0000 (+0900) Subject: Added ntp enable feature when profile is ivi X-Git-Tag: accepted/tizen/3.0/common/20161114.081254^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F09%2F96509%2F2;p=platform%2Fcore%2Fconnectivity%2Fnet-config.git Added ntp enable feature when profile is ivi Change-Id: I64f155a0337f1696a3e8ddef3f3ad0bb2309231d Signed-off-by: hyunuktak --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 54aeb69..7c65574 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -80,6 +80,10 @@ IF(TIZEN_TELEPHONY_ENABLE) ADD_DEFINITIONS(-DTIZEN_TELEPHONY_ENABLE) ENDIF(TIZEN_TELEPHONY_ENABLE) +IF(TIZEN_NTP_ENABLE) + ADD_DEFINITIONS(-DTIZEN_NTP_ENABLE) +ENDIF(TIZEN_NTP_ENABLE) + IF(TIZEN_WLAN_BOARD_SPRD) ADD_DEFINITIONS(-DTIZEN_WLAN_BOARD_SPRD) ENDIF(TIZEN_WLAN_BOARD_SPRD) diff --git a/packaging/net-config.spec b/packaging/net-config.spec index e07cd5b..f384165 100755 --- a/packaging/net-config.spec +++ b/packaging/net-config.spec @@ -1,6 +1,6 @@ Name: net-config Summary: TIZEN Network Configuration service -Version: 1.1.93 +Version: 1.1.94 Release: 2 Group: System/Network License: Apache-2.0 @@ -57,6 +57,9 @@ cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DTIZEN_TV=1 \ %endif %endif +%if "%{profile}" == "ivi" + -DTIZEN_NTP_ENABLE=1 \ +%endif %if 0%{?model_build_feature_wlan_wearable} == 1 -DTIZEN_WEARABLE=1 \ -DTIZEN_CAPTIVE_PORTAL=1 \ diff --git a/src/main.c b/src/main.c index 9a7a833..6dda9ac 100755 --- a/src/main.c +++ b/src/main.c @@ -118,7 +118,7 @@ int main(int argc, char *argv[]) netconfig_error_init(); -#if !defined TIZEN_TELEPHONY_ENABLE +#if defined TIZEN_NTP_ENABLE netconfig_clock_init(); #endif @@ -159,7 +159,7 @@ int main(int argc, char *argv[]) netconfig_dpm_deinit(); -#if !defined TIZEN_TELEPHONY_ENABLE +#if defined TIZEN_NTP_ENABLE netconfig_clock_deinit(); #endif