diff options
author | Bongsoo Jeong <ps.jeong@samsung.com> | 2012-09-05 15:06:56 +0900 |
---|---|---|
committer | Bongsoo Jeong <ps.jeong@samsung.com> | 2012-09-05 15:30:03 +0900 |
commit | 69fdf3c88715d2d2de74ec4c992863a1a78ae756 (patch) | |
tree | 45b4ebecc008b2163af43300e5a4b971eccd0ed1 | |
parent | 76789c3a82bd21072c50ac91d56abaf5a5989b38 (diff) | |
download | phone-contacts-69fdf3c88715d2d2de74ec4c992863a1a78ae756.tar.gz phone-contacts-69fdf3c88715d2d2de74ec4c992863a1a78ae756.tar.bz2 phone-contacts-69fdf3c88715d2d2de74ec4c992863a1a78ae756.zip |
remove log/dial on Emulator
Change-Id: Ibbf96a941f90db8915ac6617b811f2b7bca10322
-rwxr-xr-x | CMakeLists.txt | 2 | ||||
-rw-r--r-- | packaging/phone.spec | 1 | ||||
-rwxr-xr-x | phone/phone.c | 12 |
3 files changed, 13 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 797fd9d..370e2fa 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,7 @@ MESSAGE("Build type: ${CMAKE_BUILD_TYPE}") INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include) INCLUDE(FindPkgConfig) -pkg_check_modules(pkgs REQUIRED appcore-efl ui-gadget-1 contacts-service ecore-x evas ecore ecore-input edje eina syspopup-caller capi-appfw-application capi-system-runtime-info) +pkg_check_modules(pkgs REQUIRED appcore-efl ui-gadget-1 contacts-service ecore-x evas ecore ecore-input edje eina syspopup-caller capi-appfw-application capi-system-runtime-info capi-system-info) FOREACH(flag ${pkgs_CFLAGS}) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") diff --git a/packaging/phone.spec b/packaging/phone.spec index e5bdb04..a285ba4 100644 --- a/packaging/phone.spec +++ b/packaging/phone.spec @@ -26,6 +26,7 @@ BuildRequires: pkgconfig(syspopup-caller) BuildRequires: pkgconfig(capi-appfw-application) BuildRequires: pkgconfig(capi-system-runtime-info) BuildRequires: pkgconfig(capi-uix-feedback) +BuildRequires: pkgconfig(capi-system-info) BuildRequires: cmake BuildRequires: edje-bin diff --git a/phone/phone.c b/phone/phone.c index f56fcce..7700833 100755 --- a/phone/phone.c +++ b/phone/phone.c @@ -19,9 +19,10 @@ #include <ui-gadget.h> #include <contacts-svc.h> #include <app.h> +#include <system_info.h> #include "phone.h" -#include "ph-front.h" +#include "ph-front.h" struct phone_data { @@ -80,6 +81,15 @@ static bool phapp_create(void *data) Evas_Object *win; struct phone_data *ad = data; + { + // Emulator does not support Dial/Log + char pszModelName[100] = {0,}; + system_info_get_value_string(SYSTEM_INFO_KEY_MODEL, &pszModelName); + + if(strcasestr(pszModelName, "Emulator") != NULL) + return false; + } + /* create window */ win = phapp_create_win(PACKAGE); p_retvm_if(NULL == win, -1, "phapp_create_win() Failed"); |