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-ALS.conf \
20 file://presets-CES.conf \
21 file://presets-FOSDEM.conf \
25 # Pinned branch/SRCREV for Charming Chinook
26 SRC_URI_chinook = "git://gerrit.automotivelinux.org/gerrit/AGL/DemoApps/CES2017;protocol=http;branch=chinook \
27 file://presets-ALS.conf \
28 file://presets-CES.conf \
29 file://presets-FOSDEM.conf \
31 SRCREV_chinook = "354195c83841240ddd5f2c5daad97d66cc9e1d28"
34 qtmultimedia-qmlplugins \
35 qtmultimedia-rtlfm-radio-plugin \
36 qtquickcontrols-qmlplugins \
37 qtquickcontrols2-qmlplugins \
41 do_install_prepend() {
42 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \
43 <widget xmlns=\"http://www.w3.org/ns/widgets\" id=\"controls\" version=\"0.1\"> \
44 <name>Controls</name> \
45 <content src=\"controls\" type=\"application/x-executable\"/> \
46 <description>Controls app.</description> \
48 <icon src=\"controls.png\"/> \
49 <license>Apache 2.0</license> \
51 " > ${B}/apps/Controls/config.xml
53 cd ${B}/apps/Controls/
54 zip controls.wgt config.xml controls
58 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \
59 <widget xmlns=\"http://www.w3.org/ns/widgets\" id=\"dashboard\" version=\"0.1\"> \
60 <name>Dashboard</name> \
61 <content src=\"dashboard\" type=\"application/x-executable\"/> \
62 <description>Dashboard app.</description> \
64 <icon src=\"dashboard.png\"/> \
65 <license>Apache 2.0</license> \
67 " > ${B}/apps/Dashboard/config.xml
69 cd ${B}/apps/Dashboard/
70 zip dashboard.wgt config.xml dashboard
74 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \
75 <widget xmlns=\"http://www.w3.org/ns/widgets\" id=\"phone\" version=\"0.1\"> \
77 <content src=\"phone\" type=\"application/x-executable\"/> \
78 <description>Phone app.</description> \
80 <icon src=\"phone.png\"/> \
81 <license>Apache 2.0</license> \
83 " > ${B}/apps/Phone/config.xml
86 zip phone.wgt config.xml phone
90 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \
91 <widget xmlns=\"http://www.w3.org/ns/widgets\" id=\"radio\" version=\"0.1\"> \
93 <content src=\"radio\" type=\"application/x-executable\"/> \
94 <description>Radio app.</description> \
96 <icon src=\"radio.png\"/> \
97 <license>Apache 2.0</license> \
99 " > ${B}/apps/Radio/config.xml
102 zip radio.wgt config.xml radio
105 cat > ${B}/apps/installAllApps.sh <<-EOF
108 for file in \`find . -maxdepth 1 -name '*.wgt'\`; do
110 /usr/bin/afm-util install \$file
115 cyad -s -k MANIFESTS -t allow -c User::App::navigation -u '*' -p 'http://tizen.org/privilege/internal/dbus'
116 cyad -s -k MANIFESTS -t allow -c User::App::poi -u '*' -p 'http://tizen.org/privilege/internal/dbus'
121 install -d ${D}/usr/AGL/${PN}
122 install -d ${D}/usr/AGL/apps
123 install -m 0644 ${B}/apps/Controls/controls.wgt ${D}/usr/AGL/apps/
124 install -m 0644 ${B}/apps/Dashboard/dashboard.wgt ${D}/usr/AGL/apps/
125 install -m 0644 ${B}/apps/Phone/phone.wgt ${D}/usr/AGL/apps/
126 install -m 0644 ${B}/apps/Radio/radio.wgt ${D}/usr/AGL/apps/
127 install -d ${D}/home/root/app-data/radio
128 install -m 0644 ${WORKDIR}/presets-CES.conf ${D}/home/root/app-data/radio/
129 install -m 0644 ${WORKDIR}/presets-ALS.conf ${D}/home/root/app-data/radio/
130 install -m 0644 ${WORKDIR}/presets-FOSDEM.conf ${D}/home/root/app-data/radio/
131 install -m 0644 ${WORKDIR}/presets-${AGL_RADIO_PRESETS_LOCALE}.conf ${D}/home/root/app-data/radio/presets.conf
133 install -m 0755 ${B}/apps/installAllApps.sh ${D}/usr/AGL/apps/
134 ln -sf ../apps/installAllApps.sh ${D}/usr/AGL/${PN}/installAllApps.sh
136 install -d ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
137 install -m 0644 ${S}/imports/AGL/Demo/Controls/qmldir ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
138 install -m 0644 ${S}/imports/AGL/Demo/Controls/ImageButton.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
139 install -m 0644 ${S}/imports/AGL/Demo/Controls/ToggleButton.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
140 install -m 0644 ${S}/imports/AGL/Demo/Controls/Key.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
141 install -m 0644 ${S}/imports/AGL/Demo/Controls/AbstractKeyboard.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
142 install -m 0644 ${S}/imports/AGL/Demo/Controls/Symbols.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
143 install -m 0644 ${S}/imports/AGL/Demo/Controls/Alphabet.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
144 install -m 0644 ${S}/imports/AGL/Demo/Controls/Keyboard.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
145 install -d ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
146 install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Back.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
147 install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Shift.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
148 install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Space.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
149 install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Arrow.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
151 install -d ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL
152 install -m 0644 ${S}/imports/qtquickcontrols2aglstyle/*.qml ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL
154 install -d ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL/images/
155 install -m 0644 ${S}/imports/qtquickcontrols2aglstyle/images/* ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL/images/
158 # plain copy in own folder for now
160 # mkdir -p ${D}/usr/AGL/CES2017/
161 # cp -rf ./* ${D}/usr/AGL/CES2017/
164 FILES_${PN} += "/usr/AGL/ \
167 /home/root/app-data/radio/presets-*.conf \
168 /home/root/app-data/radio/presets.conf \
169 /usr/lib/qt5/qml/AGL/Demo/Controls/qmldir \
170 /usr/lib/qt5/qml/AGL/Demo/Controls/ImageButton.qml \
171 /usr/lib/qt5/qml/AGL/Demo/Controls/ToggleButton.qml \
172 /usr/lib/qt5/qml/AGL/Demo/Controls/Key.qml \
173 /usr/lib/qt5/qml/AGL/Demo/Controls/AbstractKeyboard.qml \
174 /usr/lib/qt5/qml/AGL/Demo/Controls/Symbols.qml \
175 /usr/lib/qt5/qml/AGL/Demo/Controls/Alphabet.qml \
176 /usr/lib/qt5/qml/AGL/Demo/Controls/Keyboard.qml \
177 /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Back.svg \
178 /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Shift.svg \
179 /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Space.svg \
180 /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Arrow.svg \
181 /usr/lib/qt5/qml/QtQuick/Controls.2/AGL \
182 /usr/lib/qt5/qml/QtQuick/Controls.2/AGL/images \