build: use CMAKE defined variables

This commit is contained in:
Marcel Hollerbach 2017-01-23 15:51:30 +01:00
parent 6c87f62b90
commit 34074fd0e7
2 changed files with 2 additions and 8 deletions

View File

@ -15,13 +15,6 @@ set(EFL_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
set(EFL_VERSION_MINOR ${PROJECT_VERSION_MINOR})
set(MODULE_ARCH "v-${VMAJ}.${VMIN}")
#change when on windows
if (WIN32)
set(SHARED_LIB_SUFFIX ".dll")
else()
set(SHARED_LIB_SUFFIX ".so")
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)

View File

@ -17,7 +17,8 @@
#cmakedefine EINA_STATIC_BUILD_PASS_THROUGH 1
#define MODULE_ARCH "@MODULE_ARCH@"
#define SHARED_LIB_SUFFIX "@SHARED_LIB_SUFFIX@"
#define SHARED_LIB_SUFFIX "@CMAKE_SHARED_LIBRARY_SUFFIX@"
#define EXEEXT "@CMAKE_EXECUTABLE_SUFFIX@"
#if defined (HAVE_LISTXATTR) && defined (HAVE_SETXATTR) && defined (HAVE_GETXATTR)
#define HAVE_XATTR