aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel@osg.samsung.com>2017-12-12 11:22:47 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-12-20 20:07:26 +0100
commite43f090265f0e42dc1a6d9f2691e0b84971209fa (patch)
tree2f7ab6e18a10b7a4363f53fb270997f07f07cb31
parentmeson - vix ecore wl2 pc generation to not include nonexistent wl lib (diff)
downloadefl-e43f090265f0e42dc1a6d9f2691e0b84971209fa.tar.gz
cmake: remove!
This build was never complete and also was not maintained probebly. It is also dropped in favour of meson which is cool, merged, works & is fast. Differential Revision: https://phab.enlightenment.org/D7010
-rw-r--r--CMakeLists.txt70
-rw-r--r--TODO-cmake.txt67
-rw-r--r--cmake/config/common.cmake124
-rw-r--r--cmake/config/ecore.cmake42
-rw-r--r--cmake/config/ecore_con.cmake14
-rw-r--r--cmake/config/ecore_x.cmake110
-rw-r--r--cmake/config/eeze.cmake24
-rw-r--r--cmake/config/eina.cmake80
-rw-r--r--cmake/config/eldbus.cmake1
-rw-r--r--cmake/config/emile.cmake10
-rw-r--r--cmake/config/eo.cmake3
-rw-r--r--cmake/config/eolian.cmake1
-rw-r--r--cmake/helpers/EflMacros.cmake1790
-rw-r--r--cmake/post/eina.cmake27
-rw-r--r--src/CMakeLists.txt2
-rw-r--r--src/CMakeLists_Eina.txt11
-rw-r--r--src/bin/ecore_con/CMakeLists.txt10
-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/bin/eldbus/CMakeLists.txt15
-rw-r--r--src/bin/embryo/CMakeLists.txt24
-rw-r--r--src/bin/eolian/CMakeLists.txt19
-rw-r--r--src/lib/CMakeLists.txt1
-rw-r--r--src/lib/ecore/CMakeLists.txt104
-rw-r--r--src/lib/ecore_con/CMakeLists.txt133
-rw-r--r--src/lib/ecore_file/CMakeLists.txt29
-rw-r--r--src/lib/ecore_input/CMakeLists.txt22
-rw-r--r--src/lib/ecore_ipc/CMakeLists.txt19
-rw-r--r--src/lib/ecore_x/CMakeLists.txt61
-rw-r--r--src/lib/ector/CMakeLists.txt119
-rw-r--r--src/lib/eet/CMakeLists.txt39
-rw-r--r--src/lib/eeze/CMakeLists.txt67
-rw-r--r--src/lib/efl/CMakeLists.txt93
-rw-r--r--src/lib/eina/CMakeLists.txt176
-rw-r--r--src/lib/eldbus/CMakeLists.txt70
-rw-r--r--src/lib/embryo/CMakeLists.txt21
-rw-r--r--src/lib/emile/CMakeLists.txt45
-rw-r--r--src/lib/eo/CMakeLists.txt29
-rw-r--r--src/lib/eolian/CMakeLists.txt46
-rw-r--r--src/modules/ecore/system/systemd/CMakeLists.txt7
-rw-r--r--src/modules/ecore/system/tizen/CMakeLists.txt3
-rw-r--r--src/modules/ecore/system/upower/CMakeLists.txt7
-rw-r--r--src/modules/eina/mp/chained_pool/CMakeLists.txt5
-rw-r--r--src/modules/eina/mp/one_big/CMakeLists.txt5
-rw-r--r--src/modules/eina/mp/pass_through/CMakeLists.txt5
-rw-r--r--src/static_libs/draw/CMakeLists.txt17
-rw-r--r--src/static_libs/freetype/CMakeLists.txt5
-rw-r--r--src/static_libs/lz4/CMakeLists.txt6
-rw-r--r--src/static_libs/rg_etc/CMakeLists.txt10
-rw-r--r--src/static_libs/triangulator/CMakeLists.txt18
-rw-r--r--src/tests/ecore_con/CMakeLists.txt13
-rw-r--r--src/tests/ector/suite/CMakeLists.txt5
-rw-r--r--src/tests/eet/CMakeLists.txt14
-rw-r--r--src/tests/eeze/CMakeLists.txt12
-rw-r--r--src/tests/eina/CMakeLists.txt66
-rw-r--r--src/tests/eldbus/CMakeLists.txt25
-rw-r--r--src/tests/emile/CMakeLists.txt10
-rw-r--r--src/tests/eo/access/CMakeLists.txt13
-rw-r--r--src/tests/eo/children/CMakeLists.txt9
-rw-r--r--src/tests/eo/composite_objects/CMakeLists.txt11
-rw-r--r--src/tests/eo/constructors/CMakeLists.txt23
-rw-r--r--src/tests/eo/function_overrides/CMakeLists.txt15
-rw-r--r--src/tests/eo/interface/CMakeLists.txt14
-rw-r--r--src/tests/eo/mixin/CMakeLists.txt19
-rw-r--r--src/tests/eo/signals/CMakeLists.txt9
-rw-r--r--src/tests/eo/suite/CMakeLists.txt24
-rw-r--r--src/tests/eolian/CMakeLists.txt19
70 files changed, 0 insertions, 3949 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
deleted file mode 100644
index 48c890e811..0000000000
--- a/CMakeLists.txt
+++ /dev/null
@@ -1,70 +0,0 @@
-cmake_minimum_required(VERSION 3.4)
-
-set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/helpers")
-
-include(GNUInstallDirs)
-include(EflMacros)
-
-EFL_PROJECT(1.18.99)
-
-if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
- message(FATAL_ERROR "In-source builds not allowed. Use: mkdir -p build && cmake -H. -Bbuild")
-endif()
-
-set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}" CACHE PATH "Path to store built libraries")
-set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}" CACHE PATH "Path to store built static libraries")
-set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" CACHE PATH "Path to store built executables")
-
-add_definitions(
- "-DHAVE_CONFIG_H"
- "-DLIB_INSTALL_DIR=\"${LIB_INSTALL_DIR}\""
- "-DEXEC_INSTALL_DIR=\"${EXEC_INSTALL_DIR}\""
- "-DPACKAGE_BIN_DIR=\"${CMAKE_INSTALL_FULL_BINDIR}\""
- "-DPACKAGE_LIB_DIR=\"${CMAKE_INSTALL_FULL_LIBDIR}\""
- "-DPACKAGE_BUILD_DIR=\"${CMAKE_SOURCE_DIR}\""
- "-DPACKAGE_VERSION=\"${PROJECT_VERSION}\""
- )
-
-include_directories(
- ${PROJECT_SOURCE_DIR}/src/lib/efl
- ${PROJECT_BINARY_DIR}/src/lib/efl
- )
-
-include(${CMAKE_SOURCE_DIR}/cmake/config/common.cmake)
-
-EFL_SUPPORT_LIB(lz4)
-EFL_SUPPORT_LIB(draw)
-EFL_SUPPORT_LIB(freetype)
-EFL_SUPPORT_LIB(rg_etc)
-EFL_SUPPORT_LIB(triangulator)
-
-EFL_LIB(eina)
-EFL_LIB(eolian)
-EFL_LIB(eo)
-EFL_LIB(efl)
-EFL_LIB(emile)
-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)
-EFL_LIB(eeze)
-EFL_LIB(ecore_input)
-EFL_LIB(ecore_x)
-
-EFL_OPTIONS_SUMMARY()
-
-# TODO: when autotools is gone, rename this file in repository
-# and remove this copy (using generate to skip @-subst)
-file(GENERATE
- OUTPUT ${PROJECT_BINARY_DIR}/src/lib/efl/config.h
- INPUT ${PROJECT_SOURCE_DIR}/src/lib/efl/config.h.cmake)
-EFL_HEADER_CHECKS_FINALIZE(${PROJECT_BINARY_DIR}/src/lib/efl/config_gen.h)
-
-configure_file(
- ${PROJECT_SOURCE_DIR}/src/lib/efl/Efl_Config.h.cmake
- ${PROJECT_BINARY_DIR}/src/lib/efl/Efl_Config.h)
-EFL_FINALIZE()
diff --git a/TODO-cmake.txt b/TODO-cmake.txt
deleted file mode 100644
index 2cb522f4a4..0000000000
--- a/TODO-cmake.txt
+++ /dev/null
@@ -1,67 +0,0 @@
-Help Cmake build system come true by helping with the following
-tasks. Most of them can be done on top of autotools only, then we'll
-catch-up with the cmake parts.
-
-General (non-CMake specific) Tasks:
-
- - move each target (binary, lib, test) to its own directory, example:
- src/lib/efreet contains efreet_mime and efreet_trash in addition to
- efreet. Create src/lib/efreet_mime and src/lib/efreet_trash.
-
- It also applies to tests (ie: src/tests/ector which contains both
- ector_suite and cxx_compile_test), in the case of binaries and
- tests make sure to contain them in the library folder:
- src/tests/ector should then contain 2 folders, one for each
- test. Another one is src/tests/eo, which contains lots of
- stand-alone tests in addition to eo_suite.
-
- - uniform installation (and lookup!) of modules, like
- lib/evas/modules/engines/NAME/v-1.18/module.so versus
- lib/ecore/system/NAME/v-1.18/module.so (missing 'modules/')
- lib/ecore_evas/engines/NAME/v-1.18/module.so (missing 'modules/')
-
- - uniform module enable variables:
- {LIB}_MODULE_TYPE_{SCOPE}_{MODNAME}_STATIC (static/built-in, with scope)
- {LIB}_MODULE_TYPE_{SCOPE}_{MODNAME}_DYNAMIC (dynamic, with scope)
- {LIB}_MODULE_TYPE_{MODNAME}_STATIC (static/built-in, no scope)
- {LIB}_MODULE_TYPE_{MODNAME}_DYNAMIC (dynamic, no scope)
- Example:
- EINA_MODULE_TYPE_MP_PASS_THROUGH_STATIC
- instead of EINA_STATIC_BUILD_PASS_THROUGH
- EVAS_MODULE_TYPE_ENGINE_FB
- instead of EVAS_STATIC_BUILD_FB
- As this will make clear we're dealing with modules and their scope
- (if any, things like Ecore_IMF have no module scope).
-
-
-CMake Tasks:
-
- - add src/lib/NAME/CMakeLists.txt defining SOURCES, PUBLIC_HEADERS,
- PKG_CONFIG_REQUIRES, PKG_CONFIG_REQUIRES_PRIVATE, LIBRARIES,
- PUBLIC_LIBRARIES and so on. See src/lib/eina/CMakeLists.txt as an
- example.
-
- - add options and dependency detection to cmake/config/NAME.cmake,
- see cmake/config/eina.cmake and cmake/config/common.cmake
-
- - add src/modules/NAME/SCOPE/MODNAME/CMakeLists.txt or
- src/modules/NAME/MODNAME/CMakeLists.txt (if no module scope). If
- single source and no special requiresments (libs, etc), then it
- should require no CMakeLists.txt and will be built automatically.
-
- - add src/bin/NAME/CMakeLists.txt (single binary of a lib) or
- src/bin/NAME/EXE_NAME/CMakeLists.txt (multiple binaries for a lib).
- If single source (one .c), then no CMakeLists.txt should be needed,
- see if it's already being built.
-
- - add src/tests/NAME/CMakeLists.txt (single test of a lib) or
- src/tests/NAME/EXE_NAME/CMakeLists.txt (multiple tests for a lib).
- If single source (one .c), then no CMakeLists.txt should be needed,
- see if it's already being built.
-
-Since it's under development, check the code in cmake/helpers/*.cmake,
-in particular cmake/helpers/EflMacros.cmake and check the comments and
-also fix bugs :-)
-
-Feedback on repetitive tasks and if you spot some
-unification/simplification/automatization.
diff --git a/cmake/config/common.cmake b/cmake/config/common.cmake
deleted file mode 100644
index a4257ebddb..0000000000
--- a/cmake/config/common.cmake
+++ /dev/null
@@ -1,124 +0,0 @@
-include(CheckSymbolExists)
-include(CheckIncludeFile)
-include(CheckTypeSize)
-include(FindPkgConfig)
-include(FindJPEG)
-include(CTest)
-find_package(Threads REQUIRED)
-
-pkg_check_modules(CHECK check)
-pkg_check_modules(LIBSYSTEMD libsystemd)
-pkg_check_modules(VALGRIND valgrind)
-pkg_check_modules(OPENSSL openssl>=1.0)
-pkg_check_modules(GNUTLS gnutls>=2.12.16)
-if (NOT JPEG_FOUND)
- error("a jpeg library is needed.")
-endif()
-
-set(SUGGEST_VALGRIND OFF)
-if("${BUILD_PROFILE}" STREQUAL "dev")
- set(SUGGEST_VALGRIND ${VALGRIND_FOUND})
-elseif("${BUILD_PROFILE}" STREQUAL "debug")
- set(SUGGEST_VALGRIND ${VALGRIND_FOUND})
-endif()
-
-EFL_OPTION(BUILD_PROFILE "How to build EFL" dev CHOICE release;dev;debug)
-EFL_OPTION(EFL_NOLEGACY_API_SUPPORT "Whenever to disable non-Eo (Legacy) APIs" ON)
-EFL_OPTION(EFL_EO_API_SUPPORT "Whenever to enable new Eo APIs" ON)
-if(NOT EFL_EO_API_SUPPORT)
- EFL_OPTION_SET_MESSAGE(EFL_EO_API_SUPPORT "Risky!")
-endif()
-
-EFL_OPTION_BACKEND(WITH_CRYPTO "Choose crypto backend" OPENSSL GNUTLS)
-
-EFL_OPTION(ENABLE_SYSTEMD "Enable systemd support" "${LIBSYSTEMD_FOUND}" DEPENDS "LIBSYSTEMD_FOUND" OFF)
-EFL_OPTION(ENABLE_VALGRIND "Enable valgrind support" "${SUGGEST_VALGRIND}" DEPENDS "VALGRIND_FOUND" OFF)
-
-# BEGIN: HEADER, TYPE and FUNCTION CHECKS
-# KEEP EACH BLOCK SORTED
-
-HEADER_CHECK(alloca.h)
-HEADER_CHECK(asm/hwcap.h)
-HEADER_CHECK(bsd/string.h)
-HEADER_CHECK(dirent.h)
-HEADER_CHECK(execinfo.h)
-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)
-
-FUNC_CHECK(alloca INCLUDE_FILES alloca.h)
-FUNC_CHECK(backtrace INCLUDE_FILES execinfo.h)
-FUNC_CHECK(backtrace_symbols INCLUDE_FILES execinfo.h)
-FUNC_CHECK(clock_gettime INCLUDE_FILES time.h)
-FUNC_CHECK(dirfd INCLUDE_FILES dirent.h sys/types.h)
-FUNC_CHECK(dladdr INCLUDE_FILES dlfcn.h LIBRARIES dl DEFINITIONS "-D_GNU_SOURCE=1")
-FUNC_CHECK(dlopen INCLUDE_FILES dlfcn.h LIBRARIES dl)
-FUNC_CHECK(dlsym INCLUDE_FILES dlfcn.h LIBRARIES dl)
-FUNC_CHECK(fchmod INCLUDE_FILES sys/stat.h)
-FUNC_CHECK(fcntl INCLUDE_FILES fcntl.h)
-FUNC_CHECK(fork INCLUDE_FILES unistd.h)
-FUNC_CHECK(fpathconf INCLUDE_FILES unistd.h)
-FUNC_CHECK(fstatat NAME HAVE_ATFILE_SOURCE INCLUDE_FILES sys/stat.h)
-FUNC_CHECK(geteuid INCLUDE_FILES unistd.h)
-FUNC_CHECK(getpagesize INCLUDE_FILES unistd.h)
-FUNC_CHECK(getpwent INCLUDE_FILES sys/types.h pwd.h)
-FUNC_CHECK(getuid INCLUDE_FILES unistd.h)
-FUNC_CHECK(getxattr INCLUDE_FILES sys/types.h sys/xattr.h)
-FUNC_CHECK(iconv INCLUDE_FILES iconv.h)
-FUNC_CHECK(listxattr INCLUDE_FILES sys/types.h sys/xattr.h)
-FUNC_CHECK(lround INCLUDE_FILES math.h LIBRARIES m)
-FUNC_CHECK(mallinfo INCLUDE_FILES malloc.h)
-FUNC_CHECK(malloc_info INCLUDE_FILES malloc.h)
-FUNC_CHECK(malloc_usable_size INCLUDE_FILES malloc.h)
-FUNC_CHECK(mkdirat INCLUDE_FILES sys/stat.h)
-FUNC_CHECK(mmap INCLUDE_FILES sys/mman.h)
-FUNC_CHECK(mtrace INCLUDE_FILES mcheck.h)
-FUNC_CHECK(prctl INCLUDE_FILES sys/prctl.h)
-FUNC_CHECK(realpath INCLUDE_FILES stdlib.h)
-FUNC_CHECK(sched_getcpu INCLUDE_FILES sched.h DEFINITIONS "-D_GNU_SOURCE=1")
-FUNC_CHECK(setxattr INCLUDE_FILES sys/types.h sys/xattr.h)
-FUNC_CHECK(shm_open INCLUDE_FILES sys/mman.h sys/stat.h fcntl.h LIBRARIES rt)
-FUNC_CHECK(siglongjmp INCLUDE_FILES setjmp.h)
-FUNC_CHECK(splice INCLUDE_FILES fcntl.h DEFINITIONS "-D_GNU_SOURCE=1")
-FUNC_CHECK(strerror_r INCLUDE_FILES string.h)
-
-if(HAVE_BSD_STRING_H)
- FUNC_CHECK(strlcpy INCLUDE_FILES bsd/string.h LIBRARIES bsd)
-else()
- FUNC_CHECK(strlcpy INCLUDE_FILES string.h)
-endif()
-
-TYPE_CHECK(siginfo_t INCLUDE_FILES signal.h)
-
-# END: HEADER, TYPE and FUNCTION CHECKS
-
-# TODO: move to a FindUnwind.cmake?
-# or is pkg-config enough these days?
-pkg_check_modules(UNWIND libunwind libunwind-generic)
-
-CHECK_APPEND_DEFINE(EFL_EO_API_SUPPORT 1)
-CHECK_APPEND_DEFINE(EFL_BETA_API_SUPPORT 1)
-if(CMAKE_THREAD_LIBS_INIT)
- set(EFL_HAVE_THREADS 1)
-endif()
-CHECK_APPEND_DEFINE(EFL_HAVE_THREADS "${EFL_HAVE_THREADS}")
-
-CHECK_APPEND_DEFINE(HAVE_CIPHER ${WITH_CRYPTO_ENABLED})
-CHECK_APPEND_DEFINE(HAVE_SIGNATURE ${WITH_CRYPTO_ENABLED})
-CHECK_APPEND_DEFINE(HAVE_SYSTEMD ${ENABLE_SYSTEMD})
-
-CHECK_APPEND_DEFINE(MODULE_ARCH "\"v-${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}\"")
-CHECK_APPEND_DEFINE(SHARED_LIB_SUFFIX "\"${CMAKE_SHARED_LIBRARY_SUFFIX}\"")
-CHECK_APPEND_DEFINE(EXEEXT "\"${CMAKE_EXECUTABLE_SUFFIX}\"")
-
-# TODO: change code and remove:
-CHECK_APPEND_DEFINE(VMAJ ${PROJECT_VERSION_MAJOR})
-CHECK_APPEND_DEFINE(VMIN ${PROJECT_VERSION_MINOR})
-CHECK_APPEND_DEFINE(VMIC ${PROJECT_VERSION_PATCH})
-CHECK_APPEND_DEFINE(VREV ${PROJECT_VERSION_TWEAK})
-
diff --git a/cmake/config/ecore.cmake b/cmake/config/ecore.cmake
deleted file mode 100644
index c8cec4e8c1..0000000000
--- a/cmake/config/ecore.cmake
+++ /dev/null
@@ -1,42 +0,0 @@
-pkg_check_modules(GLIB glib-2.0)
-pkg_check_modules(TIZEN vconf)
-
-EFL_OPTION(ENABLE_GLIB "Whenever to integrate with Glib" ${GLIB_FOUND} DEPENDS GLIB_FOUND OFF)
-
-EFL_OPTION(ENABLE_GLIB_ALWAYS "Always integrate with Glib, otheriwse needs explicit call to ecore_main_loop_glib_integrate()" OFF DEPENDS "ENABLE_GLIB" OFF)
-
-EFL_OPTION(ENABLE_G_MAIN_LOOP "Enable ecore_main_loop based on g_main_loop" OFF DEPENDS "ENABLE_GLIB" OFF)
-
-EFL_OPTION(ENABLE_TIZEN "Enable tizen support" OFF DEPENDS "TIZEN_FOUND" OFF)
-
-set(ECORE_MODULE_TYPE_SYSTEM_SYSTEMD_DEFAULT ${ENABLE_SYSTEMD})
-set(ECORE_MODULE_TYPE_SYSTEM_UPOWER_DEFAULT ON)
-set(ECORE_MODULE_TYPE_SYSTEM_TIZEN_DEFAULT ${ENABLE_TIZEN})
-
-# TODO libuv
-# TODO gstreamer
-# TODO gstreamer1
-
-if("${BUILD_PROFILE}" STREQUAL "dev" AND HAVE_BACKTRACE)
- CHECK_APPEND_DEFINE(WANT_ECORE_TIMER_DUMP 1)
-else()
- CHECK_APPEND_DEFINE(WANT_ECORE_TIMER_DUMP "")
-endif()
-
-CHECK_APPEND_DEFINE(GLIB_INTEGRATION_ALWAYS "${ENABLE_GLIB_ALWAYS}")
-CHECK_APPEND_DEFINE(HAVE_GLIB "${ENABLE_GLIB}")
-CHECK_APPEND_DEFINE(HAVE_TIZEN_CONFIGURATION_MANAGER "${ENABLE_TIZEN}")
-CHECK_APPEND_DEFINE(USE_G_MAIN_LOOP "${ENABLE_G_MAIN_LOOP}")
-
-FUNC_CHECK(epoll_create NAME HAVE_EPOLL INCLUDE_FILES sys/epoll.h)
-FUNC_CHECK(execvp INCLUDE_FILES unistd.h)
-FUNC_CHECK(gettimeofday INCLUDE_FILES sys/time.h)
-FUNC_CHECK(isfinite INCLUDE_FILES math.h LIBRARIES m)
-FUNC_CHECK(pause INCLUDE_FILES unistd.h)
-FUNC_CHECK(timerfd_create INCLUDE_FILES sys/timerfd.h)
-
-HEADER_CHECK(ieeefp.h)
-HEADER_CHECK(langinfo.h)
-HEADER_CHECK(sys/epoll.h)
-HEADER_CHECK(sys/timerfd.h)
-HEADER_CHECK(sys/wait.h)
diff --git a/cmake/config/ecore_con.cmake b/cmake/config/ecore_con.cmake
deleted file mode 100644
index 487cb46f2b..0000000000
--- a/cmake/config/ecore_con.cmake
+++ /dev/null
@@ -1,14 +0,0 @@
-EFL_OPTION(WITH_EFL_NET_CONTROL_BACKEND "Choose the Efl.Net.Control backend" "connman" CHOICE connman;none)
-
-FUNC_CHECK(accept4 INCLUDE_FILES sys/types.h sys/socket.h DEFINITIONS "-D_GNU_SOURCE=1")
-FUNC_CHECK(gmtime_r INCLUDE_FILES time.h DEFINITIONS "-D_POSIX_C_SOURCE=1 -D_BSD_SOURCE=1 -D_SVID_SOURCE=1")
-
-HEADER_CHECK(arpa/inet.h)
-HEADER_CHECK(net/if.h)
-HEADER_CHECK(netinet/in.h)
-HEADER_CHECK(netinet/ssl.h)
-HEADER_CHECK(netinet/tcp.h)
-HEADER_CHECK(netinet/udp.h)
-HEADER_CHECK(sys/socket.h)
-HEADER_CHECK(sys/un.h)
-HEADER_CHECK(ws2tcpip.h)
diff --git a/cmake/config/ecore_x.cmake b/cmake/config/ecore_x.cmake
deleted file mode 100644
index e95e6b2aba..0000000000
--- a/cmake/config/ecore_x.cmake
+++ /dev/null
@@ -1,110 +0,0 @@
-include(FindX11)
-
-EFL_OPTION(XGESTURE "Whenever you want ecore_x to use gesture" OFF)
-EFL_OPTION(XPRESENT "Whenever you want ecore_x to use xpresent" OFF)
-EFL_OPTION(XINPUT2 "Whenever you want ecore_x to use xinput2" ON)
-EFL_OPTION(XINPUT22 "Whenever you want ecore_x to use xinput22" OFF)
-
-#the rest is just statically enabled
-CHECK_APPEND_DEFINE(HAVE_ECORE_X_XLIB ON)
-CHECK_APPEND_DEFINE(ECORE_XKB ON)
-CHECK_APPEND_DEFINE(ECORE_XCOMPOSITE ON)
-CHECK_APPEND_DEFINE(ECORE_XDAMAGE ON)
-CHECK_APPEND_DEFINE(ECORE_XDPMS ON)
-CHECK_APPEND_DEFINE(ECORE_XFIXES ON)
-CHECK_APPEND_DEFINE(ECORE_XINERAMA ON)
-CHECK_APPEND_DEFINE(ECORE_XRANDR ON)
-CHECK_APPEND_DEFINE(ECORE_XSS ON)
-CHECK_APPEND_DEFINE(ECORE_XTEST ON)
-
-#FindX11 does not cover all parts we need so here are the 4 extensions we need to check
-
-#copied from https://github.com/Kitware/CMake/blob/master/Modules/FindX11.cmake#L65
-set(X11_INC_SEARCH_PATH
- /usr/pkg/xorg/include
- /usr/X11R6/include
- /usr/X11R7/include
- /usr/include/X11
- /usr/openwin/include
- /usr/openwin/share/include
- /opt/graphics/OpenGL/include
- /opt/X11/include
-)
-
-set(X11_LIB_SEARCH_PATH
- /usr/pkg/xorg/lib
- /usr/X11R6/lib
- /usr/X11R7/lib
- /usr/openwin/lib
- /opt/X11/lib
-)
-
-macro(find_lib_and_include name path lib)
- string(TOUPPER ${name} ecore_name)
- set(X11_${name}_FOUND OFF)
- find_library(X11_${name}_LIB ${lib} ${X11_LIB_SEARCH_PATH})
- find_path(X11_${name}_INCLUDE_PATH X11/extensions/${path} ${X11_INC_SEARCH_PATH})
- if (X11_${name}_LIB AND X11_${name}_INCLUDE_PATH)
- set(X11_${name}_FOUND ON)
- endif()
-
- CHECK_APPEND_DEFINE(ECORE_${ecore_name} ON)
-endmacro()
-
-if (${XGESTURE})
- find_lib_and_include(XGesture gesture.h Xgesture)
-endif()
-
-if(${XPRESENT})
- find_lib_and_include(Xpresent Xpresent.h Xpresent)
-endif()
-
-if(${XINPUT2})
- find_lib_and_include(Xi2 XInput2.h Xi)
-endif()
-
-if(${XINPUT22})
- find_lib_and_include(Xi2_2 Xpresent2.h Xi)
-endif()
-
-#build a list of all components we use
-set(_X_EXTENSIONS
- X11
- X11_Xkb
- X11_Xcomposite
- X11_Xdamage
- X11_dpms
- X11_Xfixes
- X11_Xinerama
- X11_Xrandr
- X11_Xrender
- X11_XTest
- X11_Xscreensaver
-)
-
-if(${XGESTURE})
- list(APPEND _X_EXTENSIONS X11_Xgesture)
-endif()
-
-if(${XPRESENT})
- list(APPEND _X_EXTENSIONS X11_Xpresent)
-endif()
-
-if(${XINPUT2})
- list(APPEND _X_EXTENSIONS X11_Xi2)
-endif()
-
-if(${XINPUT22})
- list(APPEND _X_EXTENSIONS X11_Xi2_2)
-endif()
-
-foreach(ext ${_X_EXTENSIONS})
- if (NOT ${ext}_FOUND)
- message(FATAL_ERROR "Xserver extension ${ext} not found")
- endif()
- list(APPEND X_EXTENSIONS find-${ext})
-endforeach()
-
-configure_file(
- ${PROJECT_SOURCE_DIR}/src/lib/ecore_x/ecore_x_version.h.cmake
- ${PROJECT_BINARY_DIR}/src/lib/ecore_x/ecore_x_version.h)
diff --git a/cmake/config/eeze.cmake b/cmake/config/eeze.cmake
deleted file mode 100644
index 2ca67716a9..0000000000
--- a/cmake/config/eeze.cmake
+++ /dev/null
@@ -1,24 +0,0 @@
-
-#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\")
diff --git a/cmake/config/eina.cmake b/cmake/config/eina.cmake
deleted file mode 100644
index 8ba59bb21a..0000000000
--- a/cmake/config/eina.cmake
+++ /dev/null
@@ -1,80 +0,0 @@
-
-# set default option values based on BUILD_PROFILE
-set(EINA_DEBUG_THREADS OFF)
-if("${BUILD_PROFILE}" STREQUAL "dev")
-elseif("${BUILD_PROFILE}" STREQUAL "debug")
- set(EINA_DEBUG_THREADS ON)
-elseif("${BUILD_PROFILE}" STREQUAL "release")
-endif()
-
-EFL_OPTION(EINA_MAGIC_DEBUG "magic debug of eina structure" ON)
-EFL_OPTION(EINA_DEBUG_THREADS "debugging of eina threads" ${EINA_DEBUG_THREADS})
-
-set(EINA_MODULE_TYPE_MP_CHAINED_POOL_DEFAULT "STATIC")
-set(EINA_MODULE_TYPE_MP_ONE_BIG_DEFAULT "STATIC")
-set(EINA_MODULE_TYPE_MP_PASS_THROUGH_DEFAULT "STATIC")
-
-# no CHECK_INIT() yet, all CHECK_APPEND_DEFINE(), FUNC_CHECK(),
-# HEADER_CHECK() and TYPE_CHECK() goes to src/lib/efl/config_gen.h
-
-if(ENABLE_VALGRIND)
- CHECK_APPEND_DEFINE(NVALGRIND "")
-else()
- CHECK_APPEND_DEFINE(NVALGRIND 1)
-endif()
-
-
-# we want the following checks inside src/lib/eina/eina_config.h to be
-# generated from cmake/post/eina.cmake.
-#
-# By default all symbols are prefixed with EINA_
-CHECK_INIT(eina)
-
-if("${BUILD_PROFILE}" STREQUAL "dev")
-elseif("${BUILD_PROFILE}" STREQUAL "debug")
- set(EINA_STRINGSHARE_USAGE ON)
- set(EINA_DEBUG_MALLOC ON)
- set(EINA_COW_MAGIC_ON ON)
- set(EINA_DEFAULT_MEMPOOL ON)
- set(EINA_DEBUG_MALLOC ON)
-elseif("${BUILD_PROFILE}" STREQUAL "release")
- set(EINA_LOG_LEVEL_MAXIMUM 3)
-endif()
-
-CHECK_APPEND_DEFINE(EINA_MAGIC_DEBUG ${EINA_MAGIC_DEBUG})
-CHECK_APPEND_DEFINE(EINA_SAFETY_CHECKS 1)
-CHECK_APPEND_DEFINE(EINA_DEBUG_THREADS "${EINA_DEBUG_THREADS}")
-CHECK_APPEND_DEFINE(EINA_STRINGSHARE_USAGE "${EINA_STRINGSHARE_USAGE}")
-CHECK_APPEND_DEFINE(EINA_DEBUG_MALLOC "${EINA_DEBUG_MALLOC}")
-CHECK_APPEND_DEFINE(EINA_COW_MAGIC_ON "${EINA_COW_MAGIC_ON}")
-CHECK_APPEND_DEFINE(EINA_DEFAULT_MEMPOOL "${EINA_DEFAULT_MEMPOOL}")
-CHECK_APPEND_DEFINE(EINA_DEBUG_MALLOC "${EINA_DEBUG_MALLOC}")
-CHECK_APPEND_DEFINE(EINA_LOG_LEVEL_MAXIMUM "${EINA_LOG_LEVEL_MAXIMUM}")
-CHECK_APPEND_DEFINE(EINA_HAVE_THREADS "${EFL_HAVE_THREADS}")
-
-#check for symbols in pthread
-#TODO Make the definitions depending on the platform
-FUNC_CHECK(pthread_barrier_init NAME EINA_HAVE_PTHREAD_BARRIER INCLUDE_FILES pthread.h FLAGS ${CMAKE_THREAD_LIBS_INIT} DEFINITIONS "-D_GNU_SOURCE=1")
-FUNC_CHECK(pthread_attr_setaffinity_np NAME EINA_HAVE_PTHREAD_AFFINITY INCLUDE_FILES pthread.h FLAGS ${CMAKE_THREAD_LIBS_INIT} DEFINITIONS "-D_GNU_SOURCE=1")
-FUNC_CHECK(pthread_setname_np NAME EINA_HAVE_PTHREAD_SETNAME INCLUDE_FILES pthread.h FLAGS ${CMAKE_THREAD_LIBS_INIT} DEFINITIONS "-D_GNU_SOURCE=1")
-FUNC_CHECK(pthread_spin_init NAME EINA_HAVE_POSIX_SPINLOCK INCLUDE_FILES pthread.h FLAGS ${CMAKE_THREAD_LIBS_INIT} DEFINITIONS "-D_GNU_SOURCE=1")
-
-#check for eina header files that are required
-HEADER_CHECK(alloca.h)
-HEADER_CHECK(byteswap.h)
-HEADER_CHECK(fnmatch.h)
-#only enable log when fnmatch is there
-CHECK_APPEND_DEFINE(EINA_ENABLE_LOG ${EINA_HAVE_FNMATCH_H})
-HEADER_CHECK(dirent.h)
-
-TYPE_CHECK(wchar_t)
-TYPE_CHECK(uintptr_t)
-TYPE_CHECK(wchar_t)
-
-# TODO: fix define name to not need a name!
-#check for swap16/32/64
-FUNC_CHECK(bswap_16 NAME EINA_HAVE_BSWAP16 INCLUDE_FILES byteswap.h)
-FUNC_CHECK(bswap_32 NAME EINA_HAVE_BSWAP32 INCLUDE_FILES byteswap.h)
-FUNC_CHECK(bswap_64 NAME EINA_HAVE_BSWAP64 INCLUDE_FILES byteswap.h)
-
-#Check if there is the alloca header
diff --git a/cmake/config/eldbus.cmake b/cmake/config/eldbus.cmake
deleted file mode 100644
index cb8eeaa5d5..0000000000
--- a/cmake/config/eldbus.cmake
+++ /dev/null
@@ -1 +0,0 @@
-pkg_check_modules(DBUS dbus-1 REQUIRED)
diff --git a/cmake/config/emile.cmake b/cmake/config/emile.cmake
deleted file mode 100644
index e8c7359cbb..0000000000
--- a/cmake/config/emile.cmake
+++ /dev/null
@@ -1,10 +0,0 @@
-pkg_check_modules(LZ4 liblz4)
-
-set(_choices "internal")
-set(_defval "internal")
-if(LZ4_FOUND)
- set(_choices system internal)
- set(_defval system)
-endif()
-
-EFL_OPTION(WITH_LZ4 "Choose if system or internal liblz4 should be used" ${_defval} CHOICE ${_choices})
diff --git a/cmake/config/eo.cmake b/cmake/config/eo.cmake
deleted file mode 100644
index e468b8d10c..0000000000
--- a/cmake/config/eo.cmake
+++ /dev/null
@@ -1,3 +0,0 @@
-EFL_OPTION(HAVE_EO_ID "Have Eo id indirection" ON)
-
-CHECK_APPEND_DEFINE(HAVE_EO_ID ${HAVE_EO_ID})
diff --git a/cmake/config/eolian.cmake b/cmake/config/eolian.cmake
deleted file mode 100644
index ec69256317..0000000000
--- a/cmake/config/eolian.cmake
+++ /dev/null
@@ -1 +0,0 @@
-EFL_OPTION(EOLIAN_BIN "The eolian_gen binary to use" ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/eolian_gen FILEPATH)
diff --git a/cmake/helpers/EflMacros.cmake b/cmake/helpers/EflMacros.cmake
deleted file mode 100644
index 98ac3f7392..0000000000
--- a/cmake/helpers/EflMacros.cmake
+++ /dev/null
@@ -1,1790 +0,0 @@
-# NOTE:
-#
-# - Use function() whenever possible, macro() doesn't start a new
-# variable scope and needs careful handling to avoid left overs.
-#
-# - To 'export' values or lists, use the macros SET_GLOBAL() and
-# LIST_APPEND_GLOBAL().
-#
-
-# LIST_APPEND_GLOBAL(Var Element)
-#
-# Append to a list in the global variable scope (cache internal)
-function(LIST_APPEND_GLOBAL _var _element)
- set(_local ${${_var}})
- list(APPEND _local ${_element})
- set(${_var} ${_local} CACHE INTERNAL "")
-endfunction()
-
-# SET_GLOBAL(Var Value [Help])
-#
-# Set a variable in the global variable scope (cache internal)
-function(SET_GLOBAL _var _value)
- set(${_var} "${_value}" CACHE INTERNAL "${ARGN}")
-endfunction()
-
-unset(EFL_ALL_OPTIONS CACHE)
-unset(EFL_ALL_LIBS CACHE)
-unset(EFL_ALL_TESTS CACHE)
-unset(EFL_PKG_CONFIG_MISSING_OPTIONAL CACHE)
-
-# EFL_OPTION_BACKEND(Name Help Backend1 ... BackendN
-# [DEPENDS "COND1; COND2; NOT COND3" FAILED_VALUE]
-# [REQUIRED])
-#
-# Wrapper around EFL_OPTION() and EFL_BACKEND_CHOICES()
-# that creates an option 'CHOICE' within possible backends
-# when these are found (${Backend}_FOUND).
-#
-# The REQUIRED keyword will force a valid backend, otherwise 'none' is
-# allowed.
-#
-# If a backend was chose, then ${Name}_CFLAGS and ${Name}_LDFLAGS are
-# set to lists based on ${Backend}_CFLAGS or
-# ${Backend}_INCLUDE_DIR/${Backend}_INCLUDE_DIRS and
-# ${Backend}_LDFLAGS or ${Backend}_LIBRARIES
-function(EFL_OPTION_BACKEND _name _help)
- cmake_parse_arguments(PARAMS "" "" "DEPENDS" ${ARGN})
-
- EFL_BACKEND_CHOICES(${_name} ${PARAMS_UNPARSED_ARGUMENTS})
-
- EFL_OPTION(${_name} "${_help}" "${${_name}_DEFAULT}"
- CHOICE ${${_name}_CHOICES}
- DEPENDS ${PARAMS_DEPENDS})
-
- if(NOT ${_name} STREQUAL "none")
- string(TOUPPER "${${_name}}" _backend)
- if(DEFINED ${_backend}_CFLAGS)
- set(_cflags ${${_backend}_CFLAGS})
- else()
- set(_cflags "")
- foreach(_d ${${_backend}_INCLUDE_DIR} ${${_backend}_INCLUDE_DIRS})
- list(APPEND _cflags "-I${_d}")
- endforeach()
- endif()
- if(DEFINED ${_backend}_LDFLAGS)
- set(_ldflags ${${_backend}_LDFLAGS})
- else()
- set(_ldflags "")
- foreach(_d ${${_backend}_LIBRARIES})
- list(APPEND _ldflags "-l${_d}")
- endforeach()
- else()
- endif()
- SET_GLOBAL(${_name}_CFLAGS "${_cflags}")
- SET_GLOBAL(${_name}_LDFLAGS "${_ldflags}")
- SET_GLOBAL(${_name}_ENABLED ON)
- else()
- unset(${_name}_CFLAGS CACHE)
- unset(${_name}_LDFLAGS CACHE)
- SET_GLOBAL(${_name}_ENABLED OFF)
- endif()
-endfunction()
-
-# EFL_OPTION(Name Help Default [STRING|BOOL|FILEPATH|PATH]
-# [CHOICE c1;...;cN]
-# [DEPENDS "COND1; COND2; NOT COND3" FAILED_VALUE])
-#
-# Declare an option() that will be automatically printed by
-# EFL_OPTIONS_SUMMARY()
-#
-# To extend the EFL_OPTIONS_SUMMARY() message, use
-# EFL_OPTION_SET_MESSAGE(Name Message)
-function(EFL_OPTION _name _help _defval)
-
- cmake_parse_arguments(PARAMS "" "" "CHOICE;DEPENDS" ${ARGN})
-
- set(_type)
- set(_vartype)
- set(_choices)
-
- list(LENGTH PARAMS_UNPARSED_ARGUMENTS _argc)
- if(_argc LESS 1)
- set(_type BOOL)
- set(_vartype BOOL)
- else()
- list(GET PARAMS_UNPARSED_ARGUMENTS 0 _type)
- set(_vartype ${_type})
- list(REMOVE_AT PARAMS_UNPARSED_ARGUMENTS 0)
- endif()
-
- if(PARAMS_CHOICE)
- set(_type CHOICE)
- set(_vartype STRING)
- SET_GLOBAL(EFL_OPTION_CHOICES_${_name} "${PARAMS_CHOICE}" "Possible values for ${_name}")
- set(_choices " (Choices: ${PARAMS_CHOICE})")
- endif()
-
- if(_type STREQUAL "BOOL")
- # force ON/OFF representation
- if(_defval)
- set(_defval ON)
- else()
- set(_defval OFF)
- endif()
- endif()
-
- if(EFL_LIB_CURRENT)
- if(NOT DEFINED EFL_ALL_OPTIONS_${EFL_LIB_CURRENT})
- LIST_APPEND_GLOBAL(EFL_ALL_OPTIONS EFL_ALL_OPTIONS_${EFL_LIB_CURRENT})
- endif()
- LIST_APPEND_GLOBAL(EFL_ALL_OPTIONS_${EFL_LIB_CURRENT} ${_name})
- else()
- LIST_APPEND_GLOBAL(EFL_ALL_OPTIONS ${_name})
- endif()
-
- SET_GLOBAL(EFL_OPTION_DEFAULT_${_name} "${_defval}" "Default value for ${_name}")
- SET_GLOBAL(EFL_OPTION_TYPE_${_name} "${_vartype}" "Type of ${_name}")
-
- set(_available ON)
- if(PARAMS_DEPENDS)
- list(LENGTH PARAMS_DEPENDS _count)
- list(GET PARAMS_DEPENDS 0 _deps)
- list(GET PARAMS_DEPENDS 1 _deps_failure_value)
- if(_deps_failure_value STREQUAL "NOTFOUND")
- message(FATAL_ERROR "EFL_OPTION(${_name}) has DEPENDS but no value when dependencies fail")
- endif()
-
- set(_missing_deps "")
- foreach(_d ${_deps})
- if(${_d})
- else()
- set(_available OFF)
- list(APPEND _missing_deps "${_d}")
- endif()
- endforeach()
- endif()
-
- if(_available)
- if(DEFINED EFL_OPTION_ORIGINAL_VALUE_${_name})
- set(${_name} ${EFL_OPTION_ORIGINAL_VALUE_${_name}} CACHE ${_type} "${_help}${_choices}" FORCE)
- unset(EFL_OPTION_ORIGINAL_VALUE_${_name} CACHE)
- else()
- set(${_name} ${_defval} CACHE ${_type} "${_help}${_choices}")
- endif()
- unset(EFL_OPTION_DEPENDS_MISSING_${_name} CACHE)
- option(${_name} "${_help}${_choices}" "${${_name}}")
- else()
- if(NOT DEFINED EFL_OPTION_ORIGINAL_VALUE_${_name})
- if(DEFINED ${_name})
- SET_GLOBAL(EFL_OPTION_ORIGINAL_VALUE_${_name} "${${_name}}")
- endif()
- endif()
- SET_GLOBAL(EFL_OPTION_DEPENDS_MISSING_${_name} "${_missing_deps}")
- set(${_name} "${_deps_failure_value}" CACHE "${_type}" "Missing dependencies (${_help}${_choices})" FORCE)
- endif()
-
- if(_choices)
- list(FIND PARAMS_CHOICE "${${_name}}" _ret)
- if(${_ret} EQUAL -1)
- message(FATAL_ERROR "Invalid choice ${_name}=${${_name}}${_choices}")
- endif()
- endif()
-endfunction()
-
-# EFL_OPTION_SET_MESSAGE(Name Message)
-#
-# Extends the summary line output by EFL_OPTIONS_SUMMARY()
-# with more details.
-function(EFL_OPTION_SET_MESSAGE _name _message)
- SET_GLOBAL(EFL_OPTION_MESSAGE_${_name} "${_message}")
-endfunction()
-
-
-# _EFL_OPTIONS_SUMMARY_INTERNAL(Prefix Option)
-#
-# Internal function for EFL_OPTIONS_SUMMARY().
-function(_EFL_OPTIONS_SUMMARY_INTERNAL _prefix _o)
- set(_v ${${_o}})
- set(_d ${EFL_OPTION_DEFAULT_${_o}})
- if(EFL_OPTION_DEPENDS_MISSING_${_o})
- set(_i "requires: ${EFL_OPTION_DEPENDS_MISSING_${_o}}, was: ${EFL_OPTION_ORIGINAL_VALUE_${_o}}")
- elseif("${_v}" STREQUAL "${_d}")
- set(_i "default")
- else()
- set(_i "default: ${_d}")
- endif()
- if(EFL_OPTION_MESSAGE_${_o})
- set(_m " [${EFL_OPTION_MESSAGE_${_o}}]")
- else()
- set(_m)
- endif()
- message(STATUS "${_prefix}${_o}=${_v} (${_i})${_m}")
-endfunction()
-
-# EFL_OPTIONS_SUMMARY()
-# Shows the summary of options, their values and related messages.
-function(EFL_OPTIONS_SUMMARY)
- message(STATUS "EFL ${PROJECT_VERSION} Options Summary:")
- message(STATUS " CMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}")
- message(STATUS " CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}")
- foreach(_o ${EFL_ALL_OPTIONS})
- if(_o MATCHES "^EFL_ALL_OPTIONS_")
- string(REGEX REPLACE "^EFL_ALL_OPTIONS_" "" _name "${_o}")
- message(STATUS "")
- message(STATUS " ${_name} options:")
- foreach(_so ${${_o}})
- _EFL_OPTIONS_SUMMARY_INTERNAL(" " ${_so})
- endforeach()
- else()
- _EFL_OPTIONS_SUMMARY_INTERNAL(" " ${_o})
- endif()
- endforeach()
- message(STATUS "")
- message(STATUS "EFL Libraries:")
- foreach(_o ${EFL_ALL_LIBS})
- message(STATUS " ${_o}${_mods}")
- foreach(_m ${${_o}_MODULES})
- string(REGEX REPLACE "^${_o}-module-" "" _m ${_m})
- message(STATUS " dynamic: ${_m}")
- endforeach()
- foreach(_m ${${_o}_STATIC_MODULES})
- string(REGEX REPLACE "^${_o}-module-" "" _m ${_m})
- message(STATUS " static.: ${_m}")
- endforeach()
- unset(_m)
- endforeach()
-
- if(EFL_PKG_CONFIG_MISSING_OPTIONAL)
- message(STATUS "")
- message(STATUS "The following pkg-config optional modules are missing:")
- foreach(_m ${EFL_PKG_CONFIG_MISSING_OPTIONAL})
- message(STATUS " ${_m}")
- endforeach()
- unset(_m)
- endif()
-endfunction()
-
-set(EFL_ALL_LIBS)
-set(EFL_ALL_TESTS)
-
-# EFL_FINALIZE()
-#
-# Finalize EFL processing, adding extra targets.
-function(EFL_FINALIZE)
- add_custom_target(all-libs DEPENDS ${EFL_ALL_LIBS})
- add_custom_target(all-tests DEPENDS ${EFL_ALL_TESTS})
-endfunction()
-
-set(VAR_HEADER_FILE_CONTENT HEADER_FILE_CONTENT CACHE INTERNAL "")
-unset(${VAR_HEADER_FILE_CONTENT} CACHE)
-unset(CHECK_SCOPE CACHE)
-unset(CHECK_SCOPE_UPPERCASE CACHE)
-
-# CHECK_INIT(scope)
-#
-# Initialize the scope for the following FUNC_CHECK, TYPE_CHECK,
-# HEADER_CHECK... calls.
-function(CHECK_INIT scope)
- set(CHECK_SCOPE scope CACHE INTERNAL "Scope of current *_CHECK functions")
- if(scope)
- string(TOUPPER ${scope} scope_uc)
- SET_GLOBAL(CHECK_SCOPE_UPPERCASE ${scope_uc})
- set(_suffix "_${scope_uc}")
- else()
- set(_suffix "")
- endif()
- SET_GLOBAL(VAR_HEADER_FILE_CONTENT HEADER_FILE_CONTENT${_suffix})
- SET_GLOBAL(${VAR_HEADER_FILE_CONTENT} "")
-endfunction()
-
-# CHECK_APPEND_DEFINE(name value)
-#
-# If value evaluates to true:
-# #define ${name} ${value}
-# otherwise:
-# /* #undef ${name} */
-#
-# NOTE: ${name} is not modified at all, if it must include
-# CHECK_SCOPE_UPPERCASE or CHECK_SCOPE, do it yourself.
-function(CHECK_APPEND_DEFINE name value)
- SET_GLOBAL(${VAR_HEADER_FILE_CONTENT} "${${VAR_HEADER_FILE_CONTENT}}#ifdef ${name}\n#undef ${name}\n#endif\n")
- if(value)
- if(value STREQUAL ON OR value STREQUAL TRUE)
- set(value 1)
- endif()
- SET_GLOBAL(${VAR_HEADER_FILE_CONTENT} "${${VAR_HEADER_FILE_CONTENT}}#define ${name} ${value}\n\n")
- else()
- SET_GLOBAL(${VAR_HEADER_FILE_CONTENT} "${${VAR_HEADER_FILE_CONTENT}}/* #undef ${name} */\n\n")
- endif()
-endfunction()
-
-# CHECK_NAME_DEFAULT(name variable)
-#
-# Create the default name based on ${name}
-# and stores in ${variable}.
-#
-# This will automatically prepend ${CHECK_SCOPE_UPPERCASE} if it's
-# defined, will translate everything to uppercase and fix it to be a
-# valid C-symbol.
-function(CHECK_NAME_DEFAULT name var)
- string(TOUPPER ${name} v)
- string(REGEX REPLACE "[^a-zA-Z0-9]" "_" v "${v}")
- string(REGEX REPLACE "_{2,}" "_" v "${v}")
- if(CHECK_SCOPE_UPPERCASE)
- set(v "${CHECK_SCOPE_UPPERCASE}_${v}")
- endif()
- set(${var} ${v} PARENT_SCOPE)
-endfunction()
-
-# HEADER_CHECK(header [NAME variable] [INCLUDE_FILES extra1.h .. extraN.h])
-#
-# Check if the header file exists, in such case define variable
-# in configuration file.
-#
-# Variable defaults to HAVE_${HEADER}, where HEADER is the uppercase
-# representation of the first parameter. It can be overridden using
-# NAME keyword.
-#
-# To include extra files, then use INCLUDE_FILES keyword.
-function(HEADER_CHECK header)
- CHECK_NAME_DEFAULT(HAVE_${header} var)
-
- cmake_parse_arguments(PARAMS "" "NAME" "INCLUDE_FILES" ${ARGN})
-
- if(PARAMS_NAME)
- set(var ${PARAMS_NAME})
- endif()
-
- set(CMAKE_EXTRA_INCLUDE_FILES "${PARAMS_INCLUDE_FILES}")
-
- CHECK_INCLUDE_FILE(${header} ${var})
- CHECK_APPEND_DEFINE(${var} "${${var}}")
-endfunction()
-
-# FUNC_CHECK(func [NAME variable]
-# [INCLUDE_FILES header1.h .. headerN.h]
-# [LIBRARIES lib1 ... libN]
-# [DEFINITIONS -DA=1 .. -DN=123]
-# [FLAGS -cmdlineparam1 .. -cmdlineparamN]
-# [CXX])
-#
-# Check if the function exists, in such case define variable in
-# configuration file.
-#
-# Variable defaults to HAVE_${FUNC}, where FUNC is the uppercase
-# representation of the first parameter. It can be overridden using
-# NAME keyword.
-#
-# To define include files use INCLUDE_FILES keyword.
-#
-# To use C++ compiler, use CXX keyword
-function(FUNC_CHECK func)
- CHECK_NAME_DEFAULT(HAVE_${func} var)
-
- cmake_parse_arguments(PARAMS "CXX" "NAME" "INCLUDE_FILES;LIBRARIES;DEFINITIONS;FLAGS" ${ARGN})
-
- set(CMAKE_REQUIRED_LIBRARIES "${PARAMS_LIBRARIES}")
- set(CMAKE_REQUIRED_DEFINITIONS "${PARAMS_DEFINITIONS}")
- set(CMAKE_REQUIRED_FLAGS "${PARAMS_FLAGS}")
-
- if(PARAMS_NAME)
- set(var ${PARAMS_NAME})
- endif()
-
- if(PARAMS_CXX)
- check_cxx_symbol_exists(${func} "${PARAMS_INCLUDE_FILES}" ${var})
- else()
- check_symbol_exists(${func} "${PARAMS_INCLUDE_FILES}" ${var})
- endif()
-
- CHECK_APPEND_DEFINE(${var} "${${var}}")
-endfunction()
-
-# TYPE_CHECK(type [NAME variable] [SIZEOF variable]
-# [INCLUDE_FILES file1.h ... fileN.h]
-# [LIBRARIES lib1 ... libN]
-# [DEFINITIONS -DA=1 .. -DN=123]
-# [FLAGS -cmdlineparam1 .. -cmdlineparamN]
-# [CXX])
-#
-# Check if the type exists and its size, in such case define variable
-# in configuration file.
-#
-# Variable defaults to HAVE_${TYPE}, where TYPE is the uppercase
-# representation of the first parameter. It can be overridden using
-# NAME keyword.
-#
-# To define include files use INCLUDE_FILES keyword.
-#
-# To use C++ compiler, use CXX keyword
-function(TYPE_CHECK type)
- CHECK_NAME_DEFAULT(HAVE_${type} var)
- CHECK_NAME_DEFAULT(SIZEOF_${type} sizeof)
-
- cmake_parse_arguments(PARAMS "CXX" "NAME;SIZEOF" "INCLUDE_FILES;LIBRARIES;DEFINITIONS;FLAGS" ${ARGN})
-
- set(CMAKE_REQUIRED_LIBRARIES "${PARAMS_LIBRARIES}")
- set(CMAKE_REQUIRED_DEFINITIONS "${PARAMS_DEFINITIONS}")
- set(CMAKE_REQUIRED_FLAGS "${PARAMS_FLAGS}")
- set(CMAKE_EXTRA_INCLUDE_FILES "${PARAMS_INCLUDE_FILES}")
-
- if(PARAMS_NAME)
- set(var ${PARAMS_NAME})
- endif()
-
- if(PARAMS_SIZEOF)
- set(sizeof ${PARAMS_SIZEOF})
- endif()
-
- if(PARAMS_CXX)
- set(lang CXX)
- else()
- set(lang C)
- endif()
-
- CHECK_TYPE_SIZE(${type} ${var} LANGUAGE ${lang})
- CHECK_APPEND_DEFINE(${var} "${HAVE_${var}}")
- CHECK_APPEND_DEFINE(${sizeof} "${${var}}")
-endfunction()
-
-# EFL_HEADER_CHECKS_FINALIZE(file)
-#
-# Write the configuration gathered with HEADER_CHECK(), TYPE_CHECK()
-# and FUNC_CHECK() to the given file.
-function(EFL_HEADER_CHECKS_FINALIZE file)
- get_filename_component(filename ${file} NAME)
- string(TOUPPER _${filename}_ file_sym)
- string(REGEX REPLACE "[^a-zA-Z0-9]" "_" file_sym "${file_sym}")
-
- file(WRITE ${file}.new "#ifndef ${file_sym}\n#define ${file_sym} 1\n\n${${VAR_HEADER_FILE_CONTENT}}\n#endif /* ${file_sym} */\n")
- if (NOT EXISTS ${file})
- file(RENAME ${file}.new ${file})
- message(STATUS "${file} was generated.")
- else()
- file(MD5 ${file}.new _new_md5)
- file(MD5 ${file} _old_md5)
- if(_new_md5 STREQUAL _old_md5)
- message(STATUS "${file} is unchanged.")
- else()
- file(REMOVE ${file})
- file(RENAME ${file}.new ${file})
- message(STATUS "${file} was updated.")
- endif()
- endif()
- unset(${VAR_HEADER_FILE_CONTENT} CACHE) # allow to reuse with an empty contents
- unset(CHECK_SCOPE CACHE)
- unset(CHECK_SCOPE_UPPERCASE CACHE)
- set(VAR_HEADER_FILE_CONTENT HEADER_FILE_CONTENT CACHE INTERNAL "")
-endfunction()
-
-# EFL_FILES_TO_ABSOLUTE(Var Source_Dir Binary_Dir [file1 ... fileN])
-#
-# Convert list of files to absolute path. If not absolute, then
-# check inside Source_Dir and if it fails assumes it's inside Binary_Dir
-function(EFL_FILES_TO_ABSOLUTE _var _srcdir _bindir)
- set(_lst "")
- foreach(f ${ARGN})
- if(EXISTS "${f}" OR IS_ABSOLUTE "${f}")
- list(APPEND _lst "${f}")
- elseif(EXISTS "${_srcdir}/${f}")
- list(APPEND _lst "${_srcdir}/${f}")
- else()
- list(APPEND _lst "${_bindir}/${f}")
- endif()
- endforeach()
- set(${_var} "${_lst}" PARENT_SCOPE)
-endfunction()
-
-# EFL_PKG_CONFIG_EVAL_TO(Var Name [module1 ... moduleN])
-#
-# Evaluate the list of of pkg-config modules and assign to variable
-# Var. If it's missing, abort with a message saying ${Name} is missing
-# the list of modules.
-#
-# OPTIONAL keyword may be used to convert the remaining elements in optional
-# packages.
-function(EFL_PKG_CONFIG_EVAL_TO _var _name)
- set(_found "")
- set(_missing "")
- set(_missing_optional "")
- set(_optional OFF)
- set(_have_definitions "")
- foreach(f ${ARGN})
- if(${f} STREQUAL "OPTIONAL")
- set(_optional ON)
- else()
- string(REGEX REPLACE "[><=].*\$" "" v "${f}")
- string(REGEX REPLACE "[^A-Za-z0-9]" "_" v "${v}")
- string(TOUPPER "${v}" v)
- pkg_check_modules(PKG_CONFIG_DEP_${v} ${f})
- if(PKG_CONFIG_DEP_${v}_FOUND)
- list(APPEND _found ${f})
- list(APPEND _have_definitions "-DHAVE_${v}=1" "-DENABLE_${v}=1")
- elseif(_optional)
- list(APPEND _missing_optional ${f})
- LIST_APPEND_GLOBAL(EFL_PKG_CONFIG_MISSING_OPTIONAL ${f})
- else()
- list(APPEND _missing ${f})
- else()
- endif()
- endif()
- endforeach()
-
- unset(${_var}_CFLAGS CACHE)
- unset(${_var}_LDFLAGS CACHE)
- unset(PKG_CONFIG_${_var} CACHE)
- unset(PKG_CONFIG_${_var}_CFLAGS CACHE)
- unset(PKG_CONFIG_${_var}_FOUND CACHE)
- unset(PKG_CONFIG_${_var}_INCLUDE_DIRS CACHE)
- unset(PKG_CONFIG_${_var}_INCLUDEDIR CACHE)
- unset(PKG_CONFIG_${_var}_LDFLAGS CACHE)
- unset(PKG_CONFIG_${_var}_LIBDIR CACHE)
- unset(PKG_CONFIG_${_var}_LIBRARIES CACHE)
- unset(PKG_CONFIG_${_var}_LIBRARIES CACHE)
- unset(PKG_CONFIG_${_var}_LIBRARIES_DIR CACHE)
- unset(PKG_CONFIG_${_var}_LIBS CACHE)
- unset(PKG_CONFIG_${_var}_VERSION CACHE)
- if(NOT _missing)
- SET_GLOBAL(${_var} "${_found}")
- SET_GLOBAL(${_var}_MISSING "${_missing_optional}")
-
- if(_found)
- pkg_check_modules(PKG_CONFIG_${_var} ${_found})
- SET_GLOBAL(${_var}_CFLAGS "${_have_definitions};${PKG_CONFIG_${_var}_CFLAGS}")
- SET_GLOBAL(${_var}_LDFLAGS "${PKG_CONFIG_${_var}_LDFLAGS}")
- endif()
- else()
- message(FATAL_ERROR "${_name} missing required pkg-config modules: ${_missing}")
- endif()
-endfunction()
-
-# EFL_PKG_CONFIG_EVAL(Name Private_List Public_List)
-#
-# Evaluates both lists and creates ${Name}_PKG_CONFIG_REQUIRES as well as
-# ${Name}_PKG_CONFIG_REQUIRES_PRIVATE with found elements.
-#
-# OPTIONAL keyword may be used to convert the remaining elements in optional
-# packages.
-function(EFL_PKG_CONFIG_EVAL _target _private _public)
- EFL_PKG_CONFIG_EVAL_TO(${_target}_PKG_CONFIG_REQUIRES ${_target} ${_public})
- EFL_PKG_CONFIG_EVAL_TO(${_target}_PKG_CONFIG_REQUIRES_PRIVATE ${_target} ${_private})
-
- set(_lst ${${_target}_PKG_CONFIG_REQUIRES_MISSING})
- foreach(_e ${${_target}_PKG_CONFIG_REQUIRES_PRIVATE_MISSING})
- list(APPEND _lst ${_e})
- endforeach()
- if(_lst)
- message(STATUS "${_target} missing optional pkg-config: ${_lst}")
- endif()
-endfunction()
-
-function(EFL_PKG_CONFIG_LIB_WRITE)
- set(_pkg_config_requires)
- set(_pkg_config_requires_private)
- set(_libraries)
- set(_public_libraries)
-
- get_target_property(_pkg_config_name ${EFL_LIB_CURRENT} PKG_CONFIG_NAME)
- get_target_property(_version ${EFL_LIB_CURRENT} VERSION)
-
- get_target_property(eo_files_public ${EFL_LIB_CURRENT} EFL_EO_PUBLIC)
- if(eo_files_public)
- set(_eoinfo "eoincludedir=\${datarootdir}/eolian/include
-eolian_flags=-I\${pc_sysrootdir}\${eoincludedir}/${EFL_LIB_CURRENT}-${PROJECT_VERSION_MAJOR}")
- else()
- set(_eoinfo "")
- endif()
-
- foreach(_e ${${EFL_LIB_CURRENT}_PKG_CONFIG_REQUIRES})
- set(_pkg_config_requires "${_pkg_config_requires} ${_e}")
- endforeach()
-
- foreach(_e ${${EFL_LIB_CURRENT}_PKG_CONFIG_REQUIRES_PRIVATE})
- set(_pkg_config_requires_private "${_pkg_config_requires_private} ${_e}")
- endforeach()
-
- foreach(_e ${LIBRARIES})
- if(TARGET ${_e})
- if(NOT _e MATCHES "^support-")
- get_target_property(_sub_pc_name ${_e} PKG_CONFIG_NAME)
- get_target_property(_sub_version ${_e} VERSION)
- set(_pkg_config_requires_private "${_pkg_config_requires_private} ${_sub_pc_name}>=${_sub_version}")
- else()
- get_target_property(_type ${_e} TYPE)
- if(_type STREQUAL SHARED_LIBRARY)
- get_target_property(_oname ${_e} OUTPUT_NAME)
- set(_libraries "${_libraries} -l${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/efl/support/v-${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}/${CMAKE_SHARED_LIBRARY_PREFIX}${_oname}${CMAKE_SHARED_LIBRARY_SUFFIX}")
- endif()
- endif()
- else()
- set(_libraries "${_libraries} -l${_e}")
- endif()
- endforeach()
-
- foreach(_e ${PUBLIC_LIBRARIES})
- if(TARGET ${_e})
- get_target_property(_sub_pc_name ${_e} PKG_CONFIG_NAME)
- get_target_property(_sub_version ${_e} VERSION)
- set(_pkg_config_requires "${_pkg_config_requires} ${_sub_pc_name}>=${_sub_version}")
- else()
- set(_public_libraries "${_public_libraries} -l${_e}")
- endif()
- endforeach()
-
- if(NOT ${EFL_LIB_CURRENT} STREQUAL "efl")
- set(_cflags " -I\${includedir}/${EFL_LIB_CURRENT}-${PROJECT_VERSION_MAJOR}")
- endif()
-
- # TODO: handle eolian needs
-
- set(_contents
-"prefix=${CMAKE_INSTALL_PREFIX}
-exec_prefix=\${prefix}
-libdir=\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}
-includedir=\${prefix}/include
-datarootdir=\${prefix}/share
-datadir=\${datarootdir}
-pkgdatadir=\${datadir}/${EFL_LIB_CURRENT}
-modules=\${libdir}/${EFL_LIB_CURRENT}/modules
-${_eoinfo}
-
-Name: ${_pkg_config_name}
-Description: ${DESCRIPTION}
-Version: ${_version}
-Requires:${_pkg_config_requires}
-Requires.private:${_pkg_config_requires_private}
-Libs: -L\${libdir} -l${EFL_LIB_CURRENT}${_public_libraries}
-Libs.private:${_libraries}
-Cflags: -I\${includedir}/efl-${PROJECT_VERSION_MAJOR}${_cflags}
-")
- file(WRITE "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/pkgconfig/${_pkg_config_name}.pc" "${_contents}")
- install(FILES "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/pkgconfig/${_pkg_config_name}.pc"
- DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
-endfunction()
-
-# _EFL_INCLUDE_OR_DETECT(Name Source_Dir)
-#
-# Internal macro that will include(${Source_Dir}/CMakeLists.txt) if
-# that exists, otherwise will check if there is a single source file,
-# in that case it will automatically define SOURCES to that (including
-# extras such as headers and .eo)
-#
-# Name is only used to print out messages when it's auto-detected.
-macro(_EFL_INCLUDE_OR_DETECT _name _srcdir)
- if(EXISTS ${_srcdir}/CMakeLists.txt)
- include(${_srcdir}/CMakeLists.txt)
- else()
- # doc says it's not recommended because it can't know if more files
- # were added, but we're doing this explicitly to handle one file.
- file(GLOB _autodetect_files RELATIVE ${_srcdir}
- ${_srcdir}/*.c
- ${_srcdir}/*.h
- ${_srcdir}/*.hh
- ${_srcdir}/*.cxx
- ${_srcdir}/*.cpp
- )
- list(LENGTH _autodetect_files _autodetect_files_count)
- if(_autodetect_files_count GREATER 1)
- message(WARNING "${_name}: ${_srcdir} contains no CMakeLists.txt and contains more than one source file. Don't know what to do, then ignored.")
- elseif(_autodetect_files_count EQUAL 1)
- file(GLOB SOURCES RELATIVE ${_srcdir}
- ${_srcdir}/*.c
- ${_srcdir}/*.h
- ${_srcdir}/*.hh
- ${_srcdir}/*.cxx
- ${_srcdir}/*.cpp
- )
- file(GLOB EO_FILES RELATIVE ${_srcdir}
- ${_srcdir}/*.eo
- ${_srcdir}/*.eot
- )
- message(STATUS "${_name} auto-detected as: ${SOURCES}")
- if(EO_FILES)
- message(STATUS "${_name} EO auto-detected as: ${EO_FILES}")
- endif()
- else()
- message(STATUS "${_name} contains no auto-detectable sources.")
- endif()
- unset(_autodetect_files_count)
- unset(_autodetect_files)
- endif()
-endmacro()
-
-# _EFL_LIB_PROCESS_MODULES_INTERNAL()
-#
-# Internal function to process modules of current EFL_LIB()
-function(_EFL_LIB_PROCESS_MODULES_INTERNAL)
- unset(${EFL_LIB_CURRENT}_MODULES CACHE)
- unset(${EFL_LIB_CURRENT}_STATIC_MODULES CACHE)
-
- if(EXISTS ${EFL_MODULES_SOURCE_DIR}/CMakeLists.txt)
- message(FATAL_ERROR "${EFL_MODULES_SOURCE_DIR}/CMakeLists.txt shouldn't exist. Modules are expected to be defined in their own directory.")
- else()
- file(GLOB modules RELATIVE ${EFL_MODULES_SOURCE_DIR} ${EFL_MODULES_SOURCE_DIR}/*)
- foreach(module ${modules})
- if(IS_DIRECTORY ${EFL_MODULES_SOURCE_DIR}/${module})
- set(EFL_MODULE_SCOPE ${module})
-
- file(GLOB submodules RELATIVE ${EFL_MODULES_SOURCE_DIR}/${EFL_MODULE_SCOPE} ${EFL_MODULES_SOURCE_DIR}/${EFL_MODULE_SCOPE}/*)
- foreach(submodule ${submodules})
- if(IS_DIRECTORY ${EFL_MODULES_SOURCE_DIR}/${EFL_MODULE_SCOPE}/${submodule})
- EFL_MODULE(${submodule})
- endif()
- unset(submodule)
- unset(submodules)
- endforeach()
- else()
- set(EFL_MODULE_SCOPE)
- EFL_MODULE(${module})
- endif()
- unset(EFL_MODULE_SCOPE)
- endforeach()
- endif()
-
- if(${EFL_LIB_CURRENT}_MODULES)
- add_custom_target(${EFL_LIB_CURRENT}-modules DEPENDS ${${EFL_LIB_CURRENT}_MODULES})
- endif()
-endfunction()
-
-# _EFL_LIB_PROCESS_BINS_INTERNAL()
-#
-# Internal function to process bins of current EFL_LIB()
-function(_EFL_LIB_PROCESS_BINS_INTERNAL)
- unset(${EFL_LIB_CURRENT}_BINS CACHE)
-
- if(EXISTS ${EFL_BIN_SOURCE_DIR}/CMakeLists.txt)
- EFL_BIN(${EFL_LIB_CURRENT})
- else()
- file(GLOB bins RELATIVE ${EFL_BIN_SOURCE_DIR} ${EFL_BIN_SOURCE_DIR}/*)
- foreach(bin ${bins})
- if(IS_DIRECTORY ${EFL_BIN_SOURCE_DIR}/${bin})
- EFL_BIN(${bin})
- endif()
- endforeach()
- endif()
-
- if(NOT ${EFL_LIB_CURRENT}_BINS AND EXISTS ${EFL_BIN_SOURCE_DIR} AND NOT EXISTS ${EFL_BIN_SOURCE_DIR}/CMakeLists.txt)
- EFL_BIN(${EFL_LIB_CURRENT})
- endif()
-
- if(${EFL_LIB_CURRENT}_BINS)
- add_custom_target(${EFL_LIB_CURRENT}-bins DEPENDS ${${EFL_LIB_CURRENT}_BINS})
- endif()
-endfunction()
-
-# _EFL_LIB_PROCESS_TESTS_INTERNAL()
-#
-# Internal function to process tests of current EFL_LIB()
-function(_EFL_LIB_PROCESS_TESTS_INTERNAL)
- unset(${EFL_LIB_CURRENT}_TESTS CACHE)
-
- if(EXISTS ${EFL_TESTS_SOURCE_DIR}/CMakeLists.txt)
- EFL_TEST(${EFL_LIB_CURRENT})
- else()
- file(GLOB tests RELATIVE ${EFL_TESTS_SOURCE_DIR} ${EFL_TESTS_SOURCE_DIR}/*)
- foreach(test ${tests})
- if(IS_DIRECTORY ${EFL_TESTS_SOURCE_DIR}/${test})
- EFL_TEST(${test})
- endif()
- endforeach()
- endif()
-
- if(NOT ${EFL_LIB_CURRENT}_TESTS AND EXISTS ${EFL_TESTS_SOURCE_DIR} AND NOT EXISTS ${EFL_TESTS_SOURCE_DIR}/CMakeLists.txt)
- EFL_TEST(${EFL_LIB_CURRENT})
- endif()
-
- if(${EFL_LIB_CURRENT}_TESTS)
- add_custom_target(${EFL_LIB_CURRENT}-tests DEPENDS ${${EFL_LIB_CURRENT}_TESTS})
- LIST_APPEND_GLOBAL(EFL_ALL_TESTS ${EFL_LIB_CURRENT}-tests)
- endif()
-endfunction()
-
-define_property(TARGET PROPERTY EFL_EO_PRIVATE
- BRIEF_DOCS "EFL's .eo/.eot files associated with this target and not installed"
- FULL_DOCS "The list of all .eo or .eot files this target uses but doesn't install")
-
-define_property(TARGET PROPERTY EFL_EO_PUBLIC
- BRIEF_DOCS "EFL's .eo/.eot files associated with this target and installed"
- FULL_DOCS "The list of all .eo or .eot files this target uses and installs")
-
-define_property(TARGET PROPERTY PKG_CONFIG_NAME
- BRIEF_DOCS "The name to use with pkg-config (.pc) files"
- FULL_DOCS "This is usually the target name unless some backward compatibility or translations are needed")
-
-# EFL_SUPPORT_LIB(Name)
-#
-# adds a support library as src/static_libs/${Name}, this will
-# generate a static library that can be later referred by other
-# targets using support-${Name}
-#
-# This is simiar to EFL_LIB(), however defaults to STATIC libraries
-# and if set to SHARED will install to
-# ${CMAKE_INSTALL_LIBDIR}/efl/support/v-${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
-# and it shouldn't set any PUBLIC_HEADERS or PKG_CONFIG_REQUIRES.
-function(EFL_SUPPORT_LIB _target)
- set(EFL_LIB_CURRENT ${_target})
- set(EFL_LIB_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/static_libs/${_target})
- set(EFL_LIB_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/src/static_libs/${_target})
-
- set(DESCRIPTION)
- set(PKG_CONFIG_REQUIRES)
- set(PKG_CONFIG_REQUIRES_PRIVATE)
- set(INCLUDE_DIRECTORIES)
- set(SYSTEM_INCLUDE_DIRECTORIES)
- set(OUTPUT_NAME)
- set(SOURCES)
- set(PUBLIC_HEADERS)
- set(VERSION)
- set(SOVERSION)
- set(LIBRARY_TYPE STATIC)
- set(OBJECT_DEPENDS)
- set(DEPENDENCIES)
- set(LIBRARIES)
- set(PUBLIC_LIBRARIES)
- set(DEFINITIONS)
- set(COMPILE_FLAGS)
- set(LINK_FLAGS)
-
- include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/config/${_target}.cmake OPTIONAL)
- include(${EFL_LIB_SOURCE_DIR}/CMakeLists.txt)
-
- if(NOT SOURCES)
- message(WARNING "${EFL_LIB_SOURCE_DIR}/CMakeLists.txt defines no SOURCES")
- return()
- endif()
- if(PUBLIC_HEADERS)
- message(WARNING "${EFL_LIB_SOURCE_DIR}/CMakeLists.txt should not define PUBLIC_HEADERS, it's not to be installed.")
- endif()
- if(PKG_CONFIG_REQUIRES)
- message(WARNING "${EFL_LIB_SOURCE_DIR}/CMakeLists.txt should not define PKG_CONFIG_REQUIRES. Use PKG_CONFIG_REQUIRES_PRIVATE instead")
- endif()
-
- EFL_FILES_TO_ABSOLUTE(_sources ${EFL_LIB_SOURCE_DIR} ${EFL_LIB_BINARY_DIR}
- ${SOURCES})
- EFL_FILES_TO_ABSOLUTE(_obj_deps ${EFL_LIB_SOURCE_DIR} ${EFL_LIB_BINARY_DIR}
- ${OBJECT_DEPENDS})
-
- EFL_PKG_CONFIG_EVAL(${_target} "${PKG_CONFIG_REQUIRES_PRIVATE}" "${PKG_CONFIG_REQUIRES}")
-
- set(__link_flags ${${_target}_PKG_CONFIG_REQUIRES_PRIVATE_LDFLAGS} ${${_target}_PKG_CONFIG_REQUIRES_LDFLAGS} ${LINK_FLAGS})
- set(__compile_flags ${${_target}_PKG_CONFIG_REQUIRES_PRIVATE_CFLAGS} ${${_target}_PKG_CONFIG_REQUIRES_CFLAGS} ${COMPILE_FLAGS})
-
- set(_link_flags)
- foreach(_l ${__link_flags})
- set(_link_flags "${_link_flags} ${_l}")
- endforeach()
-
- set(_compile_flags)
- foreach(_c ${__compile_flags})
- set(_compile_flags "${_compile_flags} ${_c}")
- endforeach()
-
- set(_libraries)
- foreach(_l ${LIBRARIES})
- if(${_l} MATCHES "^find-")
- string(REGEX REPLACE "^find-" "" _v "${_l}")
- list(APPEND _libraries ${${_v}_LIBRARIES})
- list(APPEND SYSTEM_INCLUDE_DIRECTORIES ${${_v}_INCLUDE_DIR})
- else()
- list(APPEND _libraries ${_l})
- endif()
- endforeach()
- set(LIBRARIES ${_libraries})
-
- set(_public_libraries)
- foreach(_l ${PUBLIC_LIBRARIES})
- if(${_l} MATCHES "^find-")
- string(REGEX REPLACE "^find-" "" _v "${_l}")
- list(APPEND _public_libraries ${${_v}_LIBRARIES})
- list(APPEND SYSTEM_INCLUDE_DIRECTORIES ${${_v}_INCLUDE_DIR})
- else()
- list(APPEND _public_libraries ${_l})
- endif()
- endforeach()
- set(PUBLIC_LIBRARIES ${_public_libraries})
-
- add_library(support-${_target} ${LIBRARY_TYPE} ${_sources} ${_headers})
- set_target_properties(support-${_target} PROPERTIES
- OBJECT_DEPENDS "${_obj_deps}"
- LINK_FLAGS "${_link_flags}"
- COMPILE_FLAGS "${_compile_flags}")
-
- if(DEPENDENCIES)
- add_dependencies(support-${_target} ${DEPENDENCIES})
- endif()
-
- if(LIBRARIES)
- target_link_libraries(support-${_target} LINK_PRIVATE ${LIBRARIES})
- endif()
- if(PUBLIC_LIBRARIES)
- target_link_libraries(support-${_target} PUBLIC ${PUBLIC_LIBRARIES})
- endif()
-
- target_include_directories(support-${_target} PUBLIC
- ${INCLUDE_DIRECTORIES}
- ${EFL_LIB_SOURCE_DIR}
- ${EFL_LIB_BINARY_DIR}
- )
- if(SYSTEM_INCLUDE_DIRECTORIES)
- target_include_directories(support-${_target} SYSTEM PUBLIC ${SYSTEM_INCLUDE_DIRECTORIES})
- endif()
-
- if(DEFINITIONS)
- target_compile_definitions(support-${_target} PRIVATE ${DEFINITIONS})
- endif()
-
- if(NOT OUTPUT_NAME)
- set(OUTPUT_NAME "support-${_target}")
- endif()
- set_target_properties(support-${_target} PROPERTIES OUTPUT_NAME ${OUTPUT_NAME})
-
- if(VERSION AND SOVERSION)
- set_target_properties(support-${_target} PROPERTIES
- VERSION ${VERSION}
- SOVERSION ${SOVERSION})
- endif()
-
- if(LIBRARY_TYPE STREQUAL "SHARED")
- install(TARGETS support-${_target}
- RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/efl/support/v-${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/efl/support/v-${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR})
- set_target_properties(support-${_target} PROPERTIES
- LIBRARY_OUTPUT_DIRECTORY ${CMAKE_INSTALL_LIBDIR}/efl/support/v-${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
- RUNTIME_OUTPUT_DIRECTORY ${CMAKE_INSTALL_LIBDIR}/efl/support/v-${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR})
- else()
- set_target_properties(support-${_target} PROPERTIES
- ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_INSTALL_LIBDIR}/efl/support/v-${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
- POSITION_INDEPENDENT_CODE TRUE)
- endif()
-
- include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/post/${_target}.cmake OPTIONAL)
-endfunction()
-
-# EFL_LIB(Name)
-#
-# adds a library ${Name} automatically setting object/target
-# properties based on script-modifiable variables:
-# - DESCRIPTION: results in ${Name}_DESCRIPTION and fills pkg-config files.
-# - PKG_CONFIG_REQUIRES: results in ${Name}_PKG_CONFIG_REQUIRES and
-# fills pkg-config files. Elements after 'OPTIONAL' keyword are
-# optional.
-# - PKG_CONFIG_REQUIRES_PRIVATE: results in
-# ${Name}_PKG_CONFIG_REQUIRES_PRIVATE and fills pkg-config
-# files. Elements after 'OPTIONAL' keyword are optional.
-# - INCLUDE_DIRECTORIES: results in target_include_directories
-# - SYSTEM_INCLUDE_DIRECTORIES: results in target_include_directories(SYSTEM)
-# - OUTPUT_NAME
-# - SOURCES source files that are needed. Eo files should go in
-# PUBLIC_EO_FILES or EO_FILES.
-# - PUBLIC_HEADERS
-# - VERSION (defaults to project version)
-# - SOVERSION (defaults to project major version)
-# - LIBRARY_TYPE: SHARED or STATIC, defaults to SHARED
-# - OBJECT_DEPENDS: say this object depends on other files (ie: includes)
-# - DEPENDENCIES: results in add_dependencies()
-# - LIBRARIES: results in target_link_libraries(LINK_PRIVATE)
-# - PUBLIC_LIBRARIES: results in target_link_libraries(LINK_PUBLIC)
-# - DEFINITIONS: target_compile_definitions()
-# - PUBLIC_EO_FILES: the eo files will be used to build that lib, and will be installed to the filesystem
-# - EO_FILES: the eo files will be used to build that lib but not installed.
-# - COMPILE_FLAGS: extra CFLAGS to append.
-# - LINK_FLAGS: extra LDFLAGS to append.
-#
-# Defines the following variables that can be used within the included files:
-# - EFL_LIB_CURRENT to ${Name}
-# - EFL_LIB_SOURCE_DIR to source dir of ${Name} libraries
-# - EFL_LIB_BINARY_DIR to binary dir of ${Name} libraries
-# - EFL_BIN_SOURCE_DIR to source dir of ${Name} executables
-# - EFL_BIN_BINARY_DIR to binary dir of ${Name} executables
-# - EFL_MODULES_SOURCE_DIR to source dir of ${Name} modules
-# - EFL_MODULES_BINARY_DIR to binary dir of ${Name} modules
-# - EFL_TESTS_SOURCE_DIR to source dir of ${Name} tests
-# - EFL_TESTS_BINARY_DIR to binary dir of ${Name} tests
-# - EFL_UTILS_DIR to the binary dir of ${Name} utility binaries
-# (those that should exist in runtime but not visible from $PATH)
-#
-# Modules are processed like:
-# - loop for directories in src/modules/${EFL_LIB_CURRENT}:
-# - if a src/modules/${EFL_LIB_CURRENT}/${Module}/CMakeLists.txt
-# use variables as documented in EFL_MODULE()
-# - otherwise loop for scoped-modules in
-# src/modules/${EFL_LIB_CURRENT}/${EFL_MODULE_SCOPE}/CMakeLists.txt
-# and use variables as documented in EFL_MODULE()
-#
-# EFL_MODULE() will handle MODULE_TYPE=ON;OFF;STATIC, handling
-# dependencies and installation in the proper path, considering
-# ${EFL_MODULE_SCOPE} whenever it's set.
-#
-# Binaries and tests are processed similarly:
-# - if src/bin/${EFL_LIB_CURRENT}/CMakeLists.txt exist, then use
-# variables as documented in EFL_BIN() or EFL_TEST(). The target
-# will be called ${EFL_LIB_CURRENT}-bin or ${EFL_LIB_CURRENT}-test
-# and the test OUTPUT_NAME defaults to ${EFL_LIB_CURRENT}_suite.
-# - otherwise loop for directories in src/bin/${EFL_LIB_CURRENT} and
-# for each src/bin/${EFL_LIB_CURRENT}/${Entry}/CMakeLists.txt use
-# variables as documented in EFL_BIN() or EFL_TEST(). Binaries
-# must provide an unique name that will be used as both target and
-# OUTPUT_NAME. Tests will generate targets
-# ${EFL_LIB_CURRENT}-test-${Entry}, while OUTPUT_NAME is ${Entry}.
-#
-# NOTE: src/modules/${EFL_LIB_CURRENT}/CMakeLists.txt is not
-# allowed as it makes no sense to have a single module named
-# after the library.
-#
-function(EFL_LIB _target)
- set(EFL_LIB_CURRENT ${_target})
- set(EFL_LIB_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/lib/${_target})
- set(EFL_LIB_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/src/lib/${_target})
- set(EFL_BIN_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/bin/${_target})
- set(EFL_BIN_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/src/bin/${_target})
- set(EFL_MODULES_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/modules/${_target})
- set(EFL_MODULES_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/src/modules/${_target})
- set(EFL_TESTS_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/tests/${_target})
- set(EFL_TESTS_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/src/tests/${_target})
- set(EFL_UTILS_DIR ${CMAKE_INSTALL_LIBDIR}/${_target}/utils/v-${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR})
-
- unset(EFL_ALL_OPTIONS_${EFL_LIB_CURRENT} CACHE)
-
- set(DESCRIPTION)
- set(PKG_CONFIG_REQUIRES)
- set(PKG_CONFIG_REQUIRES_PRIVATE)
- set(PKG_CONFIG_NAME)
- set(INCLUDE_DIRECTORIES)
- set(SYSTEM_INCLUDE_DIRECTORIES)
- set(OUTPUT_NAME)
- set(SOURCES)
- set(PUBLIC_HEADERS)
- set(VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
- set(SOVERSION ${PROJECT_VERSION_MAJOR})
- set(LIBRARY_TYPE SHARED)
- set(OBJECT_DEPENDS)
- set(DEPENDENCIES)
- set(LIBRARIES)
- set(PUBLIC_LIBRARIES)
- set(DEFINITIONS)
- set(PUBLIC_EO_FILES)
- set(EO_FILES)
- set(COMPILE_FLAGS)
- set(LINK_FLAGS)
-
- string(TOUPPER "${_target}" _target_uc)
-
- include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/config/${_target}.cmake OPTIONAL)
- include(${EFL_LIB_SOURCE_DIR}/CMakeLists.txt OPTIONAL)
- if(LIBRARY_TYPE STREQUAL SHARED AND NOT PUBLIC_HEADERS)
- message(FATAL_ERROR "Shared libraries must install public headers!")
- endif()
-
- if(NOT PKG_CONFIG_NAME)
- string(REPLACE "_" "-" PKG_CONFIG_NAME ${EFL_LIB_CURRENT})
- endif()
-
- #merge public eo files into sources
- set(SOURCES ${SOURCES} ${PUBLIC_EO_FILES} ${EO_FILES})
-
- EFL_FILES_TO_ABSOLUTE(_headers ${EFL_LIB_SOURCE_DIR} ${EFL_LIB_BINARY_DIR}
- ${PUBLIC_HEADERS})
- EFL_FILES_TO_ABSOLUTE(_sources ${EFL_LIB_SOURCE_DIR} ${EFL_LIB_BINARY_DIR}
- ${SOURCES})
- EFL_FILES_TO_ABSOLUTE(_obj_deps ${EFL_LIB_SOURCE_DIR} ${EFL_LIB_BINARY_DIR}
- ${OBJECT_DEPENDS})
- EFL_FILES_TO_ABSOLUTE(_public_eo_files ${EFL_LIB_SOURCE_DIR} ${EFL_LIB_BINARY_DIR}
- ${PUBLIC_EO_FILES})
- EFL_FILES_TO_ABSOLUTE(_eo_files ${EFL_LIB_SOURCE_DIR} ${EFL_LIB_BINARY_DIR}
- ${EO_FILES})
-
- foreach(public_eo_file ${PUBLIC_EO_FILES})
- list(APPEND _headers ${EFL_LIB_BINARY_DIR}/${public_eo_file}.h)
- endforeach()
- unset(public_eo_file)
-
- EFL_PKG_CONFIG_EVAL(${_target} "${PKG_CONFIG_REQUIRES_PRIVATE}" "${PKG_CONFIG_REQUIRES}")
-
- set(__link_flags ${${_target}_PKG_CONFIG_REQUIRES_PRIVATE_LDFLAGS} ${${_target}_PKG_CONFIG_REQUIRES_LDFLAGS} ${LINK_FLAGS})
- set(__compile_flags ${${_target}_PKG_CONFIG_REQUIRES_PRIVATE_CFLAGS} ${${_target}_PKG_CONFIG_REQUIRES_CFLAGS} -DPACKAGE_DATA_DIR=\\"${CMAKE_INSTALL_FULL_DATADIR}/${_target}/\\" ${COMPILE_FLAGS})
-
- set(_link_flags)
- foreach(_l ${__link_flags})
- set(_link_flags "${_link_flags} ${_l}")
- endforeach()
-
- set(_compile_flags)
- foreach(_c ${__compile_flags})
- set(_compile_flags "${_compile_flags} ${_c}")
- endforeach()
-
- set(_libraries)
- foreach(_l ${LIBRARIES})
- if(${_l} MATCHES "^find-")
- string(REGEX REPLACE "^find-" "" _v "${_l}")
- list(APPEND _libraries ${${_v}_LIBRARIES})
- list(APPEND SYSTEM_INCLUDE_DIRECTORIES ${${_v}_INCLUDE_DIR})
- else()
- list(APPEND _libraries ${_l})
- endif()
- endforeach()
- set(LIBRARIES ${_libraries})
-
- set(_public_libraries)
- foreach(_l ${PUBLIC_LIBRARIES})
- if(${_l} MATCHES "^find-")
- string(REGEX REPLACE "^find-" "" _v "${_l}")
- list(APPEND _public_libraries ${${_v}_LIBRARIES})
- list(APPEND SYSTEM_INCLUDE_DIRECTORIES ${${_v}_INCLUDE_DIR})
- else()
- list(APPEND _public_libraries ${_l})
- endif()
- endforeach()
- set(PUBLIC_LIBRARIES ${_public_libraries})
-
- add_library(${_target} ${LIBRARY_TYPE} ${_sources} ${_headers})
- set_target_properties(${_target} PROPERTIES
- FRAMEWORK TRUE
- DEFINE_SYMBOL "EFL_${_target_uc}_BUILD"
- PUBLIC_HEADER "${_headers}"
- OBJECT_DEPENDS "${_obj_deps}"
- EFL_EO_PRIVATE "${_eo_files}"
- EFL_EO_PUBLIC "${_public_eo_files}"
- PKG_CONFIG_NAME "${PKG_CONFIG_NAME}"
- LINK_FLAGS "${_link_flags}"
- COMPILE_FLAGS "${_compile_flags} -DDLL_EXPORT")
-
- if(DEPENDENCIES)
- add_dependencies(${_target} ${DEPENDENCIES})
- endif()
-
- if(LIBRARIES)
- target_link_libraries(${_target} LINK_PRIVATE ${LIBRARIES})
- endif()
- if(PUBLIC_LIBRARIES)
- target_link_libraries(${_target} PUBLIC ${PUBLIC_LIBRARIES})
- endif()
-
- target_include_directories(${_target} PUBLIC
- ${INCLUDE_DIRECTORIES}
- ${EFL_LIB_SOURCE_DIR}
- ${EFL_LIB_BINARY_DIR}
- )
- if(SYSTEM_INCLUDE_DIRECTORIES)
- target_include_directories(${_target} SYSTEM PUBLIC ${SYSTEM_INCLUDE_DIRECTORIES})
- endif()
-
- if(DEFINITIONS)
- target_compile_definitions(${_target} PRIVATE ${DEFINITIONS})
- endif()
-
- if(OUTPUT_NAME)
- set_target_properties(${_target} PROPERTIES OUTPUT_NAME ${OUTPUT_NAME})
- endif()
-
- if(VERSION AND SOVERSION)
- set_target_properties(${_target} PROPERTIES
- VERSION ${VERSION}
- SOVERSION ${SOVERSION})
- endif()
-
- EFL_CREATE_EO_RULES(${_target} ${EFL_LIB_SOURCE_DIR} ${EFL_LIB_BINARY_DIR})
-
- EFL_PKG_CONFIG_LIB_WRITE()
-
- install(TARGETS ${_target}
- PUBLIC_HEADER DESTINATION include/${_target}-${PROJECT_VERSION_MAJOR}
- RUNTIME DESTINATION bin
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
- install(FILES
- ${_public_eo_files} DESTINATION share/eolian/include/${_target}-${PROJECT_VERSION_MAJOR}
- )
-
- file(WRITE ${CMAKE_BINARY_DIR}/share/${_target}/checkme "")
- install(FILES ${CMAKE_BINARY_DIR}/share/${_target}/checkme DESTINATION share/${_target})
-
- # do not leak those into binaries, modules or tests
- unset(_sources)
- unset(_headers)
- unset(_obj_deps)
- unset(_public_eo_files)
- unset(_eo_files)
- unset(INCLUDE_DIRECTORIES)
- unset(SYSTEM_INCLUDE_DIRECTORIES)
- unset(OUTPUT_NAME)
- unset(SOURCES)
- unset(PUBLIC_HEADERS)
- unset(VERSION)
- unset(SOVERSION)
- unset(LIBRARY_TYPE)
- unset(OBJECT_DEPENDS)
- unset(DEPENDENCIES)
- unset(LIBRARIES)
- unset(PUBLIC_LIBRARIES)
- unset(DEFINITIONS)
- unset(DESCRIPTION)
- unset(PUBLIC_EO_FILES)
- unset(EO_FILES)
- unset(PKG_CONFIG_REQUIRES)
- unset(PKG_CONFIG_REQUIRES_PRIVATE)
- unset(PKG_CONFIG_NAME)
-
- _EFL_LIB_PROCESS_BINS_INTERNAL()
- _EFL_LIB_PROCESS_MODULES_INTERNAL()
- _EFL_LIB_PROCESS_TESTS_INTERNAL()
-
- include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/post/${_target}.cmake OPTIONAL)
-
- LIST_APPEND_GLOBAL(EFL_ALL_LIBS ${_target})
-endfunction()
-
-# EFL_BIN(Name)
-#
-# Adds a binary (executable) for ${EFL_LIB_CURRENT} using
-# ${EFL_BIN_SOURCE_DIR} and ${EFL_BIN_BINARY_DIR}
-#
-# Settings:
-# - INCLUDE_DIRECTORIES: results in target_include_directories
-# - SYSTEM_INCLUDE_DIRECTORIES: results in target_include_directories(SYSTEM)
-# - OUTPUT_NAME
-# - SOURCES
-# - OBJECT_DEPENDS: say this object depends on other files (ie: includes)
-# - DEPENDENCIES: results in add_dependencies(), defaults to
-# ${EFL_LIB_CURRENT}-modules
-# - LIBRARIES: results in target_link_libraries()
-# - DEFINITIONS: target_compile_definitions()
-# - INSTALL_DIR: defaults to bin. If empty, won't install.
-# - COMPILE_FLAGS: extra CFLAGS to append.
-# - LINK_FLAGS: extra LDFLAGS to append.
-# - EFL_UTILITY: if ON, will be installed to EFL_UTILS_DIR instead of
-# bin, not being exposed to $PATH.
-#
-# NOTE: it's meant to be called by files included by EFL_LIB() or similar,
-# otherwise you need to prepare the environment yourself.
-function(EFL_BIN _binname)
- set(INCLUDE_DIRECTORIES)
- set(SYSTEM_INCLUDE_DIRECTORIES)
- set(OUTPUT_NAME ${_binname})
- set(SOURCES)
- set(OBJECT_DEPENDS)
- if(TARGET ${EFL_LIB_CURRENT}-modules)
- set(DEPENDENCIES ${EFL_LIB_CURRENT}-modules)
- else()
- set(DEPENDENCIES)
- endif()
- set(LIBRARIES)
- set(DEFINITIONS)
- set(INSTALL ON)
- set(INSTALL_DIR bin)
- set(PKG_CONFIG_REQUIRES)
- set(PKG_CONFIG_REQUIRES_PRIVATE)
- set(COMPILE_FLAGS)
- set(LINK_FLAGS)
- set(EFL_UTILITY OFF)
-
- if(_binname STREQUAL ${EFL_LIB_CURRENT})
- set(_binsrcdir "${EFL_BIN_SOURCE_DIR}")
- set(_binbindir "${EFL_BIN_BINARY_DIR}")
- set(_bintarget "${EFL_LIB_CURRENT}-bin") # otherwise target would exist
- else()
- set(_binsrcdir "${EFL_BIN_SOURCE_DIR}/${_binname}")
- set(_binbindir "${EFL_BIN_BINARY_DIR}/${_binname}")
- set(_bintarget "${_binname}")
- endif()
-
- _EFL_INCLUDE_OR_DETECT("Binary ${_bintarget}" ${_binsrcdir})
-
- if(NOT SOURCES)
- message(WARNING "${_binsrcdir}/CMakeLists.txt defines no SOURCES")
- return()
- endif()
- if(PUBLIC_HEADERS)
- message(WARNING "${_binsrcdir}/CMakeLists.txt should not define PUBLIC_HEADERS, it's not to be installed.")
- endif()
- if(PKG_CONFIG_REQUIRES)
- message(WARNING "${_binsrcdir}/CMakeLists.txt should not define PKG_CONFIG_REQUIRES. Use PKG_CONFIG_REQUIRES_PRIVATE instead")
- endif()
-
- if(EFL_UTILITY AND INSTALL_DIR STREQUAL "bin")
- set(INSTALL_DIR ${EFL_UTILS_DIR})
- endif()
-
- EFL_FILES_TO_ABSOLUTE(_sources ${_binsrcdir} ${_binbindir} ${SOURCES})
- EFL_FILES_TO_ABSOLUTE(_obj_deps ${_binsrcdir} ${_binbindir} ${OBJECT_DEPENDS})
-
- EFL_PKG_CONFIG_EVAL(${_bintarget} "${PKG_CONFIG_REQUIRES_PRIVATE}" "")
-
- set(_libraries)
- foreach(_l ${LIBRARIES})
- if(${_l} MATCHES "^find-")
- string(REGEX REPLACE "^find-" "" _v "${_l}")
- list(APPEND _libraries ${${_v}_LIBRARIES})
- list(APPEND SYSTEM_INCLUDE_DIRECTORIES ${${_v}_INCLUDE_DIR})
- else()
- list(APPEND _libraries ${_l})
- endif()
- endforeach()
- set(LIBRARIES ${_libraries})
-
- add_executable(${_bintarget} ${_sources})
-
- if(_obj_deps)
- set_target_properties(${_bintarget} PROPERTIES
- OBJECT_DEPENDS "${_obj_deps}")
- endif()
-
- if(DEPENDENCIES)
- add_dependencies(${_bintarget} ${DEPENDENCIES})
- endif()
-
- target_include_directories(${_bintarget} PRIVATE
- ${_binrcdir}
- ${_binbindir}
- ${INCLUDE_DIRECTORIES})
- if(SYSTEM_INCLUDE_DIRECTORIES)
- target_include_directories(${_bintarget} SYSTEM PRIVATE
- ${SYSTEM_INCLUDE_DIRECTORIES})
- endif()
- target_link_libraries(${_bintarget} LINK_PRIVATE
- ${EFL_LIB_CURRENT}
- ${LIBRARIES})
-
- if(DEFINITIONS)
- target_compile_definitions(${_bintarget} PRIVATE ${DEFINITIONS})
- endif()
-
- if(OUTPUT_NAME)
- set_target_properties(${_bintarget} PROPERTIES OUTPUT_NAME ${OUTPUT_NAME})
- endif()
-
- set(_link_flags)
- foreach(_l ${${_bintarget}_PKG_CONFIG_REQUIRES_PRIVATE_LDFLAGS} ${LINK_FLAGS})
- set(_link_flags "${_link_flags} ${_l}")
- endforeach()
-
- set(_compile_flags)
- foreach(_c ${${_bintarget}_PKG_CONFIG_REQUIRES_PRIVATE_CFLAGS} ${COMPILE_FLAGS})
- set(_compile_flags "${_compile_flags} ${_c}")
- endforeach()
-
- set_target_properties(${_bintarget} PROPERTIES
- LINK_FLAGS "${_link_flags}"
- COMPILE_FLAGS "${_compile_flags} -DPACKAGE_DATA_DIR=\\\"${CMAKE_INSTALL_FULL_DATADIR}/${_target}/\\\" -DPACKAGE_SRC_DIR=\\\"${CMAKE_SOURCE_DIR}/\\\"")
-
- if(INSTALL_DIR)
- install(TARGETS ${_bintarget} RUNTIME DESTINATION ${INSTALL_DIR})
- set_target_properties(${_bintarget} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${INSTALL_DIR})
- endif()
-
- LIST_APPEND_GLOBAL(${EFL_LIB_CURRENT}_BINS ${_bintarget})
-endfunction()
-
-# EFL_TEST(Name)
-#
-# Adds a test for ${EFL_LIB_CURRENT} using
-# ${EFL_TESTS_SOURCE_DIR} and ${EFL_TESTS_BINARY_DIR}
-#
-# Settings:
-# - INCLUDE_DIRECTORIES: results in target_include_directories
-# - SYSTEM_INCLUDE_DIRECTORIES: results in target_include_directories(SYSTEM)
-# - OUTPUT_NAME
-# - SOURCES
-# - OBJECT_DEPENDS: say this object depends on other files (ie: includes)
-# - DEPENDENCIES: results in add_dependencies(), defaults to
-# ${EFL_LIB_CURRENT}-modules
-# - LIBRARIES: results in target_link_libraries()
-# - DEFINITIONS: target_compile_definitions()
-# - COMPILE_FLAGS: extra CFLAGS to append.
-# - LINK_FLAGS: extra LDFLAGS to append.
-#
-# NOTE: it's meant to be called by files included by EFL_LIB() or similar,
-# otherwise you need to prepare the environment yourself.
-function(EFL_TEST _testname)
- if(NOT CHECK_FOUND)
- message(STATUS "${EFL_LIB_CURRENT} test ${_testname} ignored since no 'check' library was found.")
- return()
- endif()
-
- set(INCLUDE_DIRECTORIES)
- set(SYSTEM_INCLUDE_DIRECTORIES)
- set(OUTPUT_NAME ${_testname})
- set(SOURCES)
- set(OBJECT_DEPENDS)
- if(TARGET ${EFL_LIB_CURRENT}-modules)
- set(DEPENDENCIES ${EFL_LIB_CURRENT}-modules)
- else()
- set(DEPENDENCIES)
- endif()
- set(LIBRARIES)
- set(DEFINITIONS)
- set(PKG_CONFIG_REQUIRES)
- set(PKG_CONFIG_REQUIRES_PRIVATE)
- set(COMPILE_FLAGS)
- set(LINK_FLAGS)
-
- if(_testname STREQUAL ${EFL_LIB_CURRENT})
- set(_testsrcdir "${EFL_TESTS_SOURCE_DIR}")
- set(_testbindir "${EFL_TESTS_BINARY_DIR}")
- set(_testtarget "${EFL_LIB_CURRENT}-test") # otherwise target would exist
- set(OUTPUT_NAME "${EFL_LIB_CURRENT}_suite") # backward compatible
- elseif(_testname STREQUAL "suite")
- set(_testsrcdir "${EFL_TESTS_SOURCE_DIR}/${_testname}")
- set(_testbindir "${EFL_TESTS_BINARY_DIR}/${_testname}")
- set(_testtarget "${EFL_LIB_CURRENT}-test") # target for main test, as above
- set(OUTPUT_NAME "${EFL_LIB_CURRENT}_suite") # backward compatible
- else()
- set(_testsrcdir "${EFL_TESTS_SOURCE_DIR}/${_testname}")
- set(_testbindir "${EFL_TESTS_BINARY_DIR}/${_testname}")
- set(_testtarget "${EFL_LIB_CURRENT}-test-${_testname}")
- endif()
-
- _EFL_INCLUDE_OR_DETECT("Test ${_testtarget}" ${_testsrcdir})
-
- if(NOT SOURCES)
- message(WARNING "${_testsrcdir}/CMakeLists.txt defines no SOURCES")
- return()
- endif()
- if(PUBLIC_HEADERS)
- message(WARNING "${_testsrcdir}/CMakeLists.txt should not define PUBLIC_HEADERS, it's not to be installed.")
- endif()
- if(PKG_CONFIG_REQUIRES)
- message(WARNING "${_testsrcdir}/CMakeLists.txt should not define PKG_CONFIG_REQUIRES. Use PKG_CONFIG_REQUIRES_PRIVATE instead")
- endif()
-
- EFL_FILES_TO_ABSOLUTE(_sources ${_testsrcdir} ${_testbindir} ${SOURCES})
- EFL_FILES_TO_ABSOLUTE(_obj_deps ${_testsrcdir} ${_testbindir} ${OBJECT_DEPENDS})
-
- EFL_PKG_CONFIG_EVAL(${_testtarget} "${PKG_CONFIG_REQUIRES_PRIVATE}" "")
-
- set(_libraries)
- foreach(_l ${LIBRARIES})
- if(${_l} MATCHES "^find-")
- string(REGEX REPLACE "^find-" "" _v "${_l}")
- list(APPEND _libraries ${${_v}_LIBRARIES})
- list(APPEND SYSTEM_INCLUDE_DIRECTORIES ${${_v}_INCLUDE_DIR})
- else()
- list(APPEND _libraries ${_l})
- endif()
- endforeach()
- set(LIBRARIES ${_libraries})
-
- add_executable(${_testtarget} EXCLUDE_FROM_ALL ${_sources})
-
- if(_obj_deps)
- set_target_properties(${_testtarget} PROPERTIES
- OBJECT_DEPENDS "${_obj_deps}")
- endif()
-
- if(DEPENDENCIES)
- add_dependencies(${_testtarget} ${DEPENDENCIES})
- endif()
-
- target_include_directories(${_testtarget} PRIVATE
- ${_testsrcdir}
- ${_testbindir}
- ${EFL_TESTS_SOURCE_DIR}
- ${EFL_TESTS_BINARY_DIR}
- ${INCLUDE_DIRECTORIES})
- target_include_directories(${_testtarget} SYSTEM PRIVATE
- ${SYSTEM_INCLUDE_DIRECTORIES}
- ${CHECK_INCLUDE_DIRS})
- target_link_libraries(${_testtarget} LINK_PRIVATE
- ${EFL_LIB_CURRENT}
- ${LIBRARIES}
- ${CHECK_LIBRARIES})
-
- target_compile_definitions(${_testtarget} PRIVATE
- "-DPACKAGE_DATA_DIR=\"${EFL_TESTS_SOURCE_DIR}\""
- "-DTESTS_SRC_DIR=\"${_testsrcdir}\""
- "-DTESTS_BUILD_DIR=\"${_testbindir}\""
- "-DTESTS_WD=\"\""
- ${DEFINITIONS}
- )
-
- if(OUTPUT_NAME)
- set_target_properties(${_testtarget} PROPERTIES OUTPUT_NAME ${OUTPUT_NAME})
- endif()
-
- set(_link_flags)
- foreach(_l ${${_testtarget}_PKG_CONFIG_REQUIRES_PRIVATE_LDFLAGS} ${LINK_FLAGS})
- set(_link_flags "${_link_flags} ${_l}")
- endforeach()
-
- set(_compile_flags)
- foreach(_c ${${_testtarget}_PKG_CONFIG_REQUIRES_PRIVATE_CFLAGS} ${COMPILE_FLAGS})
- set(_compile_flags "${_compile_flags} ${_c}")
- endforeach()
-
- set_target_properties(${_testtarget} PROPERTIES
- LINK_FLAGS "${_link_flags}"
- COMPILE_FLAGS "${_compile_flags}"
- LIBRARY_OUTPUT_DIRECTORY "${_testbindir}"
- RUNTIME_OUTPUT_DIRECTORY "${_testbindir}")
-
- add_test(NAME ${_testtarget} COMMAND ${_testtarget})
- LIST_APPEND_GLOBAL(${EFL_LIB_CURRENT}_TESTS ${_testtarget})
-
- add_test(${_testtarget}-build "${CMAKE_COMMAND}" --build ${CMAKE_BINARY_DIR} --target ${_testtarget})
- set_tests_properties(${_testtarget} PROPERTIES DEPENDS ${_testtarget}-build)
-endfunction()
-
-# EFL_MODULE(Name)
-#
-# Adds a module for ${EFL_LIB_CURRENT} using
-# ${EFL_MODULES_SOURCE_DIR} and ${EFL_MODULES_BINARY_DIR}
-# as well as ${EFL_MODULE_SCOPE} if it's contained into
-# a subdir, such as eina's "mp" or evas "engines".
-#
-# To keep it simple to use, user is only expected to define variables:
-# - SOURCES
-# - OBJECT_DEPENDS
-# - LIBRARIES
-# - INCLUDE_DIRECTORIES
-# - SYSTEM_INCLUDE_DIRECTORIES
-# - DEFINITIONS
-# - MODULE_TYPE: one of ON;OFF;STATIC, defaults to ON
-# - INSTALL_DIR: defaults to
-# ${CMAKE_INSTALL_LIBDIR}/${EFL_LIB_CURRENT}/modules/${EFL_MODULE_SCOPE}/${Name}/v-${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}/.
-# If empty, won't install.
-# - PKG_CONFIG_REQUIRES_PRIVATE: results in
-# ${Name}_PKG_CONFIG_REQUIRES_PRIVATE. Elements after 'OPTIONAL'
-# keyword are optional.
-# - COMPILE_FLAGS: extra CFLAGS to append.
-# - LINK_FLAGS: extra LDFLAGS to append.
-#
-# NOTE: since the file will be included it shouldn't mess with global variables!
-function(EFL_MODULE _modname)
- if(EFL_MODULE_SCOPE)
- set(_modsrcdir ${EFL_MODULES_SOURCE_DIR}/${EFL_MODULE_SCOPE}/${_modname})
- set(_modoutdir ${CMAKE_INSTALL_LIBDIR}/${EFL_LIB_CURRENT}/modules/${EFL_MODULE_SCOPE}/${_modname}/v-${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR})
- set(_modbindir ${EFL_MODULES_BINARY_DIR}/${EFL_MODULE_SCOPE}/${_modname})
- set(_modtarget ${EFL_LIB_CURRENT}-module-${EFL_MODULE_SCOPE}-${_modname})
- string(TOUPPER "${EFL_LIB_CURRENT}_MODULE_TYPE_${EFL_MODULE_SCOPE}_${_modname}" _modoptionname)
- if(NOT DEFINED ${_modoptionname}_DEFAULT)
- set(${_modoptionname}_DEFAULT "ON")
- endif()
- EFL_OPTION(${_modoptionname} "Build ${EFL_LIB_CURRENT} module ${EFL_MODULE_SCOPE}/${_modname}" ${${_modoptionname}_DEFAULT} CHOICE ON;OFF;STATIC)
- else()
- set(_modsrcdir ${EFL_MODULES_SOURCE_DIR}/${_modname})
- set(_modoutdir ${CMAKE_INSTALL_LIBDIR}/${EFL_LIB_CURRENT}/modules/${_modname}/v-${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR})
- set(_modbindir ${EFL_MODULES_BINARY_DIR}/${_modname})
- set(_modtarget ${EFL_LIB_CURRENT}-module-${_modname})
- string(TOUPPER "${EFL_LIB_CURRENT}_MODULE_TYPE_${_modname}" _modoptionname)
- if(NOT DEFINED ${_modoptionname}_DEFAULT)
- set(${_modoptionname}_DEFAULT "ON")
- endif()
- EFL_OPTION(${_modoptionname} "Build ${EFL_LIB_CURRENT} module ${_modname}" ${${_modoptionname}_DEFAULT} CHOICE ON;OFF;STATIC)
- endif()
-
- set(SOURCES)
- set(OBJECT_DEPENDS)
- set(LIBRARIES)
- set(INCLUDE_DIRECTORIES)
- set(SYSTEM_INCLUDE_DIRECTORIES)
- set(DEFINITIONS)
- set(MODULE_TYPE "${${_modoptionname}}")
- set(INSTALL_DIR ${_modoutdir})
- set(PKG_CONFIG_REQUIRES)
- set(PKG_CONFIG_REQUIRES_PRIVATE)
- set(COMPILE_FLAGS)
- set(LINK_FLAGS)
-
- _EFL_INCLUDE_OR_DETECT("Module ${_modtarget}" ${_modsrcdir})
-
- if(NOT SOURCES)
- message(WARNING "${_modsrcdir}/CMakeLists.txt defines no SOURCES")
- return()
- endif()
- if(PUBLIC_HEADERS)
- message(WARNING "${_modsrcdir}/CMakeLists.txt should not define PUBLIC_HEADERS, it's not to be installed.")
- endif()
- if(PKG_CONFIG_REQUIRES)
- message(WARNING "${_modsrcdir}/CMakeLists.txt should not define PKG_CONFIG_REQUIRES. Use PKG_CONFIG_REQUIRES_PRIVATE instead")
- endif()
-
- if("${MODULE_TYPE}" STREQUAL "OFF")
- return()
- elseif("${MODULE_TYPE}" STREQUAL "STATIC")
- set(_modtype STATIC)
- else()
- set(_modtype MODULE)
- endif()
-
- EFL_FILES_TO_ABSOLUTE(_sources ${_modsrcdir} ${_modbindir} ${SOURCES})
- EFL_FILES_TO_ABSOLUTE(_obj_deps ${_modsrcdir} ${_modbindir} ${OBJECT_DEPENDS})
-
- EFL_PKG_CONFIG_EVAL(${_modtarget} "${PKG_CONFIG_REQUIRES_PRIVATE}" "")
-
- set(_libraries)
- foreach(_l ${LIBRARIES})
- if(${_l} MATCHES "^find-")
- string(REGEX REPLACE "^find-" "" _v "${_l}")
- list(APPEND _libraries ${${_v}_LIBRARIES})
- list(APPEND SYSTEM_INCLUDE_DIRECTORIES ${${_v}_INCLUDE_DIR})
- else()
- list(APPEND _libraries ${_l})
- endif()
- endforeach()
- set(LIBRARIES ${_libraries})
-
- add_library(${_modtarget} ${_modtype} ${_sources})
- set_target_properties(${_modtarget} PROPERTIES
- OBJECT_DEPENDS "${_obj_deps}"
- PREFIX ""
- OUTPUT_NAME "module")
-
- target_include_directories(${_modtarget} PRIVATE
- ${_modsrcdir}
- ${_modbindir}
- ${INCLUDE_DIRECTORIES})
- target_include_directories(${_modtarget} SYSTEM PUBLIC
- ${SYSTEM_INCLUDE_DIRECTORIES})
- target_link_libraries(${_modtarget} LINK_PRIVATE ${LIBRARIES})
-
- target_compile_definitions(${_modtarget} PRIVATE ${DEFINITIONS})
-
- set(_link_flags)
- foreach(_l ${${_modtarget}_PKG_CONFIG_REQUIRES_PRIVATE_LDFLAGS} ${LINK_FLAGS})
- set(_link_flags "${_link_flags} ${_l}")
- endforeach()
-
- set(_compile_flags)
- foreach(_c ${${_modtarget}_PKG_CONFIG_REQUIRES_PRIVATE_CFLAGS} ${COMPILE_FLAGS})
- set(_compile_flags "${_compile_flags} ${_c}")
- endforeach()
-
- set_target_properties(${_modtarget} PROPERTIES
- LINK_FLAGS "${_link_flags}"
- COMPILE_FLAGS "${_compile_flags}"
- LIBRARY_OUTPUT_DIRECTORY "${_modoutdir}"
- ARCHIVE_OUTPUT_DIRECTORY "${_modoutdir}"
- RUNTIME_OUTPUT_DIRECTORY "${_modoutdir}")
-
- if("${MODULE_TYPE}" STREQUAL "STATIC")
- target_link_libraries(${EFL_LIB_CURRENT} LINK_PRIVATE ${_modtarget})
- target_compile_definitions(${EFL_LIB_CURRENT} PRIVATE "-D${_modoptionname}_STATIC=1")
- target_include_directories(${_modtarget} PRIVATE
- ${EFL_LIB_SOURCE_DIR}
- ${EFL_LIB_BINARY_DIR})
- set_target_properties(${_modtarget} PROPERTIES
- POSITION_INDEPENDENT_CODE TRUE)
-
- LIST_APPEND_GLOBAL(${EFL_LIB_CURRENT}_STATIC_MODULES ${_modtarget})
- else()
- target_link_libraries(${_modtarget} LINK_PRIVATE ${EFL_LIB_CURRENT})
- target_compile_definitions(${EFL_LIB_CURRENT} PRIVATE "-D${_modoptionname}_DYNAMIC=1")
- LIST_APPEND_GLOBAL(${EFL_LIB_CURRENT}_MODULES ${_modtarget})
- if(INSTALL_DIR)
- install(TARGETS ${_modtarget} LIBRARY DESTINATION "${INSTALL_DIR}")
- endif()
- endif()
-endfunction()
-
-macro(EFL_PROJECT version)
- if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
- project(efl VERSION ${version})
- else ("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
- execute_process(
- COMMAND git rev-list --count HEAD
- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
- OUTPUT_VARIABLE GIT_VERSION
- OUTPUT_STRIP_TRAILING_WHITESPACE
- )
- project(efl VERSION ${version}.${GIT_VERSION})
- endif ("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
- message("VERSION ${PROJECT_VERSION}")
-endmacro()
-
-# Will use the source of the given target to create rules for creating
-# the .eo.c and .eo.h files. The INCLUDE_DIRECTORIES of the target will be used
-function(EFL_CREATE_EO_RULES target source_dir generation_dir)
- get_target_property(eo_files_private ${target} EFL_EO_PRIVATE)
- get_target_property(eo_files_public ${target} EFL_EO_PUBLIC)
- if(NOT eo_files_private AND NOT eo_files_public)
- return()
- endif()
-
- get_target_property(link_libraries ${target} LINK_LIBRARIES)
- set(all_libraries ${target} ${link_libraries})
- set(include_cmd "")
- foreach(link_target ${all_libraries})
- if(TARGET ${link_target})
- list(APPEND include_cmd -I${CMAKE_SOURCE_DIR}/src/lib/${link_target})
- endif()
- endforeach()
-
- set(all_eo_gen_files "")
- set(extra_include_dirs "")
- foreach(file ${eo_files_private} ${eo_files_public})
- get_filename_component(ext ${file} EXT)
- string(REGEX REPLACE "^${source_dir}/" "" filename "${file}")
- string(REGEX REPLACE "^${CMAKE_SOURCE_DIR}/" "" relfile "${file}")
-
- # if sources are located in subdiretories
- get_filename_component(reldir "${filename}" DIRECTORY)
- if(reldir)
- file(MAKE_DIRECTORY "${generation_dir}/${reldir}")
- get_filename_component(absdir "${file}" DIRECTORY)
- set(rel_include_cmd -I${absdir})
- list(APPEND extra_include_dirs "${generation_dir}/${reldir}")
- else()
- set(rel_include_cmd)
- endif()
-
- if(${ext} STREQUAL ".eo")
- set(file_eo_gen_files ${generation_dir}/${filename}.c ${generation_dir}/${filename}.h ${generation_dir}/${filename}.legacy.h)
- set(out_cmd -gchl -o c:${generation_dir}/${filename}.c -o h:${generation_dir}/${filename}.h -o l:${generation_dir}/${filename}.legacy.h)
- elseif(${ext} STREQUAL ".eot")
- set(file_eo_gen_files ${generation_dir}/${filename}.h)
- set(out_cmd -gh -o h:${generation_dir}/${filename}.h)
- else()
- message(FATAL_ERROR "Unsupported eo file type: ${file}")
- endif()
-
- #add the custom rule
- if(file_eo_gen_files)
- add_custom_command(
- OUTPUT ${file_eo_gen_files}
- COMMAND ${EOLIAN_BIN} ${rel_include_cmd} ${include_cmd} ${EOLIAN_EXTRA_PARAMS} ${out_cmd} ${file}
- DEPENDS ${file}
- COMMENT "EOLIAN ${relfile}"
- )
- list(APPEND all_eo_gen_files ${file_eo_gen_files})
- endif()
- endforeach()
- if(all_eo_gen_files)
- file(MAKE_DIRECTORY ${generation_dir})
- add_custom_target(${target}-eo
- DEPENDS ${all_eo_gen_files}
- )
- if(extra_include_dirs)
- list(REMOVE_DUPLICATES extra_include_dirs)
- target_include_directories(${target} PUBLIC ${extra_include_dirs})
- endif()
- add_dependencies(${target} ${target}-eo)
- if(${EOLIAN_BIN} STREQUAL ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/eolian_gen)
- add_dependencies(${target}-eo eolian-bin)
- endif()
- endif()
-endfunction()
-
-# EFL_BACKEND_CHOICES(Prefix Choice1 .. ChoiceN)
-#
-# Helper that will check ${ChoiceN}_FOUND and if so append to
-# ${_prefix}_CHOICES as well set the first found option (in order!) as
-# ${_prefix}_DEFAULT and ${_prefix}_FOUND to ON if at least one was
-# found.
-function(EFL_BACKEND_CHOICES _prefix)
- cmake_parse_arguments(PARAMS "REQUIRED" "" "" ${ARGN})
-
- set(_choices "")
- set(_defval "none")
- set(_found OFF)
- foreach(c ${PARAMS_UNPARSED_ARGUMENTS})
- if(${c}_FOUND)
- string(TOLOWER "${c}" c_lc)
- if(_defval STREQUAL "none")
- set(_defval ${c_lc})
- endif()
- set(_found ON)
- list(APPEND _choices ${c_lc})
- endif()
- endforeach()
-
- if(PARAMS_REQUIRED AND NOT _found)
- message(FATAL_ERROR "${_prefix} backend was required (one of ${PARAMS_UNPARSED_ARGUMENTS}) but none was found!")
- elseif(NOT PARAMS_REQUIRED)
- list(APPEND _choices "none")
- endif()
-
- set(${_prefix}_FOUND ${_found} PARENT_SCOPE)
- set(${_prefix}_CHOICES ${_choices} PARENT_SCOPE)
- set(${_prefix}_DEFAULT ${_defval} PARENT_SCOPE)
-endfunction()
diff --git a/cmake/post/eina.cmake b/cmake/post/eina.cmake
deleted file mode 100644
index 72088d7ce4..0000000000
--- a/cmake/post/eina.cmake
+++ /dev/null
@@ -1,27 +0,0 @@
-
-# TODO: change code to avoid these
-if(EINA_MODULE_TYPE_MP_CHAINED_POOL STREQUAL "STATIC")
- CHECK_APPEND_DEFINE(EINA_STATIC_BUILD_CHAINED_POOL 1)
-else()
- CHECK_APPEND_DEFINE(EINA_STATIC_BUILD_CHAINED_POOL "")
-endif()
-if(EINA_MODULE_TYPE_MP_ONE_BIG STREQUAL "STATIC")
- CHECK_APPEND_DEFINE(EINA_STATIC_BUILD_ONE_BIG 1)
-else()
- CHECK_APPEND_DEFINE(EINA_STATIC_BUILD_ONE_BIG "")
-endif()
-if(EINA_MODULE_TYPE_MP_PASS_THROUGH STREQUAL "STATIC")
- CHECK_APPEND_DEFINE(EINA_STATIC_BUILD_PASS_THROUGH 1)
-else()
- CHECK_APPEND_DEFINE(EINA_STATIC_BUILD_PASS_THROUGH "")
-endif()
-
-# generate the file and close the scope started with CHECK_INIT(eina):
-EFL_HEADER_CHECKS_FINALIZE(${CMAKE_CURRENT_BINARY_DIR}/src/lib/eina/eina_config_gen.h)
-
-# TODO: when autotools is gone, rename this file in repository
-# and remove this copy (using generate to skip @-subst)
-file(GENERATE
- OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/src/lib/eina/eina_config.h
- INPUT ${CMAKE_CURRENT_SOURCE_DIR}/src/lib/eina/eina_config.h.cmake
-)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
deleted file mode 100644
index 3125acd562..0000000000
--- a/src/CMakeLists.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-include(CMakeLists_Eina.txt)
-add_subdirectory(lib/efl/) \ No newline at end of file
diff --git a/src/CMakeLists_Eina.txt b/src/CMakeLists_Eina.txt
deleted file mode 100644
index f763d675b9..0000000000
--- a/src/CMakeLists_Eina.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-INCLUDE (FindPkgConfig)
-
-set(EINA_STATIC_BUILD_CHAINED_POOL 1)
-set(EINA_STATIC_BUILD_ONE_BIG 1)
-set(EINA_STATIC_BUILD_PASS_THROUGH 1)
-
-pkg_check_modules(VG REQUIRED valgrind)
-
-add_subdirectory(lib/eina)
-add_subdirectory(modules/eina)
-add_subdirectory(tests/eina) \ No newline at end of file
diff --git a/src/bin/ecore_con/CMakeLists.txt b/src/bin/ecore_con/CMakeLists.txt
deleted file mode 100644
index 6309caa9b7..0000000000
--- a/src/bin/ecore_con/CMakeLists.txt
+++ /dev/null
@@ -1,10 +0,0 @@
-set(OUTPUT_NAME efl_net_proxy_helper)
-set(EFL_UTILITY ON)
-
-set(LIBRARIES
- eina
-)
-
-set(SOURCES
- efl_net_proxy_helper.c
-)
diff --git a/src/bin/eeze/eeze_mount/CMakeLists.txt b/src/bin/eeze/eeze_mount/CMakeLists.txt
deleted file mode 100644
index 5105678ff3..0000000000
--- a/src/bin/eeze/eeze_mount/CMakeLists.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-set(LIBRARIES
- ecore_file
-)
-
-set(SOURCES
- eeze_mount.c
-)
diff --git a/src/bin/eeze/eeze_scanner/CMakeLists.txt b/src/bin/eeze/eeze_scanner/CMakeLists.txt
deleted file mode 100644
index 4f7ec95693..0000000000
--- a/src/bin/eeze/eeze_scanner/CMakeLists.txt
+++ /dev/null
@@ -1,10 +0,0 @@
-set(LIBRARIES
- eeze
- eet
- ecore_con
-)
-
-set(SOURCES
- eeze_scanner.c
- eeze_scanner.h
-)
diff --git a/src/bin/eeze/eeze_scanner_monitor/CMakeLists.txt b/src/bin/eeze/eeze_scanner_monitor/CMakeLists.txt
deleted file mode 100644
index 21658678da..0000000000
--- a/src/bin/eeze/eeze_scanner_monitor/CMakeLists.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-set(LIBRARIES
- eeze
- eet
- ecore_con
-)
-
-set(SOURCES
- eeze_scanner_monitor.c
-)
diff --git a/src/bin/eeze/eeze_sensor_test/CMakeLists.txt b/src/bin/eeze/eeze_sensor_test/CMakeLists.txt
deleted file mode 100644
index bd18f3105b..0000000000
--- a/src/bin/eeze/eeze_sensor_test/CMakeLists.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-set(PKG_CONFIG_REQUIRES_PRIVATE
- udev
-)
-
-set(SOURCES
- eeze_sensor_test.c
-)
diff --git a/src/bin/eeze/eeze_umount/CMakeLists.txt b/src/bin/eeze/eeze_umount/CMakeLists.txt
deleted file mode 100644
index 51581a227a..0000000000
--- a/src/bin/eeze/eeze_umount/CMakeLists.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-set(LIBRARIES
- eeze
- eet
- ecore_file
-)
-
-set(SOURCES
- eeze_umount.c
-)
diff --git a/src/bin/eldbus/CMakeLists.txt b/src/bin/eldbus/CMakeLists.txt
deleted file mode 100644
index f83a09a310..0000000000
--- a/src/bin/eldbus/CMakeLists.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-set(OUTPUT_NAME eldbus-codegen)
-
-set(LIBRARIES
- eina
- ecore
-)
-
-set(SOURCES
- client.c
- codegen.h
- dbus.c
- parser.c
- source_client.c
- utils.c
-)
diff --git a/src/bin/embryo/CMakeLists.txt b/src/bin/embryo/CMakeLists.txt
deleted file mode 100644
index 8b0ff7e323..0000000000
--- a/src/bin/embryo/CMakeLists.txt
+++ /dev/null
@@ -1,24 +0,0 @@
-set(OUTPUT_NAME embryo_cc)
-
-set(LIBRARIES
- eina
- m
-)
-
-set(SOURCES
- embryo_cc_amx.h
- embryo_cc_osdefs.h
- embryo_cc_prefix.c
- embryo_cc_prefix.h
- embryo_cc_sc.h
- embryo_cc_sc1.c
- embryo_cc_sc2.c
- embryo_cc_sc3.c
- embryo_cc_sc4.c
- embryo_cc_sc5.c
- embryo_cc_sc6.c
- embryo_cc_sc7.c
- embryo_cc_scexpand.c
- embryo_cc_sclist.c
- embryo_cc_scvars.c
-)
diff --git a/src/bin/eolian/CMakeLists.txt b/src/bin/eolian/CMakeLists.txt
deleted file mode 100644
index 05278d7158..0000000000
--- a/src/bin/eolian/CMakeLists.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-set(OUTPUT_NAME eolian_gen)
-
-set(LIBRARIES
- eina
- eolian
-)
-
-set(SOURCES
- docs.c
- docs.h
- headers.c
- headers.h
- main.c
- main.h
- sources.c
- sources.h
- types.c
- types.h
-) \ No newline at end of file
diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt
deleted file mode 100644
index 288b6c7b1c..0000000000
--- a/src/lib/CMakeLists.txt
+++ /dev/null
@@ -1 +0,0 @@
-add_subdirectory(eina) \ No newline at end of file
diff --git a/src/lib/ecore/CMakeLists.txt b/src/lib/ecore/CMakeLists.txt
deleted file mode 100644
index 2cf4efbdcf..0000000000
--- a/src/lib/ecore/CMakeLists.txt
+++ /dev/null
@@ -1,104 +0,0 @@
-set(DESCRIPTION "Ecore event abstraction library")
-
-set(PUBLIC_LIBRARIES
- efl
- eina
- eo
-)
-
-set(LIBRARIES
- m
-)
-
-if(ENABLE_SYSTEMD)
- list(APPEND PKG_CONFIG_REQUIRES_PRIVATE libsystemd)
-endif()
-
-if(ENABLE_GLIB)
- list(APPEND PKG_CONFIG_REQUIRES_PRIVATE glib-2.0 gthread-2.0)
-endif()
-
-set(PUBLIC_EO_FILES
- ecore_exe.eo
- ecore_poller.eo
- ecore_types.eot
- efl_io_buffered_stream.eo
- efl_io_closer_fd.eo
- efl_io_copier.eo
- efl_io_file.eo
- efl_io_positioner_fd.eo
- efl_io_reader_fd.eo
- efl_io_sizer_fd.eo
- efl_io_stderr.eo
- efl_io_stdin.eo
- efl_io_stdout.eo
- efl_io_writer_fd.eo
- efl_loop.eo
- efl_loop_fd.eo
- efl_loop_timer.eo
- efl_loop_user.eo
- efl_promise.eo
- efl_linear_interpolator.eo
- efl_accelerate_interpolator.eo
- efl_decelerate_interpolator.eo
- efl_sinusoidal_interpolator.eo
- efl_divisor_interpolator.eo
- efl_bounce_interpolator.eo
- efl_spring_interpolator.eo
- efl_cubic_bezier_interpolator.eo
-)
-
-set(PUBLIC_HEADERS
- Ecore.h
- Ecore_Common.h
- Ecore_Eo.h
- Ecore_Getopt.h
- Ecore_Legacy.h
-)
-
-set(SOURCES
- ecore.c
- ecore_alloc.c
- ecore_anim.c
- ecore_app.c
- ecore_events.c
- ecore_exe.c
- ecore_exe_private.h
- ecore_getopt.c
- ecore_glib.c
- ecore_idle_enterer.c
- ecore_idle_exiter.c
- ecore_idler.c
- ecore_internal.h
- ecore_job.c
- ecore_main.c
- ecore_pipe.c
- ecore_poller.c
- ecore_private.h
- ecore_thread.c
- ecore_throttle.c
- ecore_time.c
- ecore_timer.c
- efl_io_buffered_stream.c
- efl_io_closer_fd.c
- efl_io_copier.c
- efl_io_file.c
- efl_io_positioner_fd.c
- efl_io_reader_fd.c
- efl_io_sizer_fd.c
- efl_io_stderr.c
- efl_io_stdin.c
- efl_io_stdout.c
- efl_io_writer_fd.c
- efl_loop_fd.c
- efl_loop_user.c
- efl_promise.c
-)
-
-# TODO: win32
-# TODO: ps3
-
-list(APPEND SOURCES
- ecore_exe_posix.c
- ecore_signal.c
-)
diff --git a/src/lib/ecore_con/CMakeLists.txt b/src/lib/ecore_con/CMakeLists.txt
deleted file mode 100644
index 87e152b3b1..0000000000
--- a/src/lib/ecore_con/CMakeLists.txt
+++ /dev/null
@@ -1,133 +0,0 @@
-set(DESCRIPTION "E core library, Con module")
-
-set(LIBRARIES
- ecore
- eet
- efl
- eina
- emile
- eo
- m
-)
-
-set(PUBLIC_EO_FILES
- ecore_con_eet_base.eo
- ecore_con_eet_client_obj.eo
- ecore_con_eet_server_obj.eo
- efl_net_control.eo
- efl_net_control_access_point.eo
- efl_net_control_technology.eo
- efl_net_dialer.eo
- efl_net_dialer_http.eo
- efl_net_dialer_simple.eo
- efl_net_dialer_ssl.eo
- efl_net_dialer_tcp.eo
- efl_net_dialer_udp.eo
- efl_net_dialer_websocket.eo
- efl_net_http_types.eot
- efl_net_ip_address.eo
- efl_net_server.eo
- efl_net_server_fd.eo
- efl_net_server_simple.eo
- efl_net_server_ssl.eo
- efl_net_server_tcp.eo
- efl_net_server_udp.eo
- efl_net_server_udp_client.eo
- efl_net_session.eo
- efl_net_socket.eo
- efl_net_socket_fd.eo
- efl_net_socket_simple.eo
- efl_net_socket_ssl.eo
- efl_net_socket_tcp.eo
- efl_net_socket_udp.eo
- efl_net_ssl_context.eo
- efl_net_ssl_types.eot
- efl_net_types.eot
-)
-
-set(PUBLIC_HEADERS
- Ecore_Con.h
- Ecore_Con_Eet.h
- Ecore_Con_Eet_Eo.h
- Ecore_Con_Eet_Legacy.h
- Ecore_Con_Eo.h
-)
-
-set(SOURCES
- ecore_con.c
- ecore_con_alloc.c
- ecore_con_eet.c
- ecore_con_legacy.c
- ecore_con_local.c
- ecore_con_private.h
- ecore_con_proxy_helper.c
- ecore_con_socks.c
- ecore_con_url.c
- ecore_con_url_curl.c
- ecore_con_url_curl.h
- efl_net_dialer.c
- efl_net_dialer_http.c
- efl_net_dialer_simple.c
- efl_net_dialer_ssl.c
- efl_net_dialer_tcp.c
- efl_net_dialer_udp.c
- efl_net_dialer_websocket.c
- efl_net_ip_address.c
- efl_net_server.c
- efl_net_server_fd.c
- efl_net_server_simple.c
- efl_net_server_ssl.c
- efl_net_server_tcp.c
- efl_net_server_udp.c
- efl_net_server_udp_client.c
- efl_net_socket.c
- efl_net_socket_fd.c
- efl_net_socket_simple.c
- efl_net_socket_ssl.c
- efl_net_socket_tcp.c
- efl_net_socket_udp.c
- efl_net_ssl_context.c
-)
-
-if(HAVE_SYS_UN_H)
- list(APPEND PUBLIC_EO_FILES
- efl_net_dialer_unix.eo
- efl_net_server_unix.eo
- efl_net_socket_unix.eo
- )
-
- list(APPEND SOURCES
- efl_net_dialer_unix.c
- efl_net_server_unix.c
- efl_net_socket_unix.c
- )
-endif()
-
-if(WITH_CRYPTO STREQUAL "gnutls")
- list(APPEND PKG_CONFIG_REQUIRES_PRIVATE gnutls)
-elseif(WITH_CRYPTO STREQUAL "openssl")
- list(APPEND PKG_CONFIG_REQUIRES_PRIVATE openssl)
-endif()
-
-if(ENABLE_SYSTEMD)
- list(APPEND PKG_CONFIG_REQUIRES_PRIVATE libsystemd)
-endif()
-
-if(WITH_EFL_NET_CONTROL_BACKEND STREQUAL "connman")
- list(APPEND SOURCES
- efl_net-connman.c
- efl_net-connman.h
- efl_net_control-connman.c
- efl_net_control_access_point-connman.c
- efl_net_control_technology-connman.c
- efl_net_session-connman.c
- )
- list(APPEND LIBRARIES eldbus)
-else()
- list(APPEND SOURCES
- efl_net_control-none.c
- efl_net_control_access_point-none.c
- efl_net_control_technology-none.c
- efl_net_session-none.c
- )
-endif()
diff --git a/src/lib/ecore_file/CMakeLists.txt b/src/lib/ecore_file/CMakeLists.txt
deleted file mode 100644
index fbee450a55..0000000000
--- a/src/lib/ecore_file/CMakeLists.txt
+++ /dev/null
@@ -1,29 +0,0 @@
-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()
diff --git a/src/lib/ecore_input/CMakeLists.txt b/src/lib/ecore_input/CMakeLists.txt
deleted file mode 100644
index c9f20c7b9a..0000000000
--- a/src/lib/ecore_input/CMakeLists.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-set(PUBLIC_LIBRARIES
- eina
- eo
-)
-
-set(LIBRARIES
- ecore
- efl
- eeze
-)
-
-set(PUBLIC_HEADERS
- Ecore_Input.h
-)
-
-set(SOURCES
- ecore_input.c
- ecore_input_compose.c
- ecore_input_compose.h
- ecore_input_joystick.c
- ecore_input_private.h
-)
diff --git a/src/lib/ecore_ipc/CMakeLists.txt b/src/lib/ecore_ipc/CMakeLists.txt
deleted file mode 100644
index 4eec0988ab..0000000000
--- a/src/lib/ecore_ipc/CMakeLists.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-set(DESCRIPTION "E core library, IPC module")
-
-set(LIBRARIES
- ecore
- ecore_con
- efl
- eina
- eo
-)
-
-set(PUBLIC_HEADERS
- Ecore_Ipc.h
-)
-
-set(SOURCES
- ecore_ipc.c
- ecore_ipc_private.h
-)
-
diff --git a/src/lib/ecore_x/CMakeLists.txt b/src/lib/ecore_x/CMakeLists.txt
deleted file mode 100644
index fec2eaeee9..0000000000
--- a/src/lib/ecore_x/CMakeLists.txt
+++ /dev/null
@@ -1,61 +0,0 @@
-set(PUBLIC_LIBRARIES
- eina
- ecore
-)
-
-set(LIBRARIES
- ecore
- ecore_input
- efl
- eo
- ${X_EXTENSIONS}
-)
-
-message("${LIBRARIES}")
-
-#todo XRANDR_GOOD
-
-set(PUBLIC_HEADERS
- Ecore_X.h
- # ecore_x_version.h
- Ecore_X_Atoms.h
- Ecore_X_Cursor.h
-)
-
-set(SOURCES
- ecore_x_atoms_decl.h
- ecore_x.c
- ecore_x_dnd.c
- ecore_x_sync.c
- ecore_x_randr.c
- ecore_x_fixes.c
- ecore_x_damage.c
- ecore_x_composite.c
- ecore_x_error.c
- ecore_x_events.c
- ecore_x_icccm.c
- ecore_x_keygrab.c
- ecore_x_netwm.c
- ecore_x_mwm.c
- ecore_x_e.c
- ecore_x_selection.c
- ecore_x_window.c
- ecore_x_window_prop.c
- ecore_x_window_shape.c
- ecore_x_pixmap.c
- ecore_x_present.c
- ecore_x_gc.c
- ecore_x_xinerama.c
- ecore_x_screensaver.c
- ecore_x_dpms.c
- ecore_x_drawable.c
- ecore_x_cursor.c
- ecore_x_test.c
- ecore_x_atoms.c
- ecore_x_region.c
- ecore_x_image.c
- ecore_x_xi2.c
- ecore_x_vsync.c
- ecore_x_gesture.c
- ecore_x_private.h
-)
diff --git a/src/lib/ector/CMakeLists.txt b/src/lib/ector/CMakeLists.txt
deleted file mode 100644
index fa6263408d..0000000000
--- a/src/lib/ector/CMakeLists.txt
+++ /dev/null
@@ -1,119 +0,0 @@
-set(DESCRIPTION "Enlightened retained mode drawing library")
-
-set(LIBRARIES
- eet
- efl
- emile
- m
- support-draw
- support-freetype
- support-rg_etc
- support-triangulator
-)
-
-set(PUBLIC_LIBRARIES
- eina
- eo
-)
-
-set(PUBLIC_EO_FILES
- ector_buffer.eo
- ector_renderer.eo
- ector_renderer_buffer.eo
- ector_renderer_gradient.eo
- ector_renderer_gradient_linear.eo
- ector_renderer_gradient_radial.eo
- ector_renderer_shape.eo
- ector_surface.eo
- ector_types.eot
-
- cairo/ector_cairo_software_surface.eo
- cairo/ector_cairo_surface.eo
- cairo/ector_renderer_cairo.eo
- cairo/ector_renderer_cairo_gradient_linear.eo
- cairo/ector_renderer_cairo_gradient_radial.eo
- cairo/ector_renderer_cairo_shape.eo
-
- gl/ector_gl_buffer.eo
- gl/ector_gl_buffer_base.eo
- gl/ector_gl_surface.eo
- gl/ector_renderer_gl.eo
- gl/ector_renderer_gl_gradient_linear.eo
- gl/ector_renderer_gl_gradient_radial.eo
- gl/ector_renderer_gl_shape.eo
-
- software/ector_renderer_software.eo
- software/ector_renderer_software_buffer.eo
- software/ector_renderer_software_gradient_linear.eo
- software/ector_renderer_software_gradient_radial.eo
- software/ector_renderer_software_shape.eo
- software/ector_software_buffer.eo
- software/ector_software_buffer_base.eo
- software/ector_software_surface.eo
-)
-
-set(PUBLIC_HEADERS
- Ector.h
- ector_buffer.h
- ector_renderer.h
- ector_surface.h
- ector_util.h
-
- cairo/Ector_Cairo.h
-
- gl/Ector_GL.h
-
- software/Ector_Software.h
-)
-
-set(SOURCES
- ector_buffer.c
- ector_gl_internal.h
- ector_main.c
- ector_renderer.c
- ector_renderer_buffer.c
- ector_renderer_gradient.c
- ector_renderer_gradient_linear.c
- ector_renderer_gradient_radial.c
- ector_renderer_shape.c
-
- cairo/ector_cairo_software_surface.c
- cairo/ector_cairo_surface.c
- cairo/ector_renderer_cairo.c
- cairo/ector_renderer_cairo_gradient_linear.c
- cairo/ector_renderer_cairo_gradient_radial.c
- cairo/ector_renderer_cairo_shape.c
-
- gl/ector_gl_buffer.c
- gl/ector_gl_buffer_base.c
- gl/ector_gl_private.h
- gl/ector_gl_shader.c
- gl/ector_gl_surface.c
- gl/ector_renderer_gl.c
- gl/ector_renderer_gl_gradient_linear.c
- gl/ector_renderer_gl_gradient_radial.c
- gl/ector_renderer_gl_shape.c
- gl/shader/ector_gl_shaders.x
-
- software/ector_renderer_software_buffer.c
- software/ector_renderer_software_gradient_linear.c
- software/ector_renderer_software_gradient_radial.c
- software/ector_renderer_software_shape.c
- software/ector_software_buffer.c
- software/ector_software_gradient.c
- software/ector_software_rasterizer.c
- software/ector_software_surface.c
-)
-
-add_custom_target(ector-update-shaders
- COMMAND /bin/sh ${EFL_LIB_SOURCE_DIR}/gl/shader/gen_shaders.sh
- DEPENDS
- ${EFL_LIB_SOURCE_DIR}/gl/shader/gen_shaders.sh
- ${EFL_LIB_SOURCE_DIR}/gl/shader/fragment.glsl
- ${EFL_LIB_SOURCE_DIR}/gl/shader/vertex.glsl
- ${EFL_LIB_SOURCE_DIR}/gl/shader/include.glsl
- WORKING_DIRECTORY "${EFL_LIB_SOURCE_DIR}"
- COMMENT "SHADERS src/lib/ector/gl/shader/ector_gl_shaders.x (if needed)"
-)
-
-set(DEPENDENCIES ector-update-shaders)
diff --git a/src/lib/eet/CMakeLists.txt b/src/lib/eet/CMakeLists.txt
deleted file mode 100644
index fb2c02d297..0000000000
--- a/src/lib/eet/CMakeLists.txt
+++ /dev/null
@@ -1,39 +0,0 @@
-set(DESCRIPTION "Library for speedy data storage, retrieval, and compression")
-
-set(PKG_CONFIG_REQUIRES_PRIVATE
- zlib>=1.2.3
-)
-
-set(PUBLIC_LIBRARIES
- eina
- emile
-)
-
-set(LIBRARIES
- m
- support-rg_etc
- find-JPEG
-)
-
-set(PUBLIC_HEADERS
- Eet.h
-)
-
-set(SOURCES
- eet_alloc.c
- eet_cipher.c
- eet_connection.c
- eet_data.c
- eet_dictionary.c
- eet_image.c
- eet_lib.c
- eet_node.c
- Eet_private.h
- eet_utils.c
-)
-
-if(WITH_CRYPTO STREQUAL "gnutls")
- list(APPEND PKG_CONFIG_REQUIRES_PRIVATE gnutls)
-elseif(WITH_CRYPTO STREQUAL "openssl")
- list(APPEND PKG_CONFIG_REQUIRES_PRIVATE openssl)
-endif()
diff --git a/src/lib/eeze/CMakeLists.txt b/src/lib/eeze/CMakeLists.txt
deleted file mode 100644
index c9aa9e0147..0000000000
--- a/src/lib/eeze/CMakeLists.txt
+++ /dev/null
@@ -1,67 +0,0 @@
-set(DESCRIPTION "Ecore event abstraction library")
-
-set(PUBLIC_LIBRARIES
- eina
- ecore
-)
-
-set(LIBRARIES
- eo
- efl
- ecore_con
- ecore_file
- eet
- emile
-)
-
-set(PKG_CONFIG_REQUIRES_PRIVATE
- libudev
-)
-
-
-if (${HAVE_EEZE_MOUNT})
- list(APPEND PKG_CONFIG_REQUIRES_PRIVATE mount)
-endif()
-
-if (${ENABLE_TIZEN})
- list(APPEND PKG_CONFIG_REQUIRES_PRIVATE capi-system-sensor)
-endif()
-
-
-set(PUBLIC_HEADERS
- Eeze.h
- Eeze_Disk.h
- Eeze_Net.h
- Eeze_Sensor.h
-)
-
-set(SOURCES
- eeze_disk.c
- eeze_disk_mount.c
- eeze_disk_private.h
- eeze_disk_udev.c
- eeze_main.c
- eeze_net.c
- eeze_net_private.h
- eeze_sensor.c
- eeze_sensor_private.h
- eeze_udev_find.c
- eeze_udev_private.c
- eeze_udev_private.h
- eeze_udev_syspath.c
- eeze_udev_walk.c
- eeze_udev_watch.c
-)
-
-#mount files
-if(${HAVE_EEZE_MOUNT})
- if (${MOUNT_VERSION} LESS 2.19.0)
- list(APPEND SOURCES eeze_disk_libmount_old.c)
- elseif (${MOUNT_VERSION} GREATER 2.19.0)
- list(APPEND SOURCES eeze_disk_libmount_new.c)
- else()
- list(APPEND SOURCES eeze_disk_libmount.c)
- endif()
-else()
- list(APPEND SOURCES eeze_disk_dummy.c)
-endif()
diff --git a/src/lib/efl/CMakeLists.txt b/src/lib/efl/CMakeLists.txt
deleted file mode 100644
index 7f1672907a..0000000000
--- a/src/lib/efl/CMakeLists.txt
+++ /dev/null
@@ -1,93 +0,0 @@
-set(DESCRIPTION "EFL's general purpose library")
-
-set(LIBRARIES eo eina)
-
-set(PUBLIC_EO_FILES
- interfaces/efl_animator.eo
- interfaces/efl_canvas.eo
- interfaces/efl_canvas_pointer.eo
- interfaces/efl_config.eo
- interfaces/efl_container.eo
- interfaces/efl_content.eo
- interfaces/efl_control.eo
- interfaces/efl_file.eo
- interfaces/efl_gfx.eo
- interfaces/efl_gfx_buffer.eo
- interfaces/efl_gfx_fill.eo
- interfaces/efl_gfx_filter.eo
- interfaces/efl_gfx_gradient.eo
- interfaces/efl_gfx_gradient_linear.eo
- interfaces/efl_gfx_gradient_radial.eo
- interfaces/efl_gfx_path.eo
- interfaces/efl_gfx_shape.eo
- interfaces/efl_gfx_size_hint.eo
- interfaces/efl_gfx_stack.eo
- interfaces/efl_gfx_types.eot
- interfaces/efl_gfx_view.eo
- interfaces/efl_image.eo
- interfaces/efl_image_animated.eo
- interfaces/efl_image_load.eo
- interfaces/efl_input_device.eo
- interfaces/efl_input_types.eot
- interfaces/efl_interpolator.eo
- interfaces/efl_io_buffer.eo
- interfaces/efl_io_closer.eo
- interfaces/efl_io_positioner.eo
- interfaces/efl_io_queue.eo
- interfaces/efl_io_reader.eo
- interfaces/efl_io_sizer.eo
- interfaces/efl_io_writer.eo
- interfaces/efl_model.eo
- interfaces/efl_observable.eo
- interfaces/efl_observer.eo
- interfaces/efl_orientation.eo
- interfaces/efl_pack.eo
- interfaces/efl_pack_table.eo
- interfaces/efl_pack_layout.eo
- interfaces/efl_pack_linear.eo
- interfaces/efl_part.eo
- interfaces/efl_player.eo
- interfaces/efl_screen.eo
- interfaces/efl_text.eo
- interfaces/efl_text_types.eot
- interfaces/efl_types.eot
- interfaces/efl_ui_range.eo
- interfaces/efl_ui_autorepeat.eo
- interfaces/efl_vpath.eo
- interfaces/efl_vpath_core.eo
- interfaces/efl_vpath_file.eo
- interfaces/efl_vpath_file_core.eo
- interfaces/efl_vpath_manager.eo
-)
-
-set(PUBLIC_HEADERS
- Efl.h
- Efl_Config.h
- Efl_Model_Common.h
- interfaces/efl_common_internal.h
-)
-
-set(SOURCES
- interfaces/efl_interfaces_main.c
- interfaces/efl_model_common.c
- interfaces/efl_gfx_path.c
- interfaces/efl_gfx_shape.c
- interfaces/efl_vpath_file.c
- interfaces/efl_vpath_manager.c
- interfaces/efl_vpath_core.c
- interfaces/efl_vpath_file_core.c
- interfaces/efl_input_device.c
- interfaces/efl_io_closer.c
- interfaces/efl_io_positioner.c
- interfaces/efl_io_reader.c
- interfaces/efl_io_sizer.c
- interfaces/efl_io_writer.c
- interfaces/efl_io_buffer.c
- interfaces/efl_io_queue.c
- interfaces/efl_observer.c
-)
-
-set(DEFINITIONS -DEFL_GFX_FILTER_BETA)
-
-# XXX HACK: interfaces/efl_canvas.eo refers to Efl.Input.Focus!
-set(EOLIAN_EXTRA_PARAMS -I${CMAKE_SOURCE_DIR}/src/lib/evas/canvas)
diff --git a/src/lib/eina/CMakeLists.txt b/src/lib/eina/CMakeLists.txt
deleted file mode 100644
index 4c5ee50faa..0000000000
--- a/src/lib/eina/CMakeLists.txt
+++ /dev/null
@@ -1,176 +0,0 @@
-set(DESCRIPTION "A Library that implements fast data types and miscellaneous tools")
-
-if(ENABLE_SYSTEMD)
- list(APPEND PKG_CONFIG_REQUIRES_PRIVATE libsystemd)
-endif()
-
-if(ENABLE_VALGRIND)
- list(APPEND PKG_CONFIG_REQUIRES_PRIVATE valgrind)
-endif()
-
-if(UNWIND_FOUND)
- list(APPEND PKG_CONFIG_REQUIRES_PRIVATE libunwind libunwind-generic)
-endif()
-
-set(PUBLIC_LIBRARIES
- pthread
-)
-
-set(LIBRARIES
- m
- dl
- rt
-)
-
-if(HAVE_BSD_STRING_H)
- list(APPEND LIBRARIES bsd)
-endif()
-
-set(PUBLIC_HEADERS
- Eina.h
- eina_accessor.h
- eina_alloca.h
- eina_array.h
- eina_benchmark.h
- eina_bezier.h
- eina_binbuf.h
- eina_binshare.h
- eina_clist.h
- eina_config.h
- eina_config_gen.h
- eina_convert.h
- eina_counter.h
- eina_cow.h
- eina_cpu.h
- eina_crc.h
- eina_debug.h
- eina_error.h
- eina_evlog.h
- eina_file.h
- eina_file_common.h
- eina_fp.h
- eina_freeq.h
- eina_hamster.h
- eina_hash.h
- eina_inarray.h
- eina_inline_private.h
- eina_inlist.h
- eina_iterator.h
- eina_lalloc.h
- eina_list.h
- eina_lock.h
- eina_log.h
- eina_magic.h
- eina_main.h
- eina_matrix.h
- eina_matrixsparse.h
- eina_mempool.h
- eina_mmap.h
- eina_module.h
- eina_prefix.h
- eina_private.h
- eina_quad.h
- eina_quadtree.h
- eina_quaternion.h
- eina_rbtree.h
- eina_rectangle.h
- eina_refcount.h
- eina_safepointer.h
- eina_safety_checks.h
- eina_sched.h
- eina_share_common.h
- eina_simple_xml_parser.h
- eina_slice.h
- eina_slstr.h
- eina_str.h
- eina_strbuf.h
- eina_strbuf_common.h
- eina_strbuf_template_c.x
- eina_stringshare.h
- eina_thread.h
- eina_thread_queue.h
- eina_tiler.h
- eina_tmpstr.h
- eina_trash.h
- eina_types.h
- eina_unicode.h
- eina_ustrbuf.h
- eina_ustringshare.h
- eina_util.h
- eina_value.h
- eina_value_util.h
- eina_vector.h
- eina_xattr.h
- )
-
-set(SOURCES
- eina_abi.c
- eina_accessor.c
- eina_array.c
- eina_benchmark.c
- eina_bezier.c
- eina_binbuf.c
- eina_binshare.c
- eina_convert.c
- eina_counter.c
- eina_cow.c
- eina_cpu.c
- eina_crc.c
- eina_debug.c
- eina_debug_bt.c
- eina_debug_bt_file.c
- eina_debug_chunk.c
- eina_debug_monitor.c
- eina_debug_proto.c
- eina_debug_thread.c
- eina_error.c
- eina_evlog.c
- eina_file.c
- eina_file_common.c
- eina_fp.c
- eina_freeq.c
- eina_hamster.c
- eina_hash.c
- eina_inarray.c
- eina_inlist.c
- eina_iterator.c
- eina_lalloc.c
- eina_list.c
- eina_lock.c
- eina_log.c
- eina_magic.c
- eina_main.c
- eina_matrix.c
- eina_matrixsparse.c
- eina_mempool.c
- eina_mmap.c
- eina_module.c
- eina_prefix.c
- eina_quad.c
- eina_quadtree.c
- eina_quaternion.c
- eina_rbtree.c
- eina_rectangle.c
- eina_safepointer.c
- eina_safety_checks.c
- eina_sched.c
- eina_share_common.c
- eina_simple_xml_parser.c
- eina_slstr.c
- eina_str.c
- eina_strbuf.c
- eina_strbuf_common.c
- eina_strbuf_template_c.x
- eina_stringshare.c
- eina_thread.c
- eina_thread_queue.c
- eina_tiler.c
- eina_tmpstr.c
- eina_unicode.c
- eina_ustrbuf.c
- eina_ustringshare.c
- eina_util.c
- eina_value.c
- eina_value_util.c
- eina_xattr.c
- )
diff --git a/src/lib/eldbus/CMakeLists.txt b/src/lib/eldbus/CMakeLists.txt
deleted file mode 100644
index ecbea4cdb9..0000000000
--- a/src/lib/eldbus/CMakeLists.txt
+++ /dev/null
@@ -1,70 +0,0 @@
-set(DESCRIPTION "D-Bus access from Ecore")
-
-set(PKG_CONFIG_REQUIRES_PRIVATE
- dbus-1
-)
-
-set(LIBRARIES
- eina
- eo
- efl
- ecore
-)
-
-set(PUBLIC_EO_FILES
- eldbus_model_arguments.eo
- eldbus_model_connection.eo
- eldbus_model_method.eo
- eldbus_model_object.eo
- eldbus_model_proxy.eo
- eldbus_model_signal.eo
- eldbus_types.eot
-)
-
-set(PUBLIC_HEADERS
- Eldbus.h
- eldbus_connection.h
- eldbus_freedesktop.h
- eldbus_introspection.h
- eldbus_message.h
- eldbus_message_eina_value.h
- eldbus_message_helper.h
- Eldbus_Model.h
- eldbus_object.h
- eldbus_pending.h
- eldbus_proxy.h
- eldbus_service.h
- eldbus_signal_handler.h
-)
-
-set(SOURCES
- eldbus_core.c
- eldbus_freedesktop.c
- eldbus_introspection.c
- eldbus_message.c
- eldbus_message_from_eina_value.c
- eldbus_message_helper.c
- eldbus_message_to_eina_value.c
- eldbus_model_arguments.c
- eldbus_model_arguments_private.h
- eldbus_model_connection.c
- eldbus_model_connection_private.h
- eldbus_model_method.c
- eldbus_model_method_private.h
- eldbus_model_object.c
- eldbus_model_object_private.h
- eldbus_model_private.h
- eldbus_model_proxy.c
- eldbus_model_proxy_private.h
- eldbus_model_signal.c
- eldbus_model_signal_private.h
- eldbus_object.c
- eldbus_pending.c
- eldbus_private.h
- eldbus_private_types.h
- eldbus_proxy.c
- eldbus_service.c
- eldbus_signal_handler.c
-)
-
-set(COMPILE_FLAGS "-include ${CMAKE_BINARY_DIR}/src/lib/efl/config.h")
diff --git a/src/lib/embryo/CMakeLists.txt b/src/lib/embryo/CMakeLists.txt
deleted file mode 100644
index dc8328bedb..0000000000
--- a/src/lib/embryo/CMakeLists.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-set(DESCRIPTION "A small virtual machine engine and bytecode compiler")
-
-set(LIBRARIES
- eina
- m
-)
-
-set(PUBLIC_HEADERS
- Embryo.h
-)
-
-set(SOURCES
- embryo_amx.c
- embryo_args.c
- embryo_float.c
- embryo_main.c
- embryo_private.h
- embryo_rand.c
- embryo_str.c
- embryo_time.c
-)
diff --git a/src/lib/emile/CMakeLists.txt b/src/lib/emile/CMakeLists.txt
deleted file mode 100644
index 5ea77fdbc1..0000000000
--- a/src/lib/emile/CMakeLists.txt
+++ /dev/null
@@ -1,45 +0,0 @@
-set(DESCRIPTION "Library for simplified serialization, compression and ciphering")
-
-set(PKG_CONFIG_REQUIRES_PRIVATE
- zlib>=1.2.3
-)
-
-set(LIBRARIES
- eina
- efl
- m
- support-rg_etc
- find-JPEG
-)
-
-set(PUBLIC_HEADERS
- Emile.h
- emile_base64.h
- emile_cipher.h
- emile_compress.h
- emile_image.h
-)
-
-set(SOURCES
- emile_base64.c
- emile_compress.c
- emile_image.c
- emile_main.c
- emile_private.h
-)
-
-if(WITH_CRYPTO STREQUAL "gnutls")
- list(APPEND SOURCES emile_cipher_gnutls.c)
- list(APPEND PKG_CONFIG_REQUIRES_PRIVATE gnutls)
-elseif(WITH_CRYPTO STREQUAL "openssl")
- list(APPEND SOURCES emile_cipher_openssl.c)
- list(APPEND PKG_CONFIG_REQUIRES_PRIVATE openssl)
-else()
- list(APPEND SOURCES emile_cipher.c)
-endif()
-
-if(WITH_LZ4 STREQUAL "system")
- list(APPEND PKG_CONFIG_REQUIRES_PRIVATE liblz4)
-else()
- list(APPEND LIBRARIES support-lz4)
-endif()
diff --git a/src/lib/eo/CMakeLists.txt b/src/lib/eo/CMakeLists.txt
deleted file mode 100644
index 1946183a21..0000000000
--- a/src/lib/eo/CMakeLists.txt
+++ /dev/null
@@ -1,29 +0,0 @@
-set(DESCRIPTION "EFL's generic object system library.")
-
-set(PUBLIC_LIBRARIES
- eina
-)
-
-set(PUBLIC_HEADERS
- Eo.h
- efl_future.h
-)
-
-set(PUBLIC_EO_FILES
- efl_object.eo
- efl_class.eo
- efl_object_override.eo
- efl_interface.eo
-)
-
-set(SOURCES
- eo.c
- eo_ptr_indirection.c
- eo_ptr_indirection.h
- eo_base_class.c
- eo_class_class.c
- eo_add_fallback.c
- eo_add_fallback.h
- eo_private.h
- efl_future.c
-)
diff --git a/src/lib/eolian/CMakeLists.txt b/src/lib/eolian/CMakeLists.txt
deleted file mode 100644
index 02258317ae..0000000000
--- a/src/lib/eolian/CMakeLists.txt
+++ /dev/null
@@ -1,46 +0,0 @@
-set(DESCRIPTION "A library to parse .eo files ")
-
-set(LIBRARIES
- eina
-)
-
-#if (WINDOWS)
-# set(LIBRARIES ${LIBRARIES} evil)
-#endif (WINDOWS)
-
-set(PUBLIC_HEADERS
- Eolian.h
-)
-
-set(INCLUDE_DIRECTORIES
- ./
-)
-
-set(SOURCES
- database_class.c
- database_class_api.c
- database_constructor.c
- database_constructor_api.c
- database_event.c
- database_event_api.c
- database_expr.c
- database_expr_api.c
- database_function.c
- database_function_api.c
- database_function_parameter.c
- database_function_parameter_api.c
- database_implement.c
- database_implement_api.c
- database_type.c
- database_type_api.c
- database_validate.c
- database_var.c
- database_var_api.c
- eo_lexer.c
- eo_lexer.h
- eo_parser.c
- eo_parser.h
- eolian.c
- eolian_database.c
- eolian_database.h
-)
diff --git a/src/modules/ecore/system/systemd/CMakeLists.txt b/src/modules/ecore/system/systemd/CMakeLists.txt
deleted file mode 100644
index cfae76f109..0000000000
--- a/src/modules/ecore/system/systemd/CMakeLists.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-set(LIBRARIES
- eldbus
-)
-
-set(SOURCES
- ecore_system_systemd.c
-)
diff --git a/src/modules/ecore/system/tizen/CMakeLists.txt b/src/modules/ecore/system/tizen/CMakeLists.txt
deleted file mode 100644
index e185f39ec9..0000000000
--- a/src/modules/ecore/system/tizen/CMakeLists.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-set(PKG_CONFIG_REQUIRES_PRIVATE vconf)
-
-set(SOURCES ecore_system_tizen.c)
diff --git a/src/modules/ecore/system/upower/CMakeLists.txt b/src/modules/ecore/system/upower/CMakeLists.txt
deleted file mode 100644
index 6860d9b10f..0000000000
--- a/src/modules/ecore/system/upower/CMakeLists.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-set(LIBRARIES
- eldbus
-)
-
-set(SOURCES
- ecore_system_upower.c
-)
diff --git a/src/modules/eina/mp/chained_pool/CMakeLists.txt b/src/modules/eina/mp/chained_pool/CMakeLists.txt
deleted file mode 100644
index fd564b779e..0000000000
--- a/src/modules/eina/mp/chained_pool/CMakeLists.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-if(ENABLE_VALGRIND)
- list(APPEND PKG_CONFIG_REQUIRES_PRIVATE valgrind)
-endif()
-
-set(SOURCES eina_chained_mempool.c)
diff --git a/src/modules/eina/mp/one_big/CMakeLists.txt b/src/modules/eina/mp/one_big/CMakeLists.txt
deleted file mode 100644
index 49e758fbae..0000000000
--- a/src/modules/eina/mp/one_big/CMakeLists.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-if(ENABLE_VALGRIND)
- list(APPEND PKG_CONFIG_REQUIRES_PRIVATE valgrind)
-endif()
-
-set(SOURCES eina_one_big.c)
diff --git a/src/modules/eina/mp/pass_through/CMakeLists.txt b/src/modules/eina/mp/pass_through/CMakeLists.txt
deleted file mode 100644
index 0ab1349f70..0000000000
--- a/src/modules/eina/mp/pass_through/CMakeLists.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-if(ENABLE_VALGRIND)
- list(APPEND PKG_CONFIG_REQUIRES_PRIVATE valgrind)
-endif()
-
-set(SOURCES eina_pass_through.c)
diff --git a/src/static_libs/draw/CMakeLists.txt b/src/static_libs/draw/CMakeLists.txt
deleted file mode 100644
index b2ad0041dc..0000000000
--- a/src/static_libs/draw/CMakeLists.txt
+++ /dev/null
@@ -1,17 +0,0 @@
-set(LIBRARIES
- eina
-)
-
-set(SOURCES
- draw_main.c
- draw_main_neon.c
- draw_main_sse2.c
-)
-
-set(INCLUDE_DIRECTORIES
- ${CMAKE_BINARY_DIR}/src/lib
-)
-
-set(DEPENDENCIES
- efl-eo
-)
diff --git a/src/static_libs/freetype/CMakeLists.txt b/src/static_libs/freetype/CMakeLists.txt
deleted file mode 100644
index 5f669df285..0000000000
--- a/src/static_libs/freetype/CMakeLists.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-set(SOURCES
- sw_ft_math.c
- sw_ft_raster.c
- sw_ft_stroker.c
-)
diff --git a/src/static_libs/lz4/CMakeLists.txt b/src/static_libs/lz4/CMakeLists.txt
deleted file mode 100644
index 29bdb2032f..0000000000
--- a/src/static_libs/lz4/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-set(SOURCES
- lz4.c
- lz4.h
- lz4hc.c
- lz4hc.h
-)
diff --git a/src/static_libs/rg_etc/CMakeLists.txt b/src/static_libs/rg_etc/CMakeLists.txt
deleted file mode 100644
index 2511bc1837..0000000000
--- a/src/static_libs/rg_etc/CMakeLists.txt
+++ /dev/null
@@ -1,10 +0,0 @@
-set(LIBRARIES
- eina
-)
-
-set(SOURCES
- etc2_encoder.c
- rg_etc1.c
- rg_etc1.h
- rg_etc2.c
-)
diff --git a/src/static_libs/triangulator/CMakeLists.txt b/src/static_libs/triangulator/CMakeLists.txt
deleted file mode 100644
index 78185589df..0000000000
--- a/src/static_libs/triangulator/CMakeLists.txt
+++ /dev/null
@@ -1,18 +0,0 @@
-set(LIBRARIES
- eina
-)
-
-set(SOURCES
- triangulator_simple.c
- triangulator_simple.h
- triangulator_stroker.c
- triangulator_stroker.h
-)
-
-set(INCLUDE_DIRECTORIES
- ${CMAKE_BINARY_DIR}/src/lib
-)
-
-set(DEPENDENCIES
- efl-eo
-)
diff --git a/src/tests/ecore_con/CMakeLists.txt b/src/tests/ecore_con/CMakeLists.txt
deleted file mode 100644
index 13ba262884..0000000000
--- a/src/tests/ecore_con/CMakeLists.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-set(LIBRARIES
- ecore
- eet
-)
-
-set(SOURCES
- ecore_con_suite.c
- ecore_con_suite.h
- ecore_con_test_ecore_con.c
- ecore_con_test_ecore_con_eet.c
- ecore_con_test_ecore_con_url.c
- ecore_con_test_efl_net_ip_address.c
-)
diff --git a/src/tests/ector/suite/CMakeLists.txt b/src/tests/ector/suite/CMakeLists.txt
deleted file mode 100644
index 40f771790d..0000000000
--- a/src/tests/ector/suite/CMakeLists.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-set(SOURCES
- ector_suite.c
- ector_suite.h
- ector_test_init.c
-)
diff --git a/src/tests/eet/CMakeLists.txt b/src/tests/eet/CMakeLists.txt
deleted file mode 100644
index 9d4ac3af87..0000000000
--- a/src/tests/eet/CMakeLists.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-set(SOURCES
- eet_suite.c
- eet_suite.h
- eet_test_cache.c
- eet_test_cipher.c
- eet_test_common.c
- eet_test_common.h
- eet_test_connection.c
- eet_test_data.c
- eet_test_file.c
- eet_test_identity.c
- eet_test_image.c
- eet_test_init.c
-)
diff --git a/src/tests/eeze/CMakeLists.txt b/src/tests/eeze/CMakeLists.txt
deleted file mode 100644
index 65585c4f2d..0000000000
--- a/src/tests/eeze/CMakeLists.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-set(LIBRARIES
- eeze
-)
-
-set(SOURCES
- eeze_suite.c
- eeze_suite.h
- eeze_test_init.c
- eeze_test_net.c
- eeze_test_sensor.c
- eeze_test_udev.c
-)
diff --git a/src/tests/eina/CMakeLists.txt b/src/tests/eina/CMakeLists.txt
deleted file mode 100644
index 58738299ec..0000000000
--- a/src/tests/eina/CMakeLists.txt
+++ /dev/null
@@ -1,66 +0,0 @@
-set(LIBRARIES
- m
-)
-
-set(SOURCES
- eina_suite.c
- eina_suite.h
- eina_suite.x
- eina_test_abi.c
- eina_test_accessor.c
- eina_test_array.c
- eina_test_barrier.c
- eina_test_benchmark.c
- eina_test_bezier.c
- eina_test_binbuf.c
- eina_test_binshare.c
- eina_test_clist.c
- eina_test_convert.c
- eina_test_counter.c
- eina_test_cow.c
- eina_test_crc.c
- eina_test_error.c
- eina_test_file.c
- eina_test_fp.c
- eina_test_freeq.c
- eina_test_hash.c
- eina_test_inarray.c
- eina_test_inlist.c
- eina_test_iterator.c
- eina_test_lalloc.c
- eina_test_list.c
- eina_test_lock.c
- eina_test_log.c
- eina_test_magic.c
- eina_test_main.c
- eina_test_matrix.c
- eina_test_matrixsparse.c
- eina_test_mempool.c
- eina_test_module.c
- eina_test_module_dummy.c
- eina_test_quad.c
- eina_test_quadtree.c
- eina_test_quaternion.c
- eina_test_rbtree.c
- eina_test_rectangle.c
- eina_test_safepointer.c
- eina_test_sched.c
- eina_test_simple_xml_parser.c
- eina_test_slice.c
- eina_test_slstr.c
- eina_test_str.c
- eina_test_strbuf.c
- eina_test_tiler.c
- eina_test_tmpstr.c
- eina_test_trash.c
- eina_test_ustr.c
- eina_test_ustringshare.c
- eina_test_value.c
- eina_test_vector.c
- eina_test_xattr.c
- )
-
-set(DEPENDS
- eina_test_stringshare.c
- eina_test_util.c
- )
diff --git a/src/tests/eldbus/CMakeLists.txt b/src/tests/eldbus/CMakeLists.txt
deleted file mode 100644
index 386e7f39f5..0000000000
--- a/src/tests/eldbus/CMakeLists.txt
+++ /dev/null
@@ -1,25 +0,0 @@
-set(SOURCES
- eldbus_fake_server.c
- eldbus_fake_server.h
- eldbus_suite.c
- eldbus_suite.h
- eldbus_test_eldbus_init.c
- eldbus_test_eldbus_model.c
- eldbus_test_eldbus_model.h
- eldbus_test_eldbus_model_connection.c
- eldbus_test_eldbus_model_method.c
- eldbus_test_eldbus_model_object.c
- eldbus_test_eldbus_model_proxy.c
- eldbus_test_eldbus_model_signal.c
- eldbus_test_eldbus_object.c
- eldbus_test_eldbus_message.c
- eldbus_test_eldbus_signal_handler.c
- eldbus_test_eldbus_proxy.c
- eldbus_test_eldbus_pending_cancel.c
- eldbus_test_fake_server_eldbus_model_proxy.c
-)
-
-set(LIBRARIES
- ecore
- eina
-)
diff --git a/src/tests/emile/CMakeLists.txt b/src/tests/emile/CMakeLists.txt
deleted file mode 100644
index 7fe88e0381..0000000000
--- a/src/tests/emile/CMakeLists.txt
+++ /dev/null
@@ -1,10 +0,0 @@
-set(SOURCES
- emile_suite.c
- emile_test_base.c
- emile_test_base64.c
- emile_suite.h
-)
-
-set(LIBRARIES
- eina
-)
diff --git a/src/tests/eo/access/CMakeLists.txt b/src/tests/eo/access/CMakeLists.txt
deleted file mode 100644
index 19360f0333..0000000000
--- a/src/tests/eo/access/CMakeLists.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-set(LIBRARIES
- eina
- eo
-)
-
-set(SOURCES
- access_inherit.c
- access_inherit.h
- access_main.c
- access_simple.c
- access_simple.h
- access_simple_protected.h
-)
diff --git a/src/tests/eo/children/CMakeLists.txt b/src/tests/eo/children/CMakeLists.txt
deleted file mode 100644
index bcd86ef21c..0000000000
--- a/src/tests/eo/children/CMakeLists.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-set(LIBRARIES
- eo
-)
-
-set(SOURCES
- children_main.c
- children_simple.c
- children_simple.h
-)
diff --git a/src/tests/eo/composite_objects/CMakeLists.txt b/src/tests/eo/composite_objects/CMakeLists.txt
deleted file mode 100644
index cab44f9ed6..0000000000
--- a/src/tests/eo/composite_objects/CMakeLists.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-set(LIBRARIES
- eo
-)
-
-set(SOURCES
- composite_objects_comp.c
- composite_objects_comp.h
- composite_objects_main.c
- composite_objects_simple.c
- composite_objects_simple.h
-)
diff --git a/src/tests/eo/constructors/CMakeLists.txt b/src/tests/eo/constructors/CMakeLists.txt
deleted file mode 100644
index 60de7467b6..0000000000
--- a/src/tests/eo/constructors/CMakeLists.txt
+++ /dev/null
@@ -1,23 +0,0 @@
-set(LIBRARIES
- eo
-)
-
-set(SOURCES
- constructors_main.c
- constructors_mixin.c
- constructors_mixin.h
- constructors_simple.c
- constructors_simple.h
- constructors_simple2.c
- constructors_simple2.h
- constructors_simple3.c
- constructors_simple3.h
- constructors_simple4.c
- constructors_simple4.h
- constructors_simple5.c
- constructors_simple5.h
- constructors_simple6.c
- constructors_simple6.h
- constructors_simple7.c
- constructors_simple7.h
-)
diff --git a/src/tests/eo/function_overrides/CMakeLists.txt b/src/tests/eo/function_overrides/CMakeLists.txt
deleted file mode 100644
index c961d3be64..0000000000
--- a/src/tests/eo/function_overrides/CMakeLists.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-set(LIBRARIES
- eo
-)
-
-set(SOURCES
- function_overrides_inherit.c
- function_overrides_inherit.h
- function_overrides_inherit2.c
- function_overrides_inherit2.h
- function_overrides_inherit3.c
- function_overrides_inherit3.h
- function_overrides_main.c
- function_overrides_simple.c
- function_overrides_simple.h
-)
diff --git a/src/tests/eo/interface/CMakeLists.txt b/src/tests/eo/interface/CMakeLists.txt
deleted file mode 100644
index 8bc1a992fe..0000000000
--- a/src/tests/eo/interface/CMakeLists.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-set(LIBRARIES
- eo
-)
-
-set(SOURCES
-interface_interface.c
-interface_interface.h
-interface_interface2.c
-interface_interface2.h
-interface_main.c
-interface_simple.c
-interface_simple.h
-
-)
diff --git a/src/tests/eo/mixin/CMakeLists.txt b/src/tests/eo/mixin/CMakeLists.txt
deleted file mode 100644
index a7f92d6883..0000000000
--- a/src/tests/eo/mixin/CMakeLists.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-set(LIBRARIES
- eo
-)
-
-set(SOURCES
- mixin_inherit.c
- mixin_inherit.h
- mixin_main.c
- mixin_mixin.c
- mixin_mixin.h
- mixin_mixin2.c
- mixin_mixin2.h
- mixin_mixin3.c
- mixin_mixin3.h
- mixin_mixin4.c
- mixin_mixin4.h
- mixin_simple.c
- mixin_simple.h
-)
diff --git a/src/tests/eo/signals/CMakeLists.txt b/src/tests/eo/signals/CMakeLists.txt
deleted file mode 100644
index f6d3fae51b..0000000000
--- a/src/tests/eo/signals/CMakeLists.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-set(LIBRARIES
- eo
-)
-
-set(SOURCES
- signals_main.c
- signals_simple.c
- signals_simple.h
-)
diff --git a/src/tests/eo/suite/CMakeLists.txt b/src/tests/eo/suite/CMakeLists.txt
deleted file mode 100644
index 14cad83941..0000000000
--- a/src/tests/eo/suite/CMakeLists.txt
+++ /dev/null
@@ -1,24 +0,0 @@
-set(LIBRARIES
- eo
-)
-
-set(SOURCES
- eo_error_msgs.c
- eo_error_msgs.h
- eo_suite.c
- eo_suite.h
- eo_test_call_errors.c
- eo_test_class_behaviour_errors.c
- eo_test_class_errors.c
- eo_test_class_simple.c
- eo_test_class_simple.h
- eo_test_class_singleton.c
- eo_test_class_singleton.h
- eo_test_domain.c
- eo_test_domain.h
- eo_test_event.c
- eo_test_general.c
- eo_test_init.c
- eo_test_threaded_calls.c
- eo_test_value.c
-)
diff --git a/src/tests/eolian/CMakeLists.txt b/src/tests/eolian/CMakeLists.txt
deleted file mode 100644
index c7ea8f1ca2..0000000000
--- a/src/tests/eolian/CMakeLists.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-set(INCLUDE_DIRECTORIES
- ${CMAKE_SOURCE_DIR}/src/lib/eo/
-)
-
-set(LIBRARIES
- eina
- eolian
-)
-
-set(DEFINITIONS
- -DEOLIAN_GEN="${EOLIAN_BIN}")
-
-set(SOURCES
- #for now no test suite
- eolian_generation.c
- eolian_parsing.c
- eolian_suite.c
- eolian_suite.h
-)