- fixed config flag name.
Change-Id: I49fa3c6180b8fad48a33f04b502454fabbe0eda8
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 ()
+ MESSAGE("SEC_FEATURE_TAPI_ENABLE: ${SEC_FEATURE_TAPI_ENABLE}")
+ SET(TAPI_REQUIRED_PKG "tapi")
+ELSE()
+ MESSAGE("SEC_FEATURE_TAPI_ENABLE: ${SEC_FEATURE_TAPI_ENABLE}")
+ ADD_DEFINITIONS("-DSCREEN_READER_TV")
+ENDIF()
INCLUDE(FindPkgConfig)
pkg_check_modules(pkgs REQUIRED
-#ifdef SCREEN_READER_MOBILE
+#ifndef SCREEN_READER_TV
void system_notifications_init(void);
void system_notifications_shutdown(void);
BuildRequires: pkgconfig(capi-network-bluetooth)
BuildRequires: pkgconfig(notification)
BuildRequires: pkgconfig(capi-network-wifi)
-#%if "%{?tizen_profile_name}" != "tv"
+%if "%{?tizen_profile_name}" != "tv"
BuildRequires: pkgconfig(tapi)
-#%endif
+%endif
%description
An utility library for developers of the menu screen.
logger_init();
screen_reader_switch_enabled_set(EINA_TRUE);
screen_reader_create_service(data);
+#ifndef SCREEN_READER_TV
screen_reader_gestures_init();
navigator_init();
+#endif
return 0;
}
static int app_terminate(void *data)
{
DEBUG("screen reader terminating");
-
+#ifndef SCREEN_READER_TV
DEBUG("terminate navigator");
navigator_shutdown();
DEBUG("terminate gestures");
screen_reader_gestures_shutdown();
+#endif
DEBUG("terminate service");
screen_reader_terminate_service(data);
DEBUG("clear ScreenReaderEnabled property");
_start_stop_signal_send();
break;
case TWO_FINGERS_TRIPLE_TAP:
-#ifdef SCREEN_READER_MOBILE
+#ifndef SCREEN_READER_TV
_read_quickpanel();
#endif
break;
window_tracker_register(on_window_activate, NULL);
window_tracker_active_window_request();
smart_notification_init();
-#ifdef SCREEN_READER_MOBILE
+#ifndef SCREEN_READER_TV
system_notifications_init();
#endif
keyboard_tracker_init();
app_tracker_shutdown();
window_tracker_shutdown();
smart_notification_shutdown();
-#ifdef SCREEN_READER_MOBILE
+#ifndef SCREEN_READER_TV
system_notifications_shutdown();
#endif
keyboard_tracker_shutdown();
{
//Set by vconf
.run_service = 1,
-#ifdef SCREEN_READER_MOBILE
- .tracking_signal_name = HIGHLIGHT_CHANGED_SIG,
-#else
+#ifdef SCREEN_READER_TV
.tracking_signal_name = FOCUS_CHANGED_SIG,
+#else
+ .tracking_signal_name = HIGHLIGHT_CHANGED_SIG,
#endif
//Set by tts
vconf_init(service_data);
tts_init(service_data);
+#ifdef SCREEN_READER_TV
spi_init(service_data);
+#endif
/* XML TEST */
#ifdef RUN_IPC_TEST_SUIT
* limitations under the License.
*/
-#define _GNU_SOURCE
-
-
-#ifdef SCREEN_READER_MOBILE
+#ifndef SCREEN_READER_TV
+#define _GNU_SOURCE
#include <device/battery.h>
#include <device/display.h>