diff options
author | Gustavo Sverzut Barbieri <barbieri@profusion.mobi> | 2017-02-02 17:04:44 -0200 |
---|---|---|
committer | Gustavo Sverzut Barbieri <barbieri@profusion.mobi> | 2017-02-02 17:15:31 -0200 |
commit | a679c4a3223fe99dddb3f10e086760f517fcf1bc (patch) | |
tree | 99a13611d490bd9bb75bb62f8989ac4b53896785 | |
parent | 5fcdfa96aac5fbf3b6a16c3180ea59dcc9dd8c7c (diff) | |
download | efl-a679c4a3223fe99dddb3f10e086760f517fcf1bc.tar.gz |
cmake: add ecore_file.
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | cmake/config/common.cmake | 1 | ||||
-rw-r--r-- | src/lib/ecore_file/CMakeLists.txt | 29 |
3 files changed, 31 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8cae20d6e6..8b3ef34bf1 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 96b105c6c0..41d480d2d0 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 0000000000..fbee450a55 --- /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() |