1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
name: genivi-demo-platform-hmi
kind: chunk
pre-configure-commands:
- |
sed -i 's/sd_journal_print(LOG_DEBUG,/printf("DEBUG: "/' $(find . -name '*.cpp' -o -name '*.h')
- |
sed -i 's/sd_journal_print(LOG_INFO,/printf("INFO: "/' $(find . -name '*.cpp' -o -name '*.h')
- |
sed -i 's/sd_journal_print(LOG_ERR,/printf("ERR: "/' $(find . -name '*.cpp' -o -name '*.h')
- |
git apply - << "EOF"
diff --git a/configure.ac b/configure.ac
index f0c7ba2..4ff1462 100644
--- a/configure.ac
+++ b/configure.ac
@@ -61,10 +61,10 @@ PKG_CHECK_MODULES([CLIENT], [
AC_CHECK_HEADERS([ilm/ilm_types.h])
AC_CHECK_LIB(ilmClient, ilm_UpdateInputEventAcceptanceOn,
[ILM_LIBS="-lilmCommon -lilmClient"],
- [AC_MSG_ERROR([Can't find correct ilmClient library.])])
+ [AC_MSG_ERROR([Can't find correct ilmClient library.])], -lilmControl)
AC_CHECK_LIB(ilmControl, ilm_SetKeyboardFocusOn,
[ILM_LIBS="$ILM_LIBS -lilmControl"],
- [AC_MSG_ERROR([Can't find correct ilmControl library.])])
+ [AC_MSG_ERROR([Can't find correct ilmControl library.])], -lilmClient)
AC_SUBST(ILM_LIBS)
WAYLAND_PREFIX=`$PKG_CONFIG --variable=prefix wayland-client`
EOF
configure-commands:
- autoreconf -vfi && ./configure --prefix=$PREFIX
- cd app/gdp-hmi-background && qmake
- cd app/gdp-hmi-launcher2 && qmake
- cd app/gdp-hmi-panel && qmake
- cd app/qml-example && qmake
build-commands:
- make
- cd app/gdp-hmi-background && make
- cd app/gdp-hmi-launcher2 && make
- cd app/gdp-hmi-panel && make
- cd app/qml-example && make
install-commands:
- make DESTDIR=$DESTDIR install
- cd app/gdp-hmi-background && make INSTALL_ROOT=$DESTDIR install
- cd app/gdp-hmi-launcher2 && make INSTALL_ROOT=$DESTDIR install
- cd app/gdp-hmi-panel && make INSTALL_ROOT=$DESTDIR install
- cd app/qml-example && make INSTALL_ROOT=$DESTDIR install
- mkdir -p $DESTDIR/usr/share/gdp
- cp -a app/*/assets/* $DESTDIR/usr/share/gdp/
- mkdir -p "$DESTDIR/usr/lib/systemd/user"
- |
cat >"$DESTDIR/usr/lib/systemd/user/gdp-hmi-launcher2.service" <<EOF
[Unit]
Description=GENIVI Demo Platform HMI - Launcher2
After=gdp-hmi-controller.service gdp-hmi-background.service gdp-hmi-panel.service
[Service]
Environment=LD_PRELOAD=/usr/lib/libEGL.so
ExecStart=/usr/bin/gdp-hmi-launcher2
[Install]
WantedBy=default.target
EOF
- |
cat >"$DESTDIR/usr/lib/systemd/user/gdp-hmi-background.service" <<EOF
[Unit]
Description=GENIVI Demo Platform HMI - Background
After=gdp-hmi-controller.service
[Service]
Environment=LD_PRELOAD=/usr/lib/libEGL.so
ExecStart=/usr/bin/gdp-hmi-background
[Install]
WantedBy=default.target
EOF
- |
cat >"$DESTDIR/usr/lib/systemd/user/gdp-hmi-controller.service" <<EOF
[Unit]
Description=GENIVI Demo Platform HMI - Controller
Requires=dbus.service
After=dbus.service weston.service
[Service]
ExecStart=/usr/bin/gdp-hmi-controller
Restart=always
RestartSec=2
TimeoutStopSec=1
[Install]
WantedBy=default.target
EOF
- |
cat >"$DESTDIR/usr/lib/systemd/user/gdp-hmi-panel.service" <<EOF
[Unit]
Description=GENIVI Demo Platform HMI - Panel
After=gdp-hmi-controller.service
[Service]
Environment=LD_PRELOAD=/usr/lib/libEGL.so
ExecStart=/usr/bin/gdp-hmi-panel
[Install]
WantedBy=default.target
EOF
- |
cat >"$DESTDIR/usr/lib/systemd/user/EGLWLMockNavigation.service" <<EOF
[Unit]
Description=EGL Wayland Mock Navigation
[Service]
ExecStart=/usr/bin/EGLWLMockNavigation -surface 10
EOF
- |
cat > "$DESTDIR/usr/lib/systemd/user/EGLWLInputEventExample.service" <<EOF
[Unit]
Description=EGL Wayland Input Event Example
[Service]
ExecStart=/usr/bin/EGLWLInputEventExample --surface=5100
EOF
- |
cat > "$DESTDIR/usr/lib/systemd/user/qml-example.service" <<EOF
[Unit]
Description=Genivi QML Example
[Service]
ExecStart=/usr/bin/qml-example
EOF
|