summaryrefslogtreecommitdiff
path: root/cmake/config/ecore.cmake
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-25 19:26:02 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-25 19:29:20 -0200
commitf9589211772c8b47765795157f4c9288b00b0aa5 (patch)
tree8da05b325204659e31aa50e897ee48352f9c1865 /cmake/config/ecore.cmake
parent205348383cd79abf65fc7b473129f17c71e636f5 (diff)
cmake: add ecore.
no tests or modules (which depend on eldbus).
Diffstat (limited to '')
-rw-r--r--cmake/config/ecore.cmake43
1 files changed, 43 insertions, 0 deletions
diff --git a/cmake/config/ecore.cmake b/cmake/config/ecore.cmake
new file mode 100644
index 0000000000..c0441d20fa
--- /dev/null
+++ b/cmake/config/ecore.cmake
@@ -0,0 +1,43 @@
1pkg_check_modules(GLIB glib-2.0)
2pkg_check_modules(TIZEN vconf)
3
4EFL_OPTION(ENABLE_GLIB "Whenever to integrate with Glib" ${GLIB_FOUND} DEPENDS GLIB_FOUND OFF)
5
6EFL_OPTION(ENABLE_GLIB_ALWAYS "Always integrate with Glib, otheriwse needs explicit call to ecore_main_loop_glib_integrate()" OFF DEPENDS "ENABLE_GLIB" OFF)
7
8EFL_OPTION(ENABLE_G_MAIN_LOOP "Enable ecore_main_loop based on g_main_loop" OFF DEPENDS "ENABLE_GLIB" OFF)
9
10EFL_OPTION(ENABLE_TIZEN "Enable tizen support" OFF DEPENDS "TIZEN_FOUND" OFF)
11
12# TODO: these need eldbus
13set(ECORE_MODULE_TYPE_SYSTEM_SYSTEMD_DEFAULT OFF) # ${ENABLE_SYSTEMD})
14set(ECORE_MODULE_TYPE_SYSTEM_UPOWER_DEFAULT OFF)
15set(ECORE_MODULE_TYPE_SYSTEM_TIZEN_DEFAULT ${ENABLE_TIZEN})
16
17# TODO libuv
18# TODO gstreamer
19# TODO gstreamer1
20
21if("${BUILD_PROFILE}" STREQUAL "dev" AND HAVE_BACKTRACE)
22 CHECK_APPEND_DEFINE(WANT_ECORE_TIMER_DUMP 1)
23else()
24 CHECK_APPEND_DEFINE(WANT_ECORE_TIMER_DUMP "")
25endif()
26
27CHECK_APPEND_DEFINE(GLIB_INTEGRATION_ALWAYS "${ENABLE_GLIB_ALWAYS}")
28CHECK_APPEND_DEFINE(HAVE_GLIB "${ENABLE_GLIB}")
29CHECK_APPEND_DEFINE(HAVE_TIZEN_CONFIGURATION_MANAGER "${ENABLE_TIZEN}")
30CHECK_APPEND_DEFINE(USE_G_MAIN_LOOP "${ENABLE_G_MAIN_LOOP}")
31
32FUNC_CHECK(epoll_create NAME HAVE_EPOLL INCLUDE_FILES sys/epoll.h)
33FUNC_CHECK(execvp INCLUDE_FILES unistd.h)
34FUNC_CHECK(gettimeofday INCLUDE_FILES sys/time.h)
35FUNC_CHECK(isfinite INCLUDE_FILES math.h LIBRARIES m)
36FUNC_CHECK(pause INCLUDE_FILES unistd.h)
37FUNC_CHECK(timerfd_create INCLUDE_FILES sys/timerfd.h)
38
39HEADER_CHECK(ieeefp.h)
40HEADER_CHECK(langinfo.h)
41HEADER_CHECK(sys/epoll.h)
42HEADER_CHECK(sys/timerfd.h)
43HEADER_CHECK(sys/wait.h)