1 SUMMARY = "App Launcher for the AGL Demonstrator @ CES2017"
2 DESCRIPTION = "App Lanucher app in QML format for the AGL Demonstrator @ CESS2017"
3 HOMEPAGE = "https://git.automotivelinux.org/gerrit/#/admin/projects/AGL/DemoApps/CES2017"
11 DEPENDS = "homescreen zip-native qtmultimedia qtquickcontrols2"
13 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=815ca599c9df247a0c7f619bab123dad"
15 # ALS, CES, FOSDEM available
16 AGL_RADIO_PRESETS_LOCALE ?= "CES"
18 SRC_URI = "git://gerrit.automotivelinux.org/gerrit/AGL/DemoApps/CES2017;protocol=http \
19 file://presets-${AGL_RADIO_PRESETS_LOCALE}.conf \
23 # Pinned branch/SRCREV for Charming Chinook
24 SRC_URI_chinook = "git://gerrit.automotivelinux.org/gerrit/AGL/DemoApps/CES2017;protocol=http;branch=chinook \
25 file://presets-${AGL_RADIO_PRESETS_LOCALE}.conf \
27 SRCREV_chinook = "354195c83841240ddd5f2c5daad97d66cc9e1d28"
30 qtmultimedia-qmlplugins \
31 qtmultimedia-rtlfm-radio-plugin \
32 qtquickcontrols-qmlplugins \
33 qtquickcontrols2-qmlplugins \
37 do_install_prepend() {
38 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \
39 <widget xmlns=\"http://www.w3.org/ns/widgets\" id=\"controls\" version=\"0.1\"> \
40 <name>Controls</name> \
41 <content src=\"controls\" type=\"application/x-executable\"/> \
42 <description>Controls app.</description> \
44 <icon src=\"controls.png\"/> \
45 <license>Apache 2.0</license> \
47 " > ${B}/apps/Controls/config.xml
49 cd ${B}/apps/Controls/
50 zip controls.wgt config.xml controls
54 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \
55 <widget xmlns=\"http://www.w3.org/ns/widgets\" id=\"dashboard\" version=\"0.1\"> \
56 <name>Dashboard</name> \
57 <content src=\"dashboard\" type=\"application/x-executable\"/> \
58 <description>Dashboard app.</description> \
60 <icon src=\"dashboard.png\"/> \
61 <license>Apache 2.0</license> \
63 " > ${B}/apps/Dashboard/config.xml
65 cd ${B}/apps/Dashboard/
66 zip dashboard.wgt config.xml dashboard
70 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \
71 <widget xmlns=\"http://www.w3.org/ns/widgets\" id=\"phone\" version=\"0.1\"> \
73 <content src=\"phone\" type=\"application/x-executable\"/> \
74 <description>Phone app.</description> \
76 <icon src=\"phone.png\"/> \
77 <license>Apache 2.0</license> \
79 " > ${B}/apps/Phone/config.xml
82 zip phone.wgt config.xml phone
86 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \
87 <widget xmlns=\"http://www.w3.org/ns/widgets\" id=\"radio\" version=\"0.1\"> \
89 <content src=\"radio\" type=\"application/x-executable\"/> \
90 <description>Radio app.</description> \
92 <icon src=\"radio.png\"/> \
93 <license>Apache 2.0</license> \
95 " > ${B}/apps/Radio/config.xml
98 zip radio.wgt config.xml radio
101 cat > ${B}/apps/installAllApps.sh <<-EOF
104 for file in \`find . -maxdepth 1 -name '*.wgt'\`; do
106 /usr/bin/afm-util install \$file
111 cyad -s -k MANIFESTS -t allow -c User::App::navigation -u '*' -p 'http://tizen.org/privilege/internal/dbus'
112 cyad -s -k MANIFESTS -t allow -c User::App::poi -u '*' -p 'http://tizen.org/privilege/internal/dbus'
117 install -d ${D}/usr/AGL/${PN}
118 install -d ${D}/usr/AGL/apps
119 install -m 0644 ${B}/apps/Controls/controls.wgt ${D}/usr/AGL/apps/
120 install -m 0644 ${B}/apps/Dashboard/dashboard.wgt ${D}/usr/AGL/apps/
121 install -m 0644 ${B}/apps/Phone/phone.wgt ${D}/usr/AGL/apps/
122 install -m 0644 ${B}/apps/Radio/radio.wgt ${D}/usr/AGL/apps/
123 install -d ${D}/home/root/app-data/radio
124 install -m 0644 ${WORKDIR}/presets-${AGL_RADIO_PRESETS_LOCALE}.conf ${D}/home/root/app-data/radio/presets.conf
126 install -m 0755 ${B}/apps/installAllApps.sh ${D}/usr/AGL/apps/
127 ln -sf ../apps/installAllApps.sh ${D}/usr/AGL/${PN}/installAllApps.sh
129 install -d ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
130 install -m 0644 ${S}/imports/AGL/Demo/Controls/qmldir ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
131 install -m 0644 ${S}/imports/AGL/Demo/Controls/ImageButton.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
132 install -m 0644 ${S}/imports/AGL/Demo/Controls/ToggleButton.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
133 install -m 0644 ${S}/imports/AGL/Demo/Controls/Key.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
134 install -m 0644 ${S}/imports/AGL/Demo/Controls/AbstractKeyboard.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
135 install -m 0644 ${S}/imports/AGL/Demo/Controls/Symbols.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
136 install -m 0644 ${S}/imports/AGL/Demo/Controls/Alphabet.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
137 install -m 0644 ${S}/imports/AGL/Demo/Controls/Keyboard.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
138 install -d ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
139 install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Back.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
140 install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Shift.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
141 install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Space.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
142 install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Arrow.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
144 install -d ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL
145 install -m 0644 ${S}/imports/qtquickcontrols2aglstyle/*.qml ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL
147 install -d ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL/images/
148 install -m 0644 ${S}/imports/qtquickcontrols2aglstyle/images/* ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL/images/
151 # plain copy in own folder for now
153 # mkdir -p ${D}/usr/AGL/CES2017/
154 # cp -rf ./* ${D}/usr/AGL/CES2017/
157 FILES_${PN} += "/usr/AGL/ \
160 /home/root/app-data/radio/presets.conf \
161 /usr/lib/qt5/qml/AGL/Demo/Controls/qmldir \
162 /usr/lib/qt5/qml/AGL/Demo/Controls/ImageButton.qml \
163 /usr/lib/qt5/qml/AGL/Demo/Controls/ToggleButton.qml \
164 /usr/lib/qt5/qml/AGL/Demo/Controls/Key.qml \
165 /usr/lib/qt5/qml/AGL/Demo/Controls/AbstractKeyboard.qml \
166 /usr/lib/qt5/qml/AGL/Demo/Controls/Symbols.qml \
167 /usr/lib/qt5/qml/AGL/Demo/Controls/Alphabet.qml \
168 /usr/lib/qt5/qml/AGL/Demo/Controls/Keyboard.qml \
169 /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Back.svg \
170 /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Shift.svg \
171 /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Space.svg \
172 /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Arrow.svg \
173 /usr/lib/qt5/qml/QtQuick/Controls.2/AGL \
174 /usr/lib/qt5/qml/QtQuick/Controls.2/AGL/images \