summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-02-03 10:39:23 +0100
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-02-03 10:59:04 +0100
commit3c0fe3ca3cda11a15e5652f8a6c0109d148d8fb6 (patch)
tree230b978d9b106ea433aa443c90fb0a8ec0b8fcb7
parent94ddd709dbae52a729179d8ad7ac4f8b06845ea3 (diff)
cmake: add eeze
there is currently a bug in the testsuite which needs to change, otherwise modules cannot be loaded. The code acutally runs when its installed and EFL_RUN_IN_TREE is not set.
-rw-r--r--CMakeLists.txt1
-rw-r--r--cmake/config/eeze.cmake24
-rw-r--r--src/bin/eeze/eeze_mount/CMakeLists.txt7
-rw-r--r--src/bin/eeze/eeze_scanner/CMakeLists.txt10
-rw-r--r--src/bin/eeze/eeze_scanner_monitor/CMakeLists.txt9
-rw-r--r--src/bin/eeze/eeze_sensor_test/CMakeLists.txt7
-rw-r--r--src/bin/eeze/eeze_umount/CMakeLists.txt9
-rw-r--r--src/lib/eeze/CMakeLists.txt67
-rw-r--r--src/tests/eeze/CMakeLists.txt12
9 files changed, 146 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8b3ef34bf1..1565013836 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -51,6 +51,7 @@ EFL_LIB(ecore_file)
51EFL_LIB(eldbus) 51EFL_LIB(eldbus)
52EFL_LIB(embryo) 52EFL_LIB(embryo)
53EFL_LIB(ector) 53EFL_LIB(ector)
54EFL_LIB(eeze)
54 55
55EFL_OPTIONS_SUMMARY() 56EFL_OPTIONS_SUMMARY()
56 57
diff --git a/cmake/config/eeze.cmake b/cmake/config/eeze.cmake
new file mode 100644
index 0000000000..2ca67716a9
--- /dev/null
+++ b/cmake/config/eeze.cmake
@@ -0,0 +1,24 @@
1
2#check what versions of mount
3pkg_check_modules(MOUNT mount)
4EFL_OPTION(HAVE_EEZE_MOUNT "Whenever to use libmount" ${MOUNT_FOUND} DEPENDS MOUNT_FOUND OFF)
5CHECK_APPEND_DEFINE(HAVE_EEZE_MOUNT ${HAVE_EEZE_MOUNT})
6
7pkg_check_modules(UDEV REQUIRED udev>=148)
8
9if(NOT ${UDEV_FOUND})
10 error("Udev is required")
11endif()
12
13#todo tizen
14if(ENABLED_TIZEN)
15 pkg_check_modules(SENSORS REQUIRED capi-system-sensor>=0.1.17 )
16endif()
17
18set(EEZE_MODULE_TYPE_SENSOR_FAKE ON)
19set(EEZE_MODULE_TYPE_SENSOR_TIZEN OFF)
20set(EEZE_MODULE_TYPE_SENSOR_UDEV ON)
21
22CHECK_APPEND_DEFINE(EEZE_MOUNT_BIN \"bla\")
23CHECK_APPEND_DEFINE(EEZE_UNMOUNT_BIN \"bla\")
24CHECK_APPEND_DEFINE(EEZE_EJECT_BIN \"bla\")
diff --git a/src/bin/eeze/eeze_mount/CMakeLists.txt b/src/bin/eeze/eeze_mount/CMakeLists.txt
new file mode 100644
index 0000000000..5105678ff3
--- /dev/null
+++ b/src/bin/eeze/eeze_mount/CMakeLists.txt
@@ -0,0 +1,7 @@
1set(LIBRARIES
2 ecore_file
3)
4
5set(SOURCES
6 eeze_mount.c
7)
diff --git a/src/bin/eeze/eeze_scanner/CMakeLists.txt b/src/bin/eeze/eeze_scanner/CMakeLists.txt
new file mode 100644
index 0000000000..4f7ec95693
--- /dev/null
+++ b/src/bin/eeze/eeze_scanner/CMakeLists.txt
@@ -0,0 +1,10 @@
1set(LIBRARIES
2 eeze
3 eet
4 ecore_con
5)
6
7set(SOURCES
8 eeze_scanner.c
9 eeze_scanner.h
10)
diff --git a/src/bin/eeze/eeze_scanner_monitor/CMakeLists.txt b/src/bin/eeze/eeze_scanner_monitor/CMakeLists.txt
new file mode 100644
index 0000000000..21658678da
--- /dev/null
+++ b/src/bin/eeze/eeze_scanner_monitor/CMakeLists.txt
@@ -0,0 +1,9 @@
1set(LIBRARIES
2 eeze
3 eet
4 ecore_con
5)
6
7set(SOURCES
8 eeze_scanner_monitor.c
9)
diff --git a/src/bin/eeze/eeze_sensor_test/CMakeLists.txt b/src/bin/eeze/eeze_sensor_test/CMakeLists.txt
new file mode 100644
index 0000000000..bd18f3105b
--- /dev/null
+++ b/src/bin/eeze/eeze_sensor_test/CMakeLists.txt
@@ -0,0 +1,7 @@
1set(PKG_CONFIG_REQUIRES_PRIVATE
2 udev
3)
4
5set(SOURCES
6 eeze_sensor_test.c
7)
diff --git a/src/bin/eeze/eeze_umount/CMakeLists.txt b/src/bin/eeze/eeze_umount/CMakeLists.txt
new file mode 100644
index 0000000000..51581a227a
--- /dev/null
+++ b/src/bin/eeze/eeze_umount/CMakeLists.txt
@@ -0,0 +1,9 @@
1set(LIBRARIES
2 eeze
3 eet
4 ecore_file
5)
6
7set(SOURCES
8 eeze_umount.c
9)
diff --git a/src/lib/eeze/CMakeLists.txt b/src/lib/eeze/CMakeLists.txt
new file mode 100644
index 0000000000..c9aa9e0147
--- /dev/null
+++ b/src/lib/eeze/CMakeLists.txt
@@ -0,0 +1,67 @@
1set(DESCRIPTION "Ecore event abstraction library")
2
3set(PUBLIC_LIBRARIES
4 eina
5 ecore
6)
7
8set(LIBRARIES
9 eo
10 efl
11 ecore_con
12 ecore_file
13 eet
14 emile
15)
16
17set(PKG_CONFIG_REQUIRES_PRIVATE
18 libudev
19)
20
21
22if (${HAVE_EEZE_MOUNT})
23 list(APPEND PKG_CONFIG_REQUIRES_PRIVATE mount)
24endif()
25
26if (${ENABLE_TIZEN})
27 list(APPEND PKG_CONFIG_REQUIRES_PRIVATE capi-system-sensor)
28endif()
29
30
31set(PUBLIC_HEADERS
32 Eeze.h
33 Eeze_Disk.h
34 Eeze_Net.h
35 Eeze_Sensor.h
36)
37
38set(SOURCES
39 eeze_disk.c
40 eeze_disk_mount.c
41 eeze_disk_private.h
42 eeze_disk_udev.c
43 eeze_main.c
44 eeze_net.c
45 eeze_net_private.h
46 eeze_sensor.c
47 eeze_sensor_private.h
48 eeze_udev_find.c
49 eeze_udev_private.c
50 eeze_udev_private.h
51 eeze_udev_syspath.c
52 eeze_udev_walk.c
53 eeze_udev_watch.c
54)
55
56#mount files
57if(${HAVE_EEZE_MOUNT})
58 if (${MOUNT_VERSION} LESS 2.19.0)
59 list(APPEND SOURCES eeze_disk_libmount_old.c)
60 elseif (${MOUNT_VERSION} GREATER 2.19.0)
61 list(APPEND SOURCES eeze_disk_libmount_new.c)
62 else()
63 list(APPEND SOURCES eeze_disk_libmount.c)
64 endif()
65else()
66 list(APPEND SOURCES eeze_disk_dummy.c)
67endif()
diff --git a/src/tests/eeze/CMakeLists.txt b/src/tests/eeze/CMakeLists.txt
new file mode 100644
index 0000000000..65585c4f2d
--- /dev/null
+++ b/src/tests/eeze/CMakeLists.txt
@@ -0,0 +1,12 @@
1set(LIBRARIES
2 eeze
3)
4
5set(SOURCES
6 eeze_suite.c
7 eeze_suite.h
8 eeze_test_init.c
9 eeze_test_net.c
10 eeze_test_sensor.c
11 eeze_test_udev.c
12)