summaryrefslogtreecommitdiff
path: root/cmake/config/common.cmake
Commit message (Collapse)AuthorAgeFilesLines
* cmake: EFL_OPTION() now supports DEPENDS to handle conditionals.Gustavo Sverzut Barbieri2017-01-251-1/+14
| | | | | | | | This is now used by ENABLE_SYSTEMD and ENABLE_VALGRIND, which moves to "common.cmake" since they are shared among multiple libraries. With that I found that LINK_FLAGS is indeed a string, not a CMake List (space separated, not ";"), then fix that so compilation actually works.
* cmake/common: add missing checks for eina, simplify to one file.Gustavo Sverzut Barbieri2017-01-251-2/+42
| | | | | | | | | | | Since the macros were moved to EflMacros.cmake, there is no reason to keep CommonHeaderChecks.cmake anymore, put them all in config/common.cmake Keep the checks sorted so they're easy to organize. Add missing check for prctl() and iconv() (which we were checking iconv.h, but the code used '#if HAVE_ICONV').
* cmake: major rework of check and pkg-config dependencies.Gustavo Sverzut Barbieri2017-01-231-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | make FUNC_CHECK(), TYPE_CHECK() and HEADER_CHECK() more general and they can be set to a scope, like "eina", then all symbols are prefixed with that. The scope is created with CHECK_INIT(), and EFL_HEADER_CHECKS_FINALIZE() will finish that. This makes it possible for cmake/config/eina.cmake + cmake/post/eina.cmake to add stuff to the generated file, better than hand edit the template. CHECK_APPEND_DEFINE(name val) is now the base to add symbols to the generated file in the current scope. Then convert cmake/config/eina.cmake to use that and match the autotools values (were a bit off). This exposed enabling valgrind was broken due incorrect pkg-config usage with cmake (it's not obvious), it was using just the libraries, while LDFLAGS are needed to get -L/usr/lib/valgrind. Then also convert to CFLAGS provided by pkg-config and make that automatic for PKG_CONFIG_REQUIRES and PKG_CONFIG_REQUIRES_PRIVATE. Also, eina-mempool modules use valgrind and must use that now that's propagating correctly.
* cmake: reduce number of redundant variables set in cmake.Gustavo Sverzut Barbieri2017-01-231-9/+1
| | | | | Avoid redundant variables in cmake, whenever they are needed as duplicates, only do that in the template.
* build: use CMAKE defined variablesMarcel Hollerbach2017-01-231-7/+0
|
* build: make eina workingMarcel Hollerbach2017-01-231-2/+18
| | | | | | | This brings in the checks for all the headers and function that are required in eina. With this commit only a few other checks are missing. This is NOT tested on windows or mac os i can just verify that it runs here on a arch linux system.
* build: we build dev per defaultMarcel Hollerbach2017-01-231-2/+1
|
* build: set MODULE_ARCH correctlyMarcel Hollerbach2017-01-231-0/+1
|
* cmake: we need to enable beta api supportMarcel Hollerbach2017-01-231-0/+3
| | | | otherwise we cannot build our own api...
* CMake: infra to build modules (static, on or off).Gustavo Sverzut Barbieri2017-01-231-6/+1
|
* CMake: rework to use some helper macros.Gustavo Sverzut Barbieri2017-01-231-0/+30
This tries to defines some macros to create a cleaner build system.