Update package version to 1.11.3
[platform/core/uifw/ise-default.git] / CMakeLists.txt
1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
2 PROJECT(ise-default CXX)
3
4 SET(ISE_SRCS
5     src/ise.cpp
6     src/languages.cpp
7     src/ise-language-change.cpp
8     src/ise-tutorial-mode.cpp
9     src/config.cpp
10     src/imdata.cpp
11     src/ise-stt-mode.cpp
12     src/ise-stt-option.cpp
13     src/ise-stt-common.cpp
14     src/ise-floating-mode.cpp
15     src/MicEffector.cpp
16     src/SttFeedback.cpp
17     src/SttManager.cpp
18     src/WInputSttMicEffect.cpp
19     src/ise_lang_table.cpp
20     src/cji.cpp
21     src/sdk.cpp
22     src/candidate-factory.cpp
23     src/candidate.cpp
24     src/candidate-efl.cpp
25     src/candidate-multiline-efl.cpp
26     src/autofill.cpp
27     src/guidepopup.cpp
28     src/ise-dbus.cpp
29     src/ise-sticker-mode.cpp
30     src/nmt.cpp
31     src/ise-nmt-mode.cpp
32
33     src/ise-emoticon-list.cpp
34     src/ise-emoticon-mode.cpp
35     src/modeindicator.cpp
36     src/eflutil.cpp
37
38     src/w-input-smartreply.cpp
39 )
40
41 SET(ISE_SETTING_SRCS
42     src/config.cpp
43     src/ise-stt-option.cpp
44     src/option.cpp
45     src/sdk_option.cpp
46     src/eflutil.cpp
47     src/languages.cpp
48     src/ise_lang_table.cpp
49     src/autofill.cpp
50 )
51
52 FIND_PROGRAM(UNAME NAMES uname)
53 EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH")
54 IF("${ARCH}" MATCHES "^arm.*")
55 SET(SRC_LIB_DIR "${CMAKE_SOURCE_DIR}/lib/armv7l")
56 ELSEIF("${ARCH}" MATCHES "^aarch64.*")
57 SET(SRC_LIB_DIR "${CMAKE_SOURCE_DIR}/lib/aarch64")
58 ENDIF()
59
60 SET(ISE_PACKAGE ${PROJECT_NAME})
61 SET(ISE_PKGNAME ${PACKAGE})
62 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
63 SET(ISE_BINDIR "${TZ_SYS_RO_APP}/${ISE_PACKAGE}/bin")
64 SET(ISE_LIBDIR "${TZ_SYS_RO_APP}/${ISE_PACKAGE}/lib")
65 SET(ISE_RESDIR "${TZ_SYS_RO_APP}/${ISE_PACKAGE}/res")
66 SET(ISE_LAYOUTDIR "${ISE_RESDIR}/720x1280/default")
67 IF("${CMAKE_BUILD_TYPE}" STREQUAL "")
68     SET(CMAKE_BUILD_TYPE "Release")
69 ENDIF()
70 MESSAGE(STATUS "Build type: ${CMAKE_BUILD_TYPE}")
71
72 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/include
73     ${CMAKE_SOURCE_DIR}/src
74     ${CMAKE_SOURCE_DIR}/src/
75     ${CMAKE_SOURCE_DIR}/src/
76 )
77
78 INCLUDE(FindPkgConfig)
79 SET(PKGS_CHECK_MODULES
80         elementary
81         efl-extension
82         dlog
83         libscl-ui
84         ecore-imf
85         vconf
86         libxml-2.0
87         stt
88         capi-appfw-application
89         capi-appfw-preference
90         capi-appfw-package-manager
91         capi-media-sound-manager
92         capi-ui-inputmethod
93         capi-system-system-settings
94         smartreply
95         key-manager
96         glib-2.0
97         dbus-1
98         gio-2.0
99         pkgmgr-info
100         capi-ui-sticker-consumer
101         capi-content-mime-type
102         json-glib-1.0
103         bundle
104         rpc-port
105         capi-appfw-event
106         notification
107         )
108
109 pkg_check_modules(ISE_PKGS REQUIRED ${PKGS_CHECK_MODULES})
110
111 FOREACH(flag ${ISE_PKGS_CFLAGS})
112     SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
113 ENDFOREACH(flag)
114
115 SET(SETTING_PKGS_CHECK_MODULES
116         elementary
117         efl-extension
118         dlog
119         vconf
120         libxml-2.0
121         capi-appfw-application
122         capi-appfw-preference
123         capi-system-system-settings
124         key-manager
125         json-glib-1.0
126         )
127
128 pkg_check_modules(ISE_SETTING_PKGS REQUIRED ${SETTING_PKGS_CHECK_MODULES})
129
130 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} -fPIE -Wall -fpermissive -Werror")
131 #SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} -finstrument-functions")
132 SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
133 SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -g")
134 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")
135
136 ADD_DEFINITIONS("-DEXPORTED=__attribute__((visibility(\"default\")))")
137 ADD_DEFINITIONS("-DPACKAGE=\"${ISE_PACKAGE}\"")
138 ADD_DEFINITIONS("-DPACKAGE_NAME=\"${ISE_PKGNAME}\"")
139 ADD_DEFINITIONS("-DRESDIR=\"${ISE_RESDIR}\"")
140 ADD_DEFINITIONS("-DLAYOUTDIR=\"${ISE_LAYOUTDIR}\"")
141 ADD_DEFINITIONS(-DISE_NAME=\"/ise-default\")
142 ADD_DEFINITIONS("-Wno-class-memaccess")
143 ADD_DEFINITIONS("-Wno-overloaded-virtual")
144
145 IF(("${ARCH}" MATCHES "^arm.*") OR ("${ARCH}" MATCHES "^aarch64.*"))
146 ADD_DEFINITIONS("-DSUPPORT_NMT")
147 LINK_DIRECTORIES(${SRC_LIB_DIR})
148 ENDIF()
149
150 ADD_EXECUTABLE(${PROJECT_NAME} ${ISE_SRCS})
151
152 ADD_EXECUTABLE(${PROJECT_NAME}-setting ${ISE_SETTING_SRCS})
153
154 IF(("${ARCH}" MATCHES "^arm.*") OR ("${ARCH}" MATCHES "^aarch64.*"))
155 INSTALL(FILES ${SRC_LIB_DIR}/libsamsung-ai-nmt.so DESTINATION ${ISE_LIBDIR})
156 SET(ISE_PKGS_LDFLAGS -Llib -lsamsung-ai-nmt ${ISE_PKGS_LDFLAGS})
157 ENDIF()
158
159 # For edc File
160 ADD_CUSTOM_TARGET(
161     candidate-single.edj
162     COMMAND edje_cc -no-save
163         -id ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/candidate-single
164         -sd ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/candidate-single
165         ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/candidate-single/candidate.edc
166         ${CMAKE_BINARY_DIR}/candidate-single.edj
167     DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/candidate-single/candidate.edc
168 )
169 ADD_DEPENDENCIES(${PROJECT_NAME} candidate-single.edj)
170 INSTALL(FILES ${CMAKE_BINARY_DIR}/candidate-single.edj DESTINATION ${ISE_RESDIR}/edje)
171 # For edc File end
172 # For edc File
173 ADD_CUSTOM_TARGET(
174     candidate-multiline.edj
175     COMMAND edje_cc -no-save
176         -id ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/candidate-multiline
177         -sd ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/candidate-multiline
178         ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/candidate-multiline/candidate.edc
179         ${CMAKE_BINARY_DIR}/candidate-multiline.edj
180     DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/candidate-multiline/candidate.edc
181 )
182 ADD_DEPENDENCIES(${PROJECT_NAME} candidate-multiline.edj)
183 INSTALL(FILES ${CMAKE_BINARY_DIR}/candidate-multiline.edj DESTINATION ${ISE_RESDIR}/edje)
184 # For edc File end
185 # For edc File
186 ADD_CUSTOM_TARGET(
187     customised_gengrid.edj
188     COMMAND edje_cc -no-save
189         -id ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/gengrid
190         -sd ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/gengrid
191         ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/gengrid/customised_gengrid.edc
192         ${CMAKE_BINARY_DIR}/customised_gengrid.edj
193     DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/gengrid/customised_gengrid.edc)
194 ADD_DEPENDENCIES(${PROJECT_NAME} customised_gengrid.edj)
195 INSTALL(FILES ${CMAKE_BINARY_DIR}/customised_gengrid.edj DESTINATION ${ISE_RESDIR}/edje)
196
197 ADD_CUSTOM_TARGET(
198     customised_sticker_gengrid.edj
199     COMMAND edje_cc -no-save
200         -id ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/gengrid
201         -sd ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/gengrid
202         ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/gengrid/customised_sticker_gengrid.edc
203         ${CMAKE_BINARY_DIR}/customised_sticker_gengrid.edj
204     DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/gengrid/customised_sticker_gengrid.edc)
205 ADD_DEPENDENCIES(${PROJECT_NAME} customised_sticker_gengrid.edj)
206 INSTALL(FILES ${CMAKE_BINARY_DIR}/customised_sticker_gengrid.edj DESTINATION ${ISE_RESDIR}/edje)
207
208 ADD_CUSTOM_TARGET(
209     layout_keypad.edj
210     COMMAND edje_cc -no-save
211         ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/gengrid/layout_keypad.edc
212         ${CMAKE_BINARY_DIR}/layout_keypad.edj
213         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/gengrid/layout_keypad.edc)
214 ADD_DEPENDENCIES(${PROJECT_NAME} layout_keypad.edj)
215 INSTALL(FILES ${CMAKE_BINARY_DIR}/layout_keypad.edj DESTINATION ${ISE_RESDIR}/edje)
216
217 ADD_CUSTOM_TARGET(
218     layout_sticker_keypad.edj
219     COMMAND edje_cc -no-save
220         ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/gengrid/layout_sticker_keypad.edc
221         ${CMAKE_BINARY_DIR}/layout_sticker_keypad.edj
222         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/gengrid/layout_sticker_keypad.edc)
223 ADD_DEPENDENCIES(${PROJECT_NAME} layout_sticker_keypad.edj)
224 INSTALL(FILES ${CMAKE_BINARY_DIR}/layout_sticker_keypad.edj DESTINATION ${ISE_RESDIR}/edje)
225
226 ADD_CUSTOM_TARGET(
227     layout_nmt_keypad.edj
228     COMMAND edje_cc -no-save
229         ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/layout_nmt_keypad.edc
230         ${CMAKE_BINARY_DIR}/layout_nmt_keypad.edj
231         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/layout_nmt_keypad.edc)
232 ADD_DEPENDENCIES(${PROJECT_NAME} layout_nmt_keypad.edj)
233 INSTALL(FILES ${CMAKE_BINARY_DIR}/layout_nmt_keypad.edj DESTINATION ${ISE_RESDIR}/edje)
234
235 if(${TARGET} STREQUAL "mobile")
236 ADD_CUSTOM_TARGET( customised_ctxpopup.edj COMMAND edje_cc
237         -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/mobile
238         -sd ${CMAKE_CURRENT_SOURCE_DIR}/edje/mobile
239         ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/customised_ctxpopup.edc
240         ${CMAKE_BINARY_DIR}/customised_ctxpopup.edj
241         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/customised_ctxpopup.edc)
242 ADD_DEPENDENCIES(${PROJECT_NAME} customised_ctxpopup.edj)
243 INSTALL(FILES ${CMAKE_BINARY_DIR}/customised_ctxpopup.edj DESTINATION ${ISE_RESDIR}/edje/mobile)
244 endif()
245
246 if(${TARGET} STREQUAL "wearable")
247 file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/res/wearable/edje)
248 ADD_CUSTOM_TARGET(w-input-stt.edj COMMAND edje_cc
249         -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/wearable/images
250         ${CMAKE_CURRENT_SOURCE_DIR}/res/wearable/edje/w-input-stt.edc
251         ${CMAKE_BINARY_DIR}/res/wearable/edje/w-input-stt.edj
252         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/wearable/edje/w-input-stt.edc)
253 ADD_DEPENDENCIES(${PROJECT_NAME} w-input-stt.edj)
254 INSTALL(FILES ${CMAKE_BINARY_DIR}/res/wearable/edje/w-input-stt.edj DESTINATION
255 ${ISE_RESDIR}/edje/wearable)
256
257 ADD_CUSTOM_TARGET(popup_custom.edj COMMAND edje_cc
258         -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/wearable/images
259         ${CMAKE_CURRENT_SOURCE_DIR}/res/wearable/edje/popup_custom.edc
260         ${CMAKE_BINARY_DIR}/res/wearable/edje/popup_custom.edj
261         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/wearable/edje/popup_custom.edc)
262 ADD_DEPENDENCIES(${PROJECT_NAME} popup_custom.edj)
263 INSTALL(FILES ${CMAKE_BINARY_DIR}/res/wearable/edje/popup_custom.edj DESTINATION
264 ${ISE_RESDIR}/edje/wearable)
265
266 ADD_CUSTOM_TARGET(tutorial_popup.edj COMMAND edje_cc
267         -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/wearable/images
268         ${CMAKE_CURRENT_SOURCE_DIR}/res/wearable/edje/tutorial_popup.edc
269         ${CMAKE_BINARY_DIR}/res/wearable/edje/tutorial_popup.edj
270         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/wearable/edje/tutorial_popup.edc)
271 ADD_DEPENDENCIES(${PROJECT_NAME} tutorial_popup.edj)
272 INSTALL(FILES ${CMAKE_BINARY_DIR}/res/wearable/edje/tutorial_popup.edj DESTINATION
273 ${ISE_RESDIR}/edje/wearable)
274
275 ADD_CUSTOM_TARGET(w-input-stt-button.edj COMMAND edje_cc
276         -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/wearable/images
277         ${CMAKE_CURRENT_SOURCE_DIR}/res/wearable/edje/w-input-stt-button.edc
278         ${CMAKE_BINARY_DIR}/res/wearable/edje/w-input-stt-button.edj
279         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/wearable/edje/w-input-stt-button.edc)
280 ADD_DEPENDENCIES(${PROJECT_NAME} w-input-stt-button.edj)
281 INSTALL(FILES ${CMAKE_BINARY_DIR}/res/wearable/edje/w-input-stt-button.edj DESTINATION
282 ${ISE_RESDIR}/edje/wearable)
283
284 elseif(${TARGET} STREQUAL "tv")
285 file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/res/tv/edje)
286 ADD_CUSTOM_TARGET(w-input-stt.edj COMMAND edje_cc
287         -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/tv/images
288         ${CMAKE_CURRENT_SOURCE_DIR}/res/tv/edje/w-input-stt.edc
289         ${CMAKE_BINARY_DIR}/res/tv/edje/w-input-stt.edj
290         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/tv/edje/w-input-stt.edc)
291 ADD_DEPENDENCIES(${PROJECT_NAME} w-input-stt.edj)
292 INSTALL(FILES ${CMAKE_BINARY_DIR}/res/tv/edje/w-input-stt.edj DESTINATION
293 ${ISE_RESDIR}/edje/tv)
294
295 ADD_CUSTOM_TARGET(w-input-stt-button.edj COMMAND edje_cc
296         -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/tv/images
297         ${CMAKE_CURRENT_SOURCE_DIR}/res/tv/edje/w-input-stt-button.edc
298         ${CMAKE_BINARY_DIR}/res/tv/edje/w-input-stt-button.edj
299         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/tv/edje/w-input-stt-button.edc)
300 ADD_DEPENDENCIES(${PROJECT_NAME} w-input-stt-button.edj)
301 INSTALL(FILES ${CMAKE_BINARY_DIR}/res/tv/edje/w-input-stt-button.edj DESTINATION
302 ${ISE_RESDIR}/edje/tv)
303
304 ADD_CUSTOM_TARGET(popup_custom.edj COMMAND edje_cc
305         -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/tv/images
306         ${CMAKE_CURRENT_SOURCE_DIR}/res/tv/edje/popup_custom.edc
307         ${CMAKE_BINARY_DIR}/res/tv/edje/popup_custom.edj
308         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/tv/edje/popup_custom.edc)
309 ADD_DEPENDENCIES(${PROJECT_NAME} popup_custom.edj)
310 INSTALL(FILES ${CMAKE_BINARY_DIR}/res/tv/edje/popup_custom.edj DESTINATION
311 ${ISE_RESDIR}/edje/tv)
312
313 ADD_CUSTOM_TARGET(popup_keyboard.edj COMMAND edje_cc
314         -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/tv/images
315         ${CMAKE_CURRENT_SOURCE_DIR}/res/tv/edje/popup_keyboard.edc
316         ${CMAKE_BINARY_DIR}/res/tv/edje/popup_keyboard.edj
317         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/tv/edje/popup_keyboard.edc)
318 ADD_DEPENDENCIES(${PROJECT_NAME} popup_keyboard.edj)
319 INSTALL(FILES ${CMAKE_BINARY_DIR}/res/tv/edje/popup_keyboard.edj DESTINATION
320 ${ISE_RESDIR}/edje/tv)
321
322 elseif(${TARGET} STREQUAL "common")
323 file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/res/common/edje)
324 ADD_CUSTOM_TARGET(w-input-stt.edj COMMAND edje_cc
325         -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/common/images
326         ${CMAKE_CURRENT_SOURCE_DIR}/res/common/edje/w-input-stt.edc
327         ${CMAKE_BINARY_DIR}/res/common/edje/w-input-stt.edj
328         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/common/edje/w-input-stt.edc)
329 ADD_DEPENDENCIES(${PROJECT_NAME} w-input-stt.edj)
330 INSTALL(FILES ${CMAKE_BINARY_DIR}/res/common/edje/w-input-stt.edj DESTINATION
331 ${ISE_RESDIR}/edje/common)
332
333 ADD_CUSTOM_TARGET(w-input-stt-button.edj COMMAND edje_cc
334         -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/common/images
335         ${CMAKE_CURRENT_SOURCE_DIR}/res/common/edje/w-input-stt-button.edc
336         ${CMAKE_BINARY_DIR}/res/common/edje/w-input-stt-button.edj
337         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/common/edje/w-input-stt-button.edc)
338 ADD_DEPENDENCIES(${PROJECT_NAME} w-input-stt-button.edj)
339 INSTALL(FILES ${CMAKE_BINARY_DIR}/res/common/edje/w-input-stt-button.edj DESTINATION
340 ${ISE_RESDIR}/edje/common)
341
342 ADD_CUSTOM_TARGET(popup_custom.edj COMMAND edje_cc
343         -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/common/images
344         ${CMAKE_CURRENT_SOURCE_DIR}/res/common/edje/popup_custom.edc
345         ${CMAKE_BINARY_DIR}/res/common/edje/popup_custom.edj
346         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/common/edje/popup_custom.edc)
347 ADD_DEPENDENCIES(${PROJECT_NAME} popup_custom.edj)
348 INSTALL(FILES ${CMAKE_BINARY_DIR}/res/common/edje/popup_custom.edj DESTINATION
349 ${ISE_RESDIR}/edje/common)
350
351 ADD_CUSTOM_TARGET(main_layout.edj COMMAND edje_cc
352         -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/common/images
353         ${CMAKE_CURRENT_SOURCE_DIR}/res/common/edje/main_layout.edc
354         ${CMAKE_BINARY_DIR}/res/common/edje/main_layout.edj
355         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/common/edje/main_layout.edc)
356 ADD_DEPENDENCIES(${PROJECT_NAME} main_layout.edj)
357 INSTALL(FILES ${CMAKE_BINARY_DIR}/res/common/edje/main_layout.edj DESTINATION
358 ${ISE_RESDIR}/edje/common)
359
360 ADD_CUSTOM_TARGET( customised_ctxpopup.edj COMMAND edje_cc
361         -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/common
362         -sd ${CMAKE_CURRENT_SOURCE_DIR}/edje/common
363         ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/customised_ctxpopup.edc
364         ${CMAKE_BINARY_DIR}/customised_ctxpopup.edj
365         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/data/edc/customised_ctxpopup.edc)
366 ADD_DEPENDENCIES(${PROJECT_NAME} customised_ctxpopup.edj)
367 INSTALL(FILES ${CMAKE_BINARY_DIR}/customised_ctxpopup.edj DESTINATION ${ISE_RESDIR}/edje/common)
368
369 else()
370 file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/res/mobile/edje)
371 ADD_CUSTOM_TARGET(w-input-stt.edj COMMAND edje_cc
372         -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/mobile/images
373         ${CMAKE_CURRENT_SOURCE_DIR}/res/mobile/edje/w-input-stt.edc
374         ${CMAKE_BINARY_DIR}/res/mobile/edje/w-input-stt.edj
375         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/mobile/edje/w-input-stt.edc)
376 ADD_DEPENDENCIES(${PROJECT_NAME} w-input-stt.edj)
377 INSTALL(FILES ${CMAKE_BINARY_DIR}/res/mobile/edje/w-input-stt.edj DESTINATION
378 ${ISE_RESDIR}/edje/mobile)
379
380 ADD_CUSTOM_TARGET(w-input-stt-button.edj COMMAND edje_cc
381         -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/mobile/images
382         ${CMAKE_CURRENT_SOURCE_DIR}/res/mobile/edje/w-input-stt-button.edc
383         ${CMAKE_BINARY_DIR}/res/mobile/edje/w-input-stt-button.edj
384         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/mobile/edje/w-input-stt-button.edc)
385 ADD_DEPENDENCIES(${PROJECT_NAME} w-input-stt-button.edj)
386 INSTALL(FILES ${CMAKE_BINARY_DIR}/res/mobile/edje/w-input-stt-button.edj DESTINATION
387 ${ISE_RESDIR}/edje/mobile)
388
389 ADD_CUSTOM_TARGET(popup_custom.edj COMMAND edje_cc
390         -id ${CMAKE_CURRENT_SOURCE_DIR}/edje/mobile/images
391         ${CMAKE_CURRENT_SOURCE_DIR}/res/mobile/edje/popup_custom.edc
392         ${CMAKE_BINARY_DIR}/res/mobile/edje/popup_custom.edj
393         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/mobile/edje/popup_custom.edc)
394 ADD_DEPENDENCIES(${PROJECT_NAME} popup_custom.edj)
395 INSTALL(FILES ${CMAKE_BINARY_DIR}/res/mobile/edje/popup_custom.edj DESTINATION
396 ${ISE_RESDIR}/edje/mobile)
397 endif()
398
399 # For edc File end
400
401 TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${ISE_PKGS_LDFLAGS})
402 TARGET_LINK_LIBRARIES(${PROJECT_NAME}-setting ${ISE_SETTING_PKGS_LDFLAGS})
403
404 set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
405 INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${ISE_BINDIR})
406 INSTALL(TARGETS ${PROJECT_NAME}-setting DESTINATION ${ISE_BINDIR})
407
408 INSTALL(FILES ${CMAKE_SOURCE_DIR}/${PROJECT_NAME}.xml DESTINATION
409         ${TZ_SYS_RO_PACKAGES})
410
411 if(${TARGET} STREQUAL "wearable")
412 FILE(GLOB_RECURSE ISE_DEFAULT_IMAGES "${CMAKE_CURRENT_SOURCE_DIR}/res/wearable/images/*.png")
413 INSTALL(FILES ${ISE_DEFAULT_IMAGES} DESTINATION ${ISE_RESDIR}/wearable/images)
414 elseif(${TARGET} STREQUAL "tv")
415 FILE(GLOB_RECURSE ISE_DEFAULT_IMAGES "${CMAKE_CURRENT_SOURCE_DIR}/res/tv/images/*.png")
416 INSTALL(FILES ${ISE_DEFAULT_IMAGES} DESTINATION ${ISE_RESDIR}/tv/images)
417 elseif(${TARGET} STREQUAL "common")
418 FILE(GLOB_RECURSE ISE_DEFAULT_IMAGES "${CMAKE_CURRENT_SOURCE_DIR}/res/common/images/*.png")
419 INSTALL(FILES ${ISE_DEFAULT_IMAGES} DESTINATION ${ISE_RESDIR}/common/images)
420 else()
421 FILE(GLOB_RECURSE ISE_DEFAULT_IMAGES "${CMAKE_CURRENT_SOURCE_DIR}/res/mobile/images/*.png")
422 INSTALL(FILES ${ISE_DEFAULT_IMAGES} DESTINATION ${ISE_RESDIR}/mobile/images)
423 endif()
424
425 if(${TARGET} STREQUAL "tv")
426 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/data/pixmaps/default/tv/
427         DESTINATION ${ISE_LAYOUTDIR}/tv/image)
428 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/data/layout/tv/ DESTINATION
429         ${ISE_LAYOUTDIR}/tv FILES_MATCHING PATTERN "*.xml")
430 elseif(${TARGET} STREQUAL "wearable")
431 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/data/pixmaps/default/wearable/
432         DESTINATION ${ISE_LAYOUTDIR}/wearable/image)
433 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/data/layout/wearable/ DESTINATION
434         ${ISE_LAYOUTDIR}/wearable FILES_MATCHING PATTERN "*.xml")
435 elseif(${TARGET} STREQUAL "common")
436 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/data/pixmaps/default/common/
437         DESTINATION ${ISE_LAYOUTDIR}/common/image)
438 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/data/layout/common/ DESTINATION
439         ${ISE_LAYOUTDIR}/common FILES_MATCHING PATTERN "*.xml")
440 else()
441 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/data/pixmaps/default/mobile/
442         DESTINATION ${ISE_LAYOUTDIR}/mobile/image)
443 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/data/layout/mobile/ DESTINATION
444         ${ISE_LAYOUTDIR}/mobile FILES_MATCHING PATTERN "*.xml")
445 endif()
446
447 ADD_SUBDIRECTORY(po)