ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "")
MESSAGE("Build type: ${CMAKE_BUILD_TYPE}")
-SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -O0 -g -Wall")
+SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} -O2 -g -Wall")
##########################################################
# Define Framework Utils
##########################################################
SET(UTILS-SRCS
+ ${CMAKE_SOURCE_DIR}/utils/MsgCallStatusManager.cpp
${CMAKE_SOURCE_DIR}/utils/MsgDebug.cpp
${CMAKE_SOURCE_DIR}/utils/MsgException.cpp
${CMAKE_SOURCE_DIR}/utils/MsgUtilFunction.cpp
+ ${CMAKE_SOURCE_DIR}/utils/MsgTextConvert.cpp
${CMAKE_SOURCE_DIR}/utils/MsgIpcSocket.cpp
${CMAKE_SOURCE_DIR}/utils/MsgUtilFile.cpp
${CMAKE_SOURCE_DIR}/utils/MsgSqliteWrapper.cpp
- ${CMAKE_SOURCE_DIR}/utils/MsgSoundPlayer.cpp
${CMAKE_SOURCE_DIR}/utils/MsgUtilStorage.cpp
${CMAKE_SOURCE_DIR}/utils/MsgGconfWrapper.cpp
${CMAKE_SOURCE_DIR}/utils/MsgContact.cpp
- ${CMAKE_SOURCE_DIR}/utils/MsgNotificationWrapper.cpp
+ ${CMAKE_SOURCE_DIR}/utils/MsgVMessage.cpp
${CMAKE_SOURCE_DIR}/utils/MsgMemory.cpp
${CMAKE_SOURCE_DIR}/utils/MsgMmsMessage.cpp
- ${CMAKE_SOURCE_DIR}/utils/MsgSpamFilter.cpp
${CMAKE_SOURCE_DIR}/utils/MsgDrmWrapper.cpp
+ ${CMAKE_SOURCE_DIR}/utils/MsgJsonParser.cpp
+ ${CMAKE_SOURCE_DIR}/utils/MsgSerialize.cpp
+ ${CMAKE_SOURCE_DIR}/utils/MsgSmil.cpp
+ ${CMAKE_SOURCE_DIR}/utils/MsgUtilMime.cpp
)
INCLUDE_DIRECTORIES(
- ${CMAKE_SOURCE_DIR}/include/mapi
+ ${CMAKE_SOURCE_DIR}/include/mapi
${CMAKE_SOURCE_DIR}/include/common
- ${CMAKE_SOURCE_DIR}/include/framework
- ${CMAKE_SOURCE_DIR}/include/msg_helper
${CMAKE_SOURCE_DIR}/include/utils
+ ${CMAKE_SOURCE_DIR}/vobject-engine/include
)
INCLUDE(FindPkgConfig)
-pkg_check_modules(utils_pkgs REQUIRED glib-2.0 vconf db-util contacts-service dlog pmapi mm-session alarm-service notification phone-misc drm-client drm-trusted)
+
+SET(PKG_MODULES glib-2.0 vconf dlog libxml-2.0 boost json-glib-1.0 capi-system-info capi-media-thumbnail-util capi-media-image-util aul sqlite3 capi-media-metadata-extractor icu-uc libsystemd-login libsmack contacts-service2)
+pkg_check_modules(utils_pkgs REQUIRED ${PKG_MODULES})
FOREACH(flag ${utils_pkgs_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
+ADD_DEFINITIONS("-DFEATURE_JAVA_MMS")
-SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS}")
-SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed")
+SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -ldl")
ADD_LIBRARY(${UTILS-LIB} SHARED ${UTILS-SRCS})
-TARGET_LINK_LIBRARIES(${UTILS-LIB} ${utils_pkgs_LDFLAGS} rt ${VOBJECT-LIB})
+TARGET_LINK_LIBRARIES(${UTILS-LIB} ${utils_pkgs_LDFLAGS} rt ${VOBJECT-LIB} dl pthread)
-INSTALL(TARGETS ${UTILS-LIB} DESTINATION lib COMPONENT RuntimeLibraries)
+INSTALL(TARGETS ${UTILS-LIB} DESTINATION ${LIBDIR} COMPONENT RuntimeLibraries)