1 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
2 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/client)
3 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/common)
4 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/common/ipc)
6 SET(CLIENT contacts-service2)
9 ctsvc_client_activity.c
11 ctsvc_client_db_notification.c
14 ctsvc_client_service.c
17 ctsvc_client_setting.c
21 ctsvc_client_service_helper.c
22 ctsvc_client_db_helper.c
23 ctsvc_client_activity_helper.c
24 ctsvc_client_person_helper.c
25 ctsvc_client_group_helper.c
26 ctsvc_client_phonelog_helper.c
28 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_marshal.c
29 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_addressbook.c
30 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_contact.c
31 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_my_profile.c
32 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_group.c
33 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_person.c
34 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_result.c
35 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_simple_contact.c
36 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_result.c
37 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_updated_info.c
39 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_activity.c
40 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_activity_photo.c
41 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_address.c
42 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_company.c
43 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_email.c
44 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_event.c
45 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_grouprelation.c
46 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_messenger.c
47 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_name.c
48 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_nickname.c
49 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_note.c
50 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_number.c
51 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_relationship.c
52 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_image.c
53 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_url.c
54 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_extension.c
55 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_profile.c
56 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_sip.c
58 ${CMAKE_SOURCE_DIR}/common/ctsvc_filter.c
59 ${CMAKE_SOURCE_DIR}/common/ctsvc_inotify.c
60 ${CMAKE_SOURCE_DIR}/common/ctsvc_list.c
61 ${CMAKE_SOURCE_DIR}/common/ctsvc_localize_utils.c
62 ${CMAKE_SOURCE_DIR}/common/ctsvc_mutex.c
63 ${CMAKE_SOURCE_DIR}/common/ctsvc_query.c
64 ${CMAKE_SOURCE_DIR}/common/ctsvc_record.c
65 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_addressbook.c
66 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_contact.c
67 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_my_profile.c
68 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_group.c
69 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_person.c
70 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_result.c
71 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_updated_info.c
72 ${CMAKE_SOURCE_DIR}/common/ctsvc_socket.c
73 ${CMAKE_SOURCE_DIR}/common/ctsvc_vcard.c
74 ${CMAKE_SOURCE_DIR}/common/ctsvc_view.c
75 ${CMAKE_SOURCE_DIR}/common/ctsvc_handle.c
77 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_sdn.c
78 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_sdn.c
79 ${CMAKE_SOURCE_DIR}/common/ctsvc_sim.c
80 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_speeddial.c
81 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_speeddial.c
82 ${CMAKE_SOURCE_DIR}/common/ctsvc_image_util.c
85 IF(ENABLE_LOG_FEATURE)
87 ctsvc_client_phonelog.c
88 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_phonelog.c
89 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_phonelog.c
91 ENDIF(ENABLE_LOG_FEATURE)
93 pkg_check_modules(client_pkgs REQUIRED glib-2.0 pims-ipc capi-base-common dlog libtzplatform-config
94 icu-uc capi-media-image-util libsystemd capi-system-info)
96 INCLUDE_DIRECTORIES(${client_pkgs_INCLUDE_DIRS})
97 LINK_DIRECTORIES(${client_pkgs_LIBRARY_DIRS})
99 ADD_DEFINITIONS("-D_CONTACTS_IPC_CLIENT")
101 ADD_LIBRARY(${CLIENT} SHARED ${SRCS})
102 SET_TARGET_PROPERTIES(${CLIENT} PROPERTIES VERSION ${FULLVER} SOVERSION ${MAJORVER})
103 TARGET_LINK_LIBRARIES(${CLIENT} ${client_pkgs_LIBRARIES} pthread)
104 INSTALL(TARGETS ${CLIENT} DESTINATION ${LIB_INSTALL_DIR})
106 # Install header file
107 SET(DEST_INCLUDE_DIR "${INCLUDE_INSTALL_DIR}/contacts-svc")
108 FILE(GLOB HEADER_FILES ${CMAKE_SOURCE_DIR}/include/*.h)
109 INSTALL(FILES ${HEADER_FILES} DESTINATION ${DEST_INCLUDE_DIR})
111 CONFIGURE_FILE(${CLIENT}.pc.in ${CLIENT}.pc @ONLY)
112 INSTALL(FILES ${CLIENT}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)