From 25415bf5e04d4cbda6e8cc02506a262fbe292620 Mon Sep 17 00:00:00 2001 From: lokilee73 Date: Thu, 9 Mar 2017 14:07:26 +0900 Subject: [PATCH] powerkey popup : to fix compile error Change-Id: I3661d37d7ebe1dbec58934fc627dde8af51dc85c Signed-off-by: lokilee73 --- CMakeLists.txt | 8 ++++++++ src/common/popup-common.h | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b23bd51..a0d2ee3 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,14 @@ IF(PROFILE STREQUAL tv) OPTION(PROFILE_TV "TV device" ON) ADD_DEFINITIONS("-DPROFILE_TV=\"${PROFILE_TV}\"") ENDIF() +IF(PROFILE STREQUAL ivi) + OPTION(PROFILE_IVI "IVI device" ON) + ADD_DEFINITIONS("-DPROFILE_IVI=\"${PROFILE_IVI}\"") +ENDIF() +IF(PROFILE STREQUAL common) + OPTION(PROFILE_COMMON "COMMON device" ON) + ADD_DEFINITIONS("-DPROFILE_COMMON=\"${PROFILE_COMMON}\"") +ENDIF() SET(COMMON_DIR "${CMAKE_SOURCE_DIR}/src/common") SET(COMMON_SRCS diff --git a/src/common/popup-common.h b/src/common/popup-common.h index ccd23a5..bd93621 100755 --- a/src/common/popup-common.h +++ b/src/common/popup-common.h @@ -66,7 +66,11 @@ typedef struct appdata { Evas_Object *popup; Evas_Object *button; /* Need updates of efl-ext for Tizen 4.0 */ +#if !defined PROFILE_MOBILE && !defined PROFILE_IVI && !defined PROFILE_COMMON && !defined PROFILE_TV Eext_Circle_Surface *circle_surface; +#else + void *circle_surface; +#endif struct tm saved_time; /* Used by Mobile Profile */ Evas_Object *fb; -- 2.7.4