Delete ecore timer when quit ecore main loop
[platform/core/uifw/tts.git] / CMakeLists.txt
1 # Copyright (c) 2011-2016 Samsung Electronics Co., Ltd All Rights Reserved
2 #
3 #    Licensed under the Apache License, Version 2.0 (the "License");
4 #    you may not use this file except in compliance with the License.
5 #    You may obtain a copy of the License at
6 #
7 #        http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #    Unless required by applicable law or agreed to in writing, software
10 #    distributed under the License is distributed on an "AS IS" BASIS,
11 #    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #    See the License for the specific language governing permissions and
13 #    limitations under the License.
14 #
15 #
16 # @file        CMakeLists.txt
17 # @author      Dongyeol Lee (dy3.lee@samsung.com)
18 # @version     0.1
19 # @brief
20
21 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
22 PROJECT(tts)
23
24 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
25 SET(EXEC_PREFIX "${PREFIX}")
26 SET(INCLUDEDIR "${PREFIX}/include")
27 SET(VERSION 0.2.44)
28
29 FIND_PROGRAM(UNAME NAMES uname)
30 EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH")
31
32 ADD_DEFINITIONS("-DTTS_LIBDIR=\"${LIBDIR}\"")
33 ADD_DEFINITIONS("-Werror")
34
35 ## Include common directory ##
36 INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/common")
37
38 ## Dependent packages ##
39 INCLUDE(FindPkgConfig)
40 pkg_check_modules(pkgs REQUIRED  
41         aul capi-media-audio-io capi-appfw-app-manager capi-system-info dbus-1 dlog ecore
42         glib-2.0 libgum libtzplatform-config libxml-2.0 libsystemd-login vconf bundle buxton2
43 )
44
45 pkg_check_modules(pkgs_test REQUIRED
46     ecore dlog
47 )
48
49 ## API ##
50 ADD_SUBDIRECTORY(include)
51
52 ## Client library ##
53 ADD_SUBDIRECTORY(client)
54
55 ## Server daemon ##
56 ADD_SUBDIRECTORY(server)
57
58 ## Engine Parser ##
59 ADD_SUBDIRECTORY(engine-parser)
60
61 ## Config ##
62 INSTALL(FILES ${CMAKE_SOURCE_DIR}/tts-config.xml DESTINATION ${TZ_SYS_RO_SHARE}/voice/tts/1.0)
63
64 INSTALL(FILES ${CMAKE_SOURCE_DIR}/tts-server.conf DESTINATION /etc/dbus-1/system.d)
65
66 ## Dbus service ##
67 INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.voice.ttsserver.service DESTINATION ${TZ_SYS_RO_SHARE}/dbus-1/system-services)
68 INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.voice.ttsnotiserver.service DESTINATION ${TZ_SYS_RO_SHARE}/dbus-1/system-services)
69 INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.voice.ttssrserver.service DESTINATION ${TZ_SYS_RO_SHARE}/dbus-1/system-services)
70 INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.voice.ttsinterruptserver.service DESTINATION ${TZ_SYS_RO_SHARE}/dbus-1/system-services)
71
72 ## tts_getengine ##
73 IF("${ARCH}" MATCHES "^arm.*")
74 INSTALL(PROGRAMS ${CMAKE_SOURCE_DIR}/bin/armv7l/tts_getengine DESTINATION ${TZ_SYS_BIN})
75 ELSEIF("${ARCH}" MATCHES "^i586.*")
76 INSTALL(PROGRAMS ${CMAKE_SOURCE_DIR}/bin/i586/tts_getengine DESTINATION ${TZ_SYS_BIN})
77 ELSEIF("${ARCH}" MATCHES "^i686.*")
78 INSTALL(PROGRAMS ${CMAKE_SOURCE_DIR}/bin/i586/tts_getengine DESTINATION ${TZ_SYS_BIN})
79 ELSEIF("${ARCH}" MATCHES "^aarch64.*")
80 INSTALL(PROGRAMS ${CMAKE_SOURCE_DIR}/bin/aarch64/tts_getengine DESTINATION ${TZ_SYS_BIN})
81 ELSEIF("${ARCH}" MATCHES "^x86_64.*")
82 INSTALL(PROGRAMS ${CMAKE_SOURCE_DIR}/bin/x86_64/tts_getengine DESTINATION ${TZ_SYS_BIN})
83 ENDIF()
84
85
86 ## Sample application ##
87 ADD_SUBDIRECTORY(test)