Marcel Hollerbach
5c548d4c63
build: we build dev per default
2017-01-23 18:23:40 +01:00
Marcel Hollerbach
40cb00dc57
build: set MODULE_ARCH correctly
2017-01-23 18:23:40 +01:00
Gustavo Sverzut Barbieri
8df6ac453d
EflMacros: automatically provide ON;OFF;STATIC option and defines.
...
Automatically create one option to enable, disable or make it
statically linked into the code, with a define to reflect build type.
2017-01-23 18:23:40 +01:00
Marcel Hollerbach
308c8c4ef7
cmake: This should be public linked no private
...
otherwise we are linking symbols
2017-01-23 18:23:40 +01:00
Marcel Hollerbach
e1e7614ea4
build: PACKAGE_BUILD_DIR is now defined for everyone
2017-01-23 18:23:40 +01:00
Marcel Hollerbach
2a5c2a0c3c
cmake: improve versioning
...
The version defines are now done all the time. and the version pattern
does mach the one from autotools. And supports release mode now.
2017-01-23 18:23:40 +01:00
Marcel Hollerbach
9f2a2f7968
cmake: we need to enable beta api support
...
otherwise we cannot build our own api...
2017-01-23 18:23:40 +01:00
Marcel Hollerbach
fe1863e30d
cmake: move PACKAGE defines into a sane place
...
this should support all the vars used in all efl subsystems
2017-01-23 18:23:40 +01:00
Gustavo Sverzut Barbieri
76e68de5d6
EflMacros: auto-handling of pkg-config files.
2017-01-23 18:23:40 +01:00
Gustavo Sverzut Barbieri
d9815a6837
CMake: move eina binaries to single dir, add helper macros.
...
For one-source directories, be smart and just define SOURCES to that,
will reduce the number of too-simplistic CMakeLists.txt in our tree.
This also fixes problems with libraries, they should be private, not
public. So specify both kinds as different variables.
2017-01-23 18:23:40 +01:00
Gustavo Sverzut Barbieri
3d5abc081f
EflMacros: major improvements towards usability.
...
Stick to one target per directory and remove prefix from variables,
makes it cleaner and easier to use.
Document variables used and use a more consistent name that matches
CMake properties.
2017-01-23 18:23:40 +01:00
Gustavo Sverzut Barbieri
e1b98ca4f2
EflMacros: trust target name.
...
since this will be made automatic later and we can guarantee
consistency in the file hierarchy, no need to lowercase that.
2017-01-23 18:23:40 +01:00
Gustavo Sverzut Barbieri
c4e78153b1
EflMacros: replace macros with functions.
...
Macros do not start a new scope and can leave leftovers, then use
functions. However to set and append to global scope is cumbersome,
add functions to aid that.
2017-01-23 18:23:40 +01:00
Gustavo Sverzut Barbieri
76212a9162
CMake: infra to build modules (static, on or off).
2017-01-23 18:23:40 +01:00
Gustavo Sverzut Barbieri
dee24c3821
CMake: rework to use some helper macros.
...
This tries to defines some macros to create a cleaner build system.
2017-01-23 18:23:40 +01:00