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 SRC_URI = "git://gerrit.automotivelinux.org/gerrit/AGL/DemoApps/CES2017;protocol=http"
20 qtmultimedia-qmlplugins \
21 qtmultimedia-rtlfm-radio-plugin \
22 qtquickcontrols-qmlplugins \
23 qtquickcontrols2-qmlplugins \
27 do_install_prepend() {
28 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \
29 <widget xmlns=\"http://www.w3.org/ns/widgets\" id=\"controls\" version=\"0.1\"> \
30 <name>Controls</name> \
31 <content src=\"controls\" type=\"application/x-executable\"/> \
32 <description>Controls app.</description> \
34 <icon src=\"controls.png\"/> \
35 <license>Apache 2.0</license> \
37 " > ${B}/apps/Controls/config.xml
39 cd ${B}/apps/Controls/
40 zip controls.wgt config.xml controls
44 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \
45 <widget xmlns=\"http://www.w3.org/ns/widgets\" id=\"dashboard\" version=\"0.1\"> \
46 <name>Dashboard</name> \
47 <content src=\"dashboard\" type=\"application/x-executable\"/> \
48 <description>Dashboard app.</description> \
50 <icon src=\"dashboard.png\"/> \
51 <license>Apache 2.0</license> \
53 " > ${B}/apps/Dashboard/config.xml
55 cd ${B}/apps/Dashboard/
56 zip dashboard.wgt config.xml dashboard
60 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \
61 <widget xmlns=\"http://www.w3.org/ns/widgets\" id=\"phone\" version=\"0.1\"> \
63 <content src=\"phone\" type=\"application/x-executable\"/> \
64 <description>Phone app.</description> \
66 <icon src=\"phone.png\"/> \
67 <license>Apache 2.0</license> \
69 " > ${B}/apps/Phone/config.xml
72 zip phone.wgt config.xml phone
76 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \
77 <widget xmlns=\"http://www.w3.org/ns/widgets\" id=\"radio\" version=\"0.1\"> \
79 <content src=\"radio\" type=\"application/x-executable\"/> \
80 <description>Radio app.</description> \
82 <icon src=\"radio.png\"/> \
83 <license>Apache 2.0</license> \
85 " > ${B}/apps/Radio/config.xml
88 zip radio.wgt config.xml radio
92 cat > ${B}/apps/installAllApps.sh <<-EOF
95 for file in \`find . -maxdepth 1 -name '*.wgt'\`; do
97 /usr/bin/afm-util install \$file
102 cyad -s -k MANIFESTS -t allow -c User::App::navigation -u '*' -p 'http://tizen.org/privilege/internal/dbus'
103 cyad -s -k MANIFESTS -t allow -c User::App::poi -u '*' -p 'http://tizen.org/privilege/internal/dbus'
108 install -d ${D}/usr/AGL/${PN}
109 install -d ${D}/usr/AGL/apps
110 install -m 0644 ${B}/apps/Controls/controls.wgt ${D}/usr/AGL/apps/
111 install -m 0644 ${B}/apps/Dashboard/dashboard.wgt ${D}/usr/AGL/apps/
112 install -m 0644 ${B}/apps/Phone/phone.wgt ${D}/usr/AGL/apps/
113 install -m 0644 ${B}/apps/Radio/radio.wgt ${D}/usr/AGL/apps/
115 install -m 0755 ${B}/apps/installAllApps.sh ${D}/usr/AGL/apps/
116 ln -sf ../apps/installAllApps.sh ${D}/usr/AGL/${PN}/installAllApps.sh
118 install -d ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
119 install -m 0644 ${S}/imports/AGL/Demo/Controls/qmldir ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
120 install -m 0644 ${S}/imports/AGL/Demo/Controls/ImageButton.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
121 install -m 0644 ${S}/imports/AGL/Demo/Controls/ToggleButton.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
122 install -m 0644 ${S}/imports/AGL/Demo/Controls/Key.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
123 install -m 0644 ${S}/imports/AGL/Demo/Controls/AbstractKeyboard.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
124 install -m 0644 ${S}/imports/AGL/Demo/Controls/Symbols.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
125 install -m 0644 ${S}/imports/AGL/Demo/Controls/Alphabet.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
126 install -m 0644 ${S}/imports/AGL/Demo/Controls/Keyboard.qml ${D}${libdir}/qt5/qml/AGL/Demo/Controls/
127 install -d ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
128 install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Back.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
129 install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Shift.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
130 install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Space.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
131 install -m 0644 ${S}/imports/AGL/Demo/Controls/images/Keyboard_Arrow.svg ${D}${libdir}/qt5/qml/AGL/Demo/Controls/images/
133 install -d ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL
134 install -m 0644 ${S}/imports/qtquickcontrols2aglstyle/*.qml ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL
136 install -d ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL/images/
137 install -m 0644 ${S}/imports/qtquickcontrols2aglstyle/images/* ${D}${libdir}/qt5/qml/QtQuick/Controls.2/AGL/images/
140 # plain copy in own folder for now
142 # mkdir -p ${D}/usr/AGL/CES2017/
143 # cp -rf ./* ${D}/usr/AGL/CES2017/
146 FILES_${PN} += "/usr/AGL/ \
149 /usr/lib/qt5/qml/AGL/Demo/Controls/qmldir \
150 /usr/lib/qt5/qml/AGL/Demo/Controls/ImageButton.qml \
151 /usr/lib/qt5/qml/AGL/Demo/Controls/ToggleButton.qml \
152 /usr/lib/qt5/qml/AGL/Demo/Controls/Key.qml \
153 /usr/lib/qt5/qml/AGL/Demo/Controls/AbstractKeyboard.qml \
154 /usr/lib/qt5/qml/AGL/Demo/Controls/Symbols.qml \
155 /usr/lib/qt5/qml/AGL/Demo/Controls/Alphabet.qml \
156 /usr/lib/qt5/qml/AGL/Demo/Controls/Keyboard.qml \
157 /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Back.svg \
158 /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Shift.svg \
159 /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Space.svg \
160 /usr/lib/qt5/qml/AGL/Demo/Controls/images/Keyboard_Arrow.svg \
161 /usr/lib/qt5/qml/QtQuick/Controls.2/AGL \
162 /usr/lib/qt5/qml/QtQuick/Controls.2/AGL/images \