summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
-rw-r--r--cmake/config/ecore.cmake43
-rw-r--r--src/lib/ecore/CMakeLists.txt96
-rw-r--r--src/modules/ecore/system/tizen/CMakeLists.txt3
4 files changed, 143 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8fb13c9..7196aa8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -35,6 +35,7 @@ EFL_LIB(eina)
35EFL_LIB(eolian) 35EFL_LIB(eolian)
36EFL_LIB(eo) 36EFL_LIB(eo)
37EFL_LIB(efl) 37EFL_LIB(efl)
38EFL_LIB(ecore)
38 39
39EFL_OPTIONS_SUMMARY() 40EFL_OPTIONS_SUMMARY()
40 41
diff --git a/cmake/config/ecore.cmake b/cmake/config/ecore.cmake
new file mode 100644
index 0000000..c0441d2
--- /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)
diff --git a/src/lib/ecore/CMakeLists.txt b/src/lib/ecore/CMakeLists.txt
new file mode 100644
index 0000000..0425ce9
--- /dev/null
+++ b/src/lib/ecore/CMakeLists.txt
@@ -0,0 +1,96 @@
1set(DESCRIPTION "Ecore event abstraction library")
2
3set(PUBLIC_LIBRARIES
4 efl
5 eina
6 eo
7)
8
9set(LIBRARIES
10 m
11)
12
13if(ENABLE_SYSTEMD)
14 list(APPEND PKG_CONFIG_REQUIRES_PRIVATE libsystemd)
15endif()
16
17if(ENABLE_GLIB)
18 list(APPEND PKG_CONFIG_REQUIRES_PRIVATE glib-2.0 gthread-2.0)
19endif()
20
21set(PUBLIC_EO_FILES
22 ecore_exe.eo
23 ecore_poller.eo
24 ecore_types.eot
25 efl_io_buffered_stream.eo
26 efl_io_closer_fd.eo
27 efl_io_copier.eo
28 efl_io_file.eo
29 efl_io_positioner_fd.eo
30 efl_io_reader_fd.eo
31 efl_io_sizer_fd.eo
32 efl_io_stderr.eo
33 efl_io_stdin.eo
34 efl_io_stdout.eo
35 efl_io_writer_fd.eo
36 efl_loop.eo
37 efl_loop_fd.eo
38 efl_loop_timer.eo
39 efl_loop_user.eo
40 efl_promise.eo
41)
42
43set(PUBLIC_HEADERS
44 Ecore.h
45 Ecore_Common.h
46 Ecore_Eo.h
47 Ecore_Getopt.h
48 Ecore_Legacy.h
49)
50
51set(SOURCES
52 ecore.c
53 ecore_alloc.c
54 ecore_anim.c
55 ecore_app.c
56 ecore_events.c
57 ecore_exe.c
58 ecore_exe_private.h
59 ecore_getopt.c
60 ecore_glib.c
61 ecore_idle_enterer.c
62 ecore_idle_exiter.c
63 ecore_idler.c
64 ecore_internal.h
65 ecore_job.c
66 ecore_main.c
67 ecore_pipe.c
68 ecore_poller.c
69 ecore_private.h
70 ecore_thread.c
71 ecore_throttle.c
72 ecore_time.c
73 ecore_timer.c
74 efl_io_buffered_stream.c
75 efl_io_closer_fd.c
76 efl_io_copier.c
77 efl_io_file.c
78 efl_io_positioner_fd.c
79 efl_io_reader_fd.c
80 efl_io_sizer_fd.c
81 efl_io_stderr.c
82 efl_io_stdin.c
83 efl_io_stdout.c
84 efl_io_writer_fd.c
85 efl_loop_fd.c
86 efl_loop_user.c
87 efl_promise.c
88)
89
90# TODO: win32
91# TODO: ps3
92
93list(APPEND SOURCES
94 ecore_exe_posix.c
95 ecore_signal.c
96)
diff --git a/src/modules/ecore/system/tizen/CMakeLists.txt b/src/modules/ecore/system/tizen/CMakeLists.txt
new file mode 100644
index 0000000..e185f39
--- /dev/null
+++ b/src/modules/ecore/system/tizen/CMakeLists.txt
@@ -0,0 +1,3 @@
1set(PKG_CONFIG_REQUIRES_PRIVATE vconf)
2
3set(SOURCES ecore_system_tizen.c)