summaryrefslogtreecommitdiff
path: root/email-api/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'email-api/CMakeLists.txt')
-rwxr-xr-xemail-api/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/email-api/CMakeLists.txt b/email-api/CMakeLists.txt
index eea919f..9ea8f18 100755
--- a/email-api/CMakeLists.txt
+++ b/email-api/CMakeLists.txt
@@ -14,6 +14,7 @@ MESSAGE(">>> Build type: ${CMAKE_BUILD_TYPE}")
SET(VISIBILITY "-DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\"")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${VISIBILITY} -fvisibility=hidden")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wl,--gc-sections")
##########################################################
# Define Email API
@@ -35,13 +36,14 @@ INCLUDE_DIRECTORIES(
${CMAKE_SOURCE_DIR}/email-api/include
${CMAKE_SOURCE_DIR}/email-api/socket/include
${CMAKE_SOURCE_DIR}/email-ipc/include
+ ${CMAKE_SOURCE_DIR}/email-ipc/email-activation/include
${CMAKE_SOURCE_DIR}/email-core/include
${CMAKE_SOURCE_DIR}/email-core/email-storage/include
${CMAKE_SOURCE_DIR}/email-common-use/include
)
INCLUDE(FindPkgConfig)
-pkg_check_modules(api_pkgs REQUIRED glib-2.0 dlog dbus-1 vconf db-util contacts-service2 uw-imap-toolkit)
+pkg_check_modules(api_pkgs REQUIRED glib-2.0 dlog dbus-1 vconf contacts-service2 uw-imap-toolkit gmime-2.6)
FOREACH(flag ${api_pkgs_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
@@ -59,7 +61,7 @@ TARGET_LINK_LIBRARIES(${API-LIB} ${api_pkgs_LDFLAGS} email-ipc email-storage ema
SET_TARGET_PROPERTIES(${API-LIB} PROPERTIES SOVERSION ${VERSION_MAJOR})
SET_TARGET_PROPERTIES(${API-LIB} PROPERTIES VERSION ${VERSION})
-INSTALL(TARGETS ${API-LIB} DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries)
+INSTALL(TARGETS ${API-LIB} DESTINATION lib COMPONENT RuntimeLibraries)
SET(EMAIL-API-HEADERS
${CMAKE_SOURCE_DIR}/email-api/include/email-api.h
@@ -107,7 +109,7 @@ TARGET_LINK_LIBRARIES(${SMIME-API-LIB} ${api_pkgs_LDFLAGS} email-ipc email-stora
SET_TARGET_PROPERTIES(${SMIME-API-LIB} PROPERTIES SOVERSION ${VERSION_MAJOR})
SET_TARGET_PROPERTIES(${SMIME-API-LIB} PROPERTIES VERSION ${VERSION})
-INSTALL(TARGETS ${SMIME-API-LIB} DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries)
+INSTALL(TARGETS ${SMIME-API-LIB} DESTINATION lib COMPONENT RuntimeLibraries)
SET(SMIME-EMAIL-API-HEADERS
${CMAKE_SOURCE_DIR}/email-api/include/email-api-smime.h