summaryrefslogtreecommitdiff
path: root/cmake
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 /cmake
parent94ddd709dbae52a729179d8ad7ac4f8b06845ea3 (diff)
downloadefl-3c0fe3ca3cda11a15e5652f8a6c0109d148d8fb6.tar.gz
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.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/config/eeze.cmake24
1 files changed, 24 insertions, 0 deletions
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 @@
+
+#check what versions of mount
+pkg_check_modules(MOUNT mount)
+EFL_OPTION(HAVE_EEZE_MOUNT "Whenever to use libmount" ${MOUNT_FOUND} DEPENDS MOUNT_FOUND OFF)
+CHECK_APPEND_DEFINE(HAVE_EEZE_MOUNT ${HAVE_EEZE_MOUNT})
+
+pkg_check_modules(UDEV REQUIRED udev>=148)
+
+if(NOT ${UDEV_FOUND})
+ error("Udev is required")
+endif()
+
+#todo tizen
+if(ENABLED_TIZEN)
+ pkg_check_modules(SENSORS REQUIRED capi-system-sensor>=0.1.17 )
+endif()
+
+set(EEZE_MODULE_TYPE_SENSOR_FAKE ON)
+set(EEZE_MODULE_TYPE_SENSOR_TIZEN OFF)
+set(EEZE_MODULE_TYPE_SENSOR_UDEV ON)
+
+CHECK_APPEND_DEFINE(EEZE_MOUNT_BIN \"bla\")
+CHECK_APPEND_DEFINE(EEZE_UNMOUNT_BIN \"bla\")
+CHECK_APPEND_DEFINE(EEZE_EJECT_BIN \"bla\")