aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile_Eio.am
diff options
context:
space:
mode:
authorpierre lamot <pierre.lamot@openwide.fr>2015-02-26 14:37:45 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-12 07:43:59 +0100
commitd958afd9fd7078a6eaee17df0a0b1e71504fc3b1 (patch)
treef514b4f3cb5d7cec654371fc6f029800695e4648 /src/Makefile_Eio.am
parentecore_cocoa: fix keyboad event handling (diff)
downloadefl-d958afd9fd7078a6eaee17df0a0b1e71504fc3b1.tar.gz
eio: add OSX implementation of eio_monitor based on FSEvent
this patch adds an implementation of eio_monitor based on FSEvent for OSX. This implentation has some limitations compared to inotify implementation. Folowing events are not detected: - EIO_MONITOR_FILE_CLOSED - EIO_MONITOR_SELF_RENAME - EIO_MONITOR_SELF_DELETED It should be noted that some events that happend before the call to eio_monitor_add can be catched. This is why sleep timers have been added in the test suite. Tests have been added to check uncovered scenarios. some things might still be improved: - self_deleted events for files might be handled by checking the file_name manually - self_deleted events for directories might be handled by setting kFSEventStreamCreateFlagWatchRoot. I've noticed by doing so that a lot more unwanted event are raised Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/Makefile_Eio.am')
-rw-r--r--src/Makefile_Eio.am7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Makefile_Eio.am b/src/Makefile_Eio.am
index d3144391a0..ee118a35ab 100644
--- a/src/Makefile_Eio.am
+++ b/src/Makefile_Eio.am
@@ -23,6 +23,10 @@ lib_eio_libeio_la_SOURCES += lib/eio/eio_monitor_inotify.c
else
if HAVE_NOTIFY_WIN32
lib_eio_libeio_la_SOURCES += lib/eio/eio_monitor_win32.c
+else
+if HAVE_NOTIFY_COCOA
+lib_eio_libeio_la_SOURCES += lib/eio/eio_monitor_cocoa.c
+endif
endif
endif
@@ -30,6 +34,9 @@ lib_eio_libeio_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EIO_CFLAGS@
lib_eio_libeio_la_LIBADD = @EIO_LIBS@
lib_eio_libeio_la_DEPENDENCIES = @EIO_INTERNAL_LIBS@
lib_eio_libeio_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
+if HAVE_NOTIFY_COCOA
+lib_eio_libeio_la_LDFLAGS += -framework CoreServices
+endif
if EFL_ENABLE_TESTS