X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=CMakeLists.txt;h=42a1c7d9c654475c3442cd3a03254705423615e0;hb=refs%2Ftags%2Faccepted%2Ftizen%2Fmobile%2F20160712.091029;hp=c1191cd6de7aae17fbb57cf1b3e8f4e37d33e183;hpb=2a5eeeca2c16d95975c45205a85239bf35872ce6;p=platform%2Fcore%2Fuifw%2Fstt.git diff --git a/CMakeLists.txt b/CMakeLists.txt index c1191cd..42a1c7d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,14 +1,57 @@ +# Copyright (c) 2011-2016 Samsung Electronics Co., Ltd All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# @file CMakeLists.txt +# @author Dongyeol Lee (dy3.lee@samsung.com) +# @version 0.1 +# @brief + CMAKE_MINIMUM_REQUIRED(VERSION 2.6) -PROJECT(libstt) +PROJECT(stt) + +SET(PREFIX ${CMAKE_INSTALL_PREFIX}) +SET(EXEC_PREFIX "${PREFIX}") +SET(VERSION 0.2.55) + +ADD_DEFINITIONS("-DSTT_LIBDIR=\"${LIBDIR}\"") +ADD_DEFINITIONS("-Werror") ## Include common directory ## INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/common") +INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/include") ## Dependent packages ## INCLUDE(FindPkgConfig) +IF("${_TV_PRODUCT}" STREQUAL "TRUE") pkg_check_modules(pkgs REQUIRED - glib-2.0 dbus-1 vconf dlog ecore ecore-file capi-media-audio-io capi-media-sound-manager + aul capi-media-audio-io capi-media-wav-player capi-network-bluetooth capi-system-info cynara-client cynara-session + dbus-1 dlog ecore glib-2.0 libtzplatform-config libxml-2.0 vconf vconf-internal-keys ) +ELSE() +pkg_check_modules(pkgs REQUIRED + aul capi-media-audio-io capi-media-wav-player capi-system-info cynara-client cynara-session + dbus-1 dlog ecore glib-2.0 libtzplatform-config libxml-2.0 vconf vconf-internal-keys +) +ENDIF() + +pkg_check_modules(pkgs_test REQUIRED + dlog ecore +) + +## API ## +ADD_SUBDIRECTORY(include) ## Client library ## ADD_SUBDIRECTORY(client) @@ -16,6 +59,13 @@ ADD_SUBDIRECTORY(client) ## Server daemon ## ADD_SUBDIRECTORY(server) -INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.APLv2 RENAME stt DESTINATION /usr/share/license) -INSTALL(FILES ${CMAKE_SOURCE_DIR}/stt-server.rule DESTINATION /etc/smack/accesses2.d) -INSTALL(FILES ${CMAKE_SOURCE_DIR}/sysinfo-stt.xml DESTINATION /etc/config) +## Test ## +ADD_SUBDIRECTORY(test) + +## config ## +INSTALL(FILES ${CMAKE_SOURCE_DIR}/stt-config.xml DESTINATION ${TZ_SYS_RO_SHARE}/voice/stt/1.0) + +## Dbus service ## +INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.voice.sttserver.service DESTINATION ${TZ_SYS_RO_SHARE}/dbus-1/services) + +INSTALL(FILES ${CMAKE_SOURCE_DIR}/stt-server.conf DESTINATION /etc/dbus-1/session.d)