barbieri pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=a679c4a3223fe99dddb3f10e086760f517fcf1bc

commit a679c4a3223fe99dddb3f10e086760f517fcf1bc
Author: Gustavo Sverzut Barbieri <[email protected]>
Date:   Thu Feb 2 17:04:44 2017 -0200

    cmake: add ecore_file.
---
 CMakeLists.txt                    |  1 +
 cmake/config/common.cmake         |  1 +
 src/lib/ecore_file/CMakeLists.txt | 29 +++++++++++++++++++++++++++++
 3 files changed, 31 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8cae20d..8b3ef34 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -47,6 +47,7 @@ EFL_LIB(eet)
 EFL_LIB(ecore)
 EFL_LIB(ecore_con)
 EFL_LIB(ecore_ipc)
+EFL_LIB(ecore_file)
 EFL_LIB(eldbus)
 EFL_LIB(embryo)
 EFL_LIB(ector)
diff --git a/cmake/config/common.cmake b/cmake/config/common.cmake
index 96b105c..41d480d 100644
--- a/cmake/config/common.cmake
+++ b/cmake/config/common.cmake
@@ -46,6 +46,7 @@ HEADER_CHECK(mcheck.h)
 HEADER_CHECK(netinet/in.h)
 HEADER_CHECK(stdlib.h)
 HEADER_CHECK(sys/auxv.h)
+HEADER_CHECK(sys/inotify.h)
 HEADER_CHECK(sys/ioctl.h)
 HEADER_CHECK(sys/mman.h)
 HEADER_CHECK(sys/types.h)
diff --git a/src/lib/ecore_file/CMakeLists.txt 
b/src/lib/ecore_file/CMakeLists.txt
new file mode 100644
index 0000000..fbee450
--- /dev/null
+++ b/src/lib/ecore_file/CMakeLists.txt
@@ -0,0 +1,29 @@
+set(DESCRIPTION "E core library, File module")
+
+set(LIBRARIES
+  ecore
+  ecore_con
+  efl
+  eina
+  eo
+)
+
+set(PUBLIC_HEADERS
+  Ecore_File.h
+)
+
+set(SOURCES
+  ecore_file.c
+  ecore_file_download.c
+  ecore_file_monitor.c
+  ecore_file_path.c
+  ecore_file_private.h
+)
+
+if(HAVE_SYS_INOTIFY_H)
+  list(APPEND SOURCES ecore_file_monitor_inotify.c)
+elseif(WINDOWS)
+  list(APPEND SOURCES ecore_file_monitor_win32.c)
+else()
+  list(APPEND SOURCES ecore_file_monitor_poll.c)
+endif()

-- 


Reply via email to