- disable TAPI in TV profile.
Change-Id: If988400fcf49fe1b14e283044c762ba38a01fafa
SET(RESOURCE_DIR "${CMAKE_SOURCE_DIR}/res")
SET(LOCALEDIR "/usr/apps/org.tizen.screen-reader/res/locale")
+IF("${SEC_FEATURE_TAPI_ENABLE}" STREQUAL "1")
+ MESSAGE("STATUS_SEC:/-${SEC_FEATURE_TAPI_ENABLE}-/")
+ SET(TAPI_REQUIRED_PKG "tapi")
+ ADD_DEFINITIONS("-DSCREEN_READER_MOBILE")
+ENDIF ()
+
INCLUDE(FindPkgConfig)
pkg_check_modules(pkgs REQUIRED
bundle
capi-media-tone-player
capi-system-device
capi-network-bluetooth
- tapi
notification
capi-network-wifi
+ ${TAPI_REQUIRED_PKG}
)
FOREACH(flag ${pkgs_CFLAGS})
+#ifdef SCREEN_READER_MOBILE
void system_notifications_init(void);
void system_notifications_shutdown(void);
void device_signal_strenght_get(void);
void device_missed_events_get(void);
void device_date_get(void);
-void device_bluetooth_get(void);
\ No newline at end of file
+void device_bluetooth_get(void);
+#endif
BuildRequires: gettext-tools
BuildRequires: pkgconfig(check)
BuildRequires: pkgconfig(capi-network-bluetooth)
-BuildRequires: pkgconfig(tapi)
BuildRequires: pkgconfig(notification)
BuildRequires: pkgconfig(capi-network-wifi)
+#%if "%{?tizen_profile_name}" != "tv"
+BuildRequires: pkgconfig(tapi)
+#%endif
%description
An utility library for developers of the menu screen.
%setup -q
%build
-%if "%{?tizen_profile_name}" == "tv"
- export CFLAGS+=" -DSCREEN_READER_TV"
+rm -rf CMakeFiles CMakeCache.txt
+
+%if "%{?tizen_profile_name}" != "tv"
+ export SEC_FEATURE_TAPI_ENABLE="1"
+%else
+ export SEC_FEATURE_TAPI_ENABLE="0"
%endif
-rm -rf CMakeFiles CMakeCache.txt && cmake . -DCMAKE_INSTALL_PREFIX="%{AppInstallPath}" -DCMAKE_TARGET="%{Exec}" -DCMAKE_PACKAGE="%{name}"
+cmake . -DCMAKE_INSTALL_PREFIX="%{AppInstallPath}" \
+ -DCMAKE_TARGET="%{Exec}" \
+ -DCMAKE_PACKAGE="%{name}" \
+ -DSEC_FEATURE_TAPI_ENABLE=${SEC_FEATURE_TAPI_ENABLE}
+
make %{?jobs:-j%jobs} \
2>&1 | sed \
-e 's%^.*: error: .*$%\x1b[37;41m&\x1b[m%' \
logger_init();
screen_reader_switch_enabled_set(EINA_TRUE);
screen_reader_create_service(data);
-#ifndef SCREEN_READER_TV
+#ifdef SCREEN_READER_MOBILE
screen_reader_gestures_init();
navigator_init();
#endif
{
DEBUG("screen reader terminating");
-#ifndef SCREEN_READER_TV
+#ifdef SCREEN_READER_MOBILE
DEBUG("terminate navigator");
navigator_shutdown();
DEBUG("terminate gestures");
_start_stop_signal_send();
break;
case TWO_FINGERS_TRIPLE_TAP:
+#ifdef SCREEN_READER_MOBILE
_read_quickpanel();
+#endif
break;
case THREE_FINGERS_SINGLE_TAP:
_review_from_top();
window_tracker_register(on_window_activate, NULL);
window_tracker_active_window_request();
smart_notification_init();
+#ifdef SCREEN_READER_MOBILE
system_notifications_init();
+#endif
keyboard_tracker_init();
keyboard_tracker_register(kb_tracker, NULL);
}
app_tracker_shutdown();
window_tracker_shutdown();
smart_notification_shutdown();
+#ifdef SCREEN_READER_MOBILE
system_notifications_shutdown();
+#endif
keyboard_tracker_shutdown();
}
{
//Set by vconf
.run_service = 1,
-#ifdef SCREEN_READER_TV
- .tracking_signal_name = FOCUS_CHANGED_SIG,
-#else
+#ifdef SCREEN_READER_MOBILE
.tracking_signal_name = HIGHLIGHT_CHANGED_SIG,
+#else
+ .tracking_signal_name = FOCUS_CHANGED_SIG,
#endif
//Set by tts
vconf_init(service_data);
tts_init(service_data);
-#ifdef SCREEN_READER_TV
+#ifdef SCREEN_READER_MOBILE
spi_init(service_data);
#endif
#define _GNU_SOURCE
+
+#ifdef SCREEN_READER_MOBILE
+
+
#include <device/battery.h>
#include <device/display.h>
#include <device/callback.h>
free(buffer);
}
}
+
+#endif
flush_flag = EINA_FALSE;
}
-#ifndef SCREEN_READER_TV
+#ifdef SCREEN_READER_MOBILE
if(last_utt_id == utt_id)
{
DEBUG("LAST UTTERANCE");