summaryrefslogtreecommitdiff
path: root/mobile_src/Contact/CMakeLists.txt
diff options
context:
space:
mode:
authorSehong Na <sehong.na@samsung.com>2014-05-31 13:20:25 +0900
committerSehong Na <sehong.na@samsung.com>2014-05-31 13:20:25 +0900
commit59c401dcb6127a3ca74995bd3b3a7864a95fc418 (patch)
tree1d621db3eb1506f2fa42f1c38e143b90e1c3984f /mobile_src/Contact/CMakeLists.txt
downloadwrt-plugins-tizen-59c401dcb6127a3ca74995bd3b3a7864a95fc418.tar.gz
wrt-plugins-tizen-59c401dcb6127a3ca74995bd3b3a7864a95fc418.tar.bz2
wrt-plugins-tizen-59c401dcb6127a3ca74995bd3b3a7864a95fc418.zip
Diffstat (limited to 'mobile_src/Contact/CMakeLists.txt')
-rwxr-xr-xmobile_src/Contact/CMakeLists.txt98
1 files changed, 98 insertions, 0 deletions
diff --git a/mobile_src/Contact/CMakeLists.txt b/mobile_src/Contact/CMakeLists.txt
new file mode 100755
index 0000000..b4b8634
--- /dev/null
+++ b/mobile_src/Contact/CMakeLists.txt
@@ -0,0 +1,98 @@
+SET(TARGET_NAME ${contact_target})
+SET(DESTINATION_NAME ${contact_dest})
+SET(TARGET_IMPL_NAME ${contact_impl})
+
+PKG_CHECK_MODULES(platform_pkgs_contact REQUIRED contacts-service2 libpcrecpp)
+
+ADD_DEFINITIONS("-fvisibility=hidden")
+
+INCLUDE_DIRECTORIES(
+ ${TOP}/Tizen
+ ${INCLUDE_COMMON}
+ ${platform_pkgs_contact_INCLUDE_DIRS}
+)
+
+SET(CMAKE_INSTALL_RPATH
+ ${CMAKE_INSTALL_RPATH}
+ ${CMAKE_INSTALL_PREFIX}/${DESTINATION_LIB_PREFIX}/${tizen_dest}
+ ${CMAKE_INSTALL_PREFIX}/${DESTINATION_LIB_PREFIX}/${DESTINATION_NAME}
+)
+
+SET(SRCS_IMPL
+ ContactQueue.cpp
+ IAddressBook.cpp
+ IContactManager.cpp
+ IContact.cpp
+ IPerson.cpp
+ ContactGroup.cpp
+ ContactRef.cpp
+ ContactName.cpp
+ ContactAnniversary.cpp
+ ContactAddress.cpp
+ ContactFactory.cpp
+ ContactPhoneNumber.cpp
+ ContactEmailAddress.cpp
+ ContactOrganization.cpp
+ ContactWebSite.cpp
+ ContactManager.cpp
+ AddressBook.cpp
+ Contact.cpp
+ Person.cpp
+ ContactObjectA2PConverter.cpp
+ ContactObjectP2AConverter.cpp
+ ContactsSvcObjectConverter.cpp
+ ContactSearchEngine.cpp
+ ContactFilterConverter.cpp
+ ContactFilterValidator.cpp
+ ContactsSvcChangeListenerManager.cpp
+ ContactsSvcWrapper.cpp
+ ContactUtility.cpp
+ PersonFilterValidator.cpp
+ PersonSearchEngine.cpp
+ AddressBookController.cpp
+ ContactAsyncCallbackManager.cpp
+ ContactListenerManager.cpp
+ ContactConverter.cpp
+ ContactManagerController.cpp
+ JSContact.cpp
+ JSAddressBook.cpp
+ JSAddressBookChangeCallbackManager.cpp
+ JSContactGroup.cpp
+ JSPerson.cpp
+ JSContactRef.cpp
+ JSContactName.cpp
+ JSContactAnniversary.cpp
+ JSContactAddress.cpp
+ JSContactManager.cpp
+ JSContactManagerChangeCallbackManager.cpp
+ JSContactPhoneNumber.cpp
+ JSContactEmailAddress.cpp
+ JSContactOrganization.cpp
+ JSContactWebSite.cpp
+)
+
+ADD_LIBRARY(${TARGET_IMPL_NAME} SHARED ${SRCS_IMPL})
+
+TARGET_LINK_LIBRARIES(${TARGET_IMPL_NAME}
+ ${LIBS_COMMON}
+ ${tizen_impl}
+ ${platform_pkgs_contact_LIBRARIES}
+)
+
+SET(SRCS
+ plugin_config.cpp
+ plugin_initializer.cpp
+)
+
+ADD_LIBRARY(${TARGET_NAME} SHARED ${SRCS})
+
+TARGET_LINK_LIBRARIES(${TARGET_NAME}
+ ${TARGET_IMPL_NAME}
+)
+
+INSTALL(TARGETS ${TARGET_NAME} ${TARGET_IMPL_NAME} LIBRARY DESTINATION ${DESTINATION_LIB_PREFIX}/${DESTINATION_NAME})
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/config.xml DESTINATION ${DESTINATION_LIB_PREFIX}/${DESTINATION_NAME})
+INSTALL(
+ DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ DESTINATION ${DESTINATION_HEADER_PREFIX}/contact
+ FILES_MATCHING PATTERN "*.h" PATTERN "CMakeFiles" EXCLUDE
+)