summaryrefslogtreecommitdiffstats
path: root/scripts/CMakeLists.txt
blob: 873e90cbb48e1aa94ee9ccaefc9e0e68e31f7bca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
###########################################################################
# Copyright 2015 IoT.bzh
#
# author: José Bollo <jose.bollo@iot.bzh>
#
# 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.
###########################################################################

cmake_minimum_required(VERSION 2.8)

if(NOT USE_SDK)
	install(PROGRAMS afm-util DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
expat openssl virtual/libgles2 virtual/libgl virtual/egl \ wayland libdbus-c++ af-main \ " RDEPENDS_${PN} = " flite openjtalk glib-2.0 freetype sqlite3 wayland zlib expat openssl \ wayland libdbus-c++ af-main " SRCREV="c6403c1147fa53cd6a638f738d270c5d3bb214cf" SRC_URI="git://github.com/AGLExport/gpsnavi.git;branch=agl \ file://flite.in \ file://jtalk.in \ file://download_mapdata_jp.sh \ file://download_mapdata_uk.sh \ file://0001-Makefile-compatible-aglwgt.patch \ " # To avoid C++ library link failure SECURITY_CFLAGS = "" inherit autotools pkgconfig inherit aglwgt S = "${WORKDIR}/git" do_compile_prepend() { cp ${WORKDIR}/flite.in ${S}/ cp ${WORKDIR}/jtalk.in ${S}/ } do_install_append() { # Attention: BUG: app ships native lib as part of platform # see SPEC-785 and SPEC-384 # /start FIXME __________________ cd ${B} oe_runmake 'DESTDIR=${D}' install rm ${D}/usr/bin/navi # /end FIXME ^^^^^^^^^^^^^^^^^^^ install -d ${D}/usr/AGL/apps mkdir -p ${B}/package/ mv ${B}/navigation.wgt ${B}/package/ install -m 0755 ${WORKDIR}/download_mapdata_jp.sh ${D}/usr/AGL/apps/ install -m 0755 ${WORKDIR}/download_mapdata_uk.sh ${D}/usr/AGL/apps/ install -d ${D}/var/mapdata } #it's Workaround EXTRA_WGT_POSTINSTALL = "\ cyad -s -k MANIFESTS -t allow -c User::App::navigation -u '*' -p 'http://tizen.org/privilege/internal/dbus';\ cyad -s -k MANIFESTS -t allow -c User::App::poi -u '*' -p 'http://tizen.org/privilege/internal/dbus';\ " FILES_${PN} += " /usr/AGL/apps/*.sh /var/mapdata "