1 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
3 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include/wearable)
6 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include/mobile)
8 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/client)
9 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/common)
10 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/common/ipc)
12 SET(CLIENT contacts-service2)
15 ctsvc_client_activity.c
17 ctsvc_client_db_notification.c
20 ctsvc_client_service.c
23 ctsvc_client_setting.c
27 ctsvc_client_service_helper.c
28 ctsvc_client_db_helper.c
29 ctsvc_client_activity_helper.c
30 ctsvc_client_person_helper.c
31 ctsvc_client_group_helper.c
32 ctsvc_client_phonelog_helper.c
34 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_marshal.c
35 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_addressbook.c
36 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_contact.c
37 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_my_profile.c
38 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_group.c
39 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_person.c
40 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_result.c
41 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_simple_contact.c
42 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_result.c
43 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_updated_info.c
45 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_activity.c
46 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_activity_photo.c
47 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_address.c
48 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_company.c
49 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_email.c
50 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_event.c
51 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_grouprelation.c
52 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_messenger.c
53 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_name.c
54 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_nickname.c
55 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_note.c
56 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_number.c
57 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_relationship.c
58 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_image.c
59 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_url.c
60 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_extension.c
61 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_profile.c
62 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_sip.c
64 ${CMAKE_SOURCE_DIR}/common/ctsvc_filter.c
65 ${CMAKE_SOURCE_DIR}/common/ctsvc_inotify.c
66 ${CMAKE_SOURCE_DIR}/common/ctsvc_list.c
67 ${CMAKE_SOURCE_DIR}/common/ctsvc_localize.c
68 ${CMAKE_SOURCE_DIR}/common/ctsvc_localize_utils.c
69 ${CMAKE_SOURCE_DIR}/common/ctsvc_localize_jp.c
70 ${CMAKE_SOURCE_DIR}/common/ctsvc_localize_kor.c
71 ${CMAKE_SOURCE_DIR}/common/ctsvc_localize_ch.c
72 ${CMAKE_SOURCE_DIR}/common/ctsvc_normalize.c
73 ${CMAKE_SOURCE_DIR}/common/ctsvc_mutex.c
74 ${CMAKE_SOURCE_DIR}/common/ctsvc_query.c
75 ${CMAKE_SOURCE_DIR}/common/ctsvc_record.c
76 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_addressbook.c
77 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_contact.c
78 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_my_profile.c
79 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_group.c
80 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_person.c
81 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_result.c
82 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_updated_info.c
83 ${CMAKE_SOURCE_DIR}/common/ctsvc_socket.c
84 ${CMAKE_SOURCE_DIR}/common/ctsvc_vcard.c
85 ${CMAKE_SOURCE_DIR}/common/ctsvc_view.c
86 ${CMAKE_SOURCE_DIR}/common/ctsvc_handle.c
88 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_sdn.c
89 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_sdn.c
90 ${CMAKE_SOURCE_DIR}/common/ctsvc_sim.c
91 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_speeddial.c
92 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_speeddial.c
93 ${CMAKE_SOURCE_DIR}/common/ctsvc_image_util.c
96 IF(ENABLE_LOG_FEATURE)
98 ctsvc_client_phonelog.c
99 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_phonelog.c
100 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_phonelog.c
102 ENDIF(ENABLE_LOG_FEATURE)
104 pkg_check_modules(client_pkgs REQUIRED glib-2.0 pims-ipc capi-base-common dlog libtzplatform-config
105 icu-uc capi-media-image-util)
107 INCLUDE_DIRECTORIES(${client_pkgs_INCLUDE_DIRS})
108 LINK_DIRECTORIES(${client_pkgs_LIBRARY_DIRS})
110 ADD_DEFINITIONS("-D_CONTACTS_IPC_CLIENT")
112 ADD_LIBRARY(${CLIENT} SHARED ${SRCS})
113 SET_TARGET_PROPERTIES(${CLIENT} PROPERTIES VERSION ${FULLVER} SOVERSION ${MAJORVER})
114 TARGET_LINK_LIBRARIES(${CLIENT} ${client_pkgs_LIBRARIES} pthread)
115 INSTALL(TARGETS ${CLIENT} DESTINATION ${LIB_INSTALL_DIR})
117 # Install header file
118 SET(DEST_INCLUDE_DIR "${INCLUDE_INSTALL_DIR}/contacts-svc")
120 FILE(GLOB HEADER_FILES ${CMAKE_SOURCE_DIR}/include/*.h ${CMAKE_SOURCE_DIR}/include/wearable/*.h)
121 ENDIF (TIZEN_WEARABLE)
123 FILE(GLOB HEADER_FILES ${CMAKE_SOURCE_DIR}/include/*.h ${CMAKE_SOURCE_DIR}/include/mobile/*.h)
125 INSTALL(FILES ${HEADER_FILES} DESTINATION ${DEST_INCLUDE_DIR})
127 CONFIGURE_FILE(${CLIENT}.pc.in ${CLIENT}.pc @ONLY)
128 INSTALL(FILES ${CLIENT}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)