Fix build error on wearable profile 23/63323/2 accepted/tizen/common/20160323.184942 accepted/tizen/ivi/20160323.140709 accepted/tizen/mobile/20160323.135207 accepted/tizen/tv/20160323.135533 accepted/tizen/wearable/20160323.135255 submit/tizen/20160323.074242
authorSangkoo Kim <sangkoo.kim@samsung.com>
Wed, 23 Mar 2016 07:40:17 +0000 (16:40 +0900)
committerSangkoo Kim <sangkoo.kim@samsung.com>
Wed, 23 Mar 2016 07:40:42 +0000 (00:40 -0700)
Change-Id: I71ad14f94ebc731de9ae1eec7ed645a9edd9fd6a
Signed-off-by: Sangkoo Kim <sangkoo.kim@samsung.com>
externals/MsgSoundPlayer.cpp
proxy/CMakeLists.txt

index ee9d17b..89febf9 100755 (executable)
@@ -798,10 +798,10 @@ void MsgSoundPlayer::MsgSoundCreateRepeatAlarm(int RepeatTime)
 int MsgSoundPlayer::MsgSoundGetUnreadMsgCnt()
 {
        int unreadCnt = 0;
-       int unreadSms = 0;
-       int unreadMms = 0;
 
 #ifndef MSG_WEARABLE_PROFILE
+       int unreadSms = 0;
+       int unreadMms = 0;
 
        /* Get SMS Count */
        if (MsgSettingGetInt(VCONFKEY_MESSAGE_RECV_SMS_STATE, &unreadSms) != MSG_SUCCESS) {
index ddab5f3..45d7ecd 100755 (executable)
@@ -32,7 +32,11 @@ INCLUDE_DIRECTORIES(
 )
 
 INCLUDE(FindPkgConfig)
+IF(_MSG_WEARABLE_PROFILE)
+pkg_check_modules(trans_proxy_pkgs REQUIRED glib-2.0 dlog vconf)
+ELSE()
 pkg_check_modules(trans_proxy_pkgs REQUIRED glib-2.0 dlog vconf contacts-service2)
+ENDIF()
 
 FOREACH(flag ${trans_proxy_pkgs_CFLAGS})
        SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")