ecore_input: disable joystick feature in Mac OS 93/78793/1
authorThiep Ha <thiep.ha@samsung.com>
Wed, 6 Jul 2016 00:55:23 +0000 (09:55 +0900)
committerThiep Ha <thiep.ha@samsung.com>
Thu, 7 Jul 2016 01:49:56 +0000 (10:49 +0900)
Joystick input makes build break in MacOS, so we disable it.

Change-Id: If145f7f54e681a5597089cef272c35e969e61f5b
Signed-off-by: Thiep Ha <thiep.ha@samsung.com>
configure.ac
src/lib/ecore_input/Ecore_Input.h
src/lib/ecore_input/ecore_input_joystick.c

index 2b47394..e9e29ae 100755 (executable)
@@ -2783,9 +2783,13 @@ EFL_PLATFORM_DEPEND([ECORE_INPUT], [evil])
 EFL_INTERNAL_DEPEND_PKG([ECORE_INPUT], [ecore])
 EFL_INTERNAL_DEPEND_PKG([ECORE_INPUT], [eo])
 EFL_INTERNAL_DEPEND_PKG([ECORE_INPUT], [eina])
-
+PKG_CHECK_EXISTS([libudev],
+                 [have_ecore_udev="yes"],
+                 [have_ecore_udev="no"])
 if test "x${have_win32}" = "xno" ; then
-       EFL_ADD_LIBS([ECORE_INPUT], [-ludev])
+if test "${have_ecore_udev}" = "yes"; then
+    EFL_ADD_LIBS([ECORE_INPUT], [-ludev])
+fi
 fi
 
 ### Checks for header files
index e095a41..06886fa 100644 (file)
@@ -469,6 +469,7 @@ extern "C" {
    EAPI Ecore_Compose_State  ecore_compose_get(const Eina_List *seq, char **seqstr_ret);
 //TIZEN_ONLY(20160627) - Initial version of ecore joystick event
 #ifndef _WIN32
+#ifndef __APPLE__
    /**
     * Initialises the Ecore Input Joystick system.
     * @since 1.15
@@ -480,6 +481,7 @@ extern "C" {
     */
    EAPI int                  ecore_input_joystick_shutdown(void);
 #endif
+#endif
 //
 #ifdef __cplusplus
 }
index 3db1710..76d4a73 100644 (file)
@@ -1,4 +1,5 @@
 #ifndef _WIN32
+#ifndef __APPLE__
 #include <libudev.h>
 #include <stdio.h>
 #include <fcntl.h>
@@ -391,3 +392,4 @@ ecore_input_joystick_shutdown(void)
    return _ecore_input_joystick_init_count;
 }
 #endif
+#endif