blob: 505436f3614b78fb05868546a5db7f85a60a2a68 (
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
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
|
#!/bin/bash
. ~/bin/wl_defines.sh
if [ ! -e $WLROOT ]; then
exit 1
fi
# Bail if errors
set -e
gen() {
pkg=$1
shift
echo
echo $pkg
cd $WLROOT/$pkg
echo "./autogen.sh --prefix=$WLD $*"
./autogen.sh --prefix=$WLD $*
}
compile() {
make -j32 && make install
if [ $? != 0 ]; then
echo "Build Error. Terminating"
exit
fi
}
distcheck() {
make distcheck
}
# TODO: Check if tree doesn't exist
# TODO: Log output
# TODO: If it's been a while since we last ran successfully, then
# delete $WLD
mkdir -p $WLD/share/aclocal
gen wayland
compile
gen drm --disable-libkms
compile
gen proto
compile
gen macros
compile
gen libxcb
compile
gen presentproto
compile
gen dri3proto
compile
gen libxshmfence
compile
gen libxkbcommon \
--with-xkb-config-root=/usr/share/X11/xkb \
--disable-x11
compile
echo
echo "mesa"
cd $WLROOT/mesa
git clean -xfd
./autogen.sh --prefix=$WLD --enable-gles2 --disable-gallium-egl \
--with-egl-platforms=x11,wayland,drm --enable-gbm --enable-shared-glapi \
--disable-llvm-shared-libs \
--disable-dri3 \
--with-gallium-drivers=swrast,nouveau,r300,r600
# --disable-opencl \
compile
gen pixman
compile
gen cairo --enable-xcb --enable-gl
compile
echo
echo "libunwind"
cd $WLROOT/libunwind
autoreconf -i
./configure --prefix=$WLD
compile
gen libevdev
compile
gen libinput
compile
if [ ${INCLUDE_XWAYLAND} ]; then
if [ ${WL_BITS} = 32 ]; then
gen libxtrans
compile
fi
gen xproto
compile
gen libepoxy
compile
gen glproto
compile
gen xcmiscproto
compile
gen libxtrans
compile
gen bigreqsproto
compile
gen xextproto
compile
gen fontsproto
compile
gen videoproto
compile
gen recordproto
compile
gen resourceproto
compile
gen xf86driproto
compile
gen randrproto
compile
gen libxkbfile
compile
echo
echo "xserver"
cd $WLROOT/xserver
./autogen.sh --prefix=$WLD --disable-docs --disable-devel-docs \
--enable-xwayland --disable-xorg --disable-xvfb --disable-xnest \
--disable-xquartz --disable-xwin
compile
echo
echo "Paths"
mkdir -p $WLD/share/X11/xkb/rules
if [ ! -e $WLD/share/X11/xkb/rules/evdev ]; then
ln -s /usr/share/X11/xkb/rules/evdev $WLD/share/X11/xkb/rules/
fi
if [ ! -e $WLD/bin/xkbcomp ]; then
ln -s /usr/bin/xkbcomp $WLD/bin/
fi
fi
echo
echo "weston"
cd $WLROOT/weston
git clean -xfd
./autogen.sh --prefix=$WLD \
--with-cairo=gl \
--with-xserver-path=$WLD/bin/Xwayland \
--enable-setuid-install=no \
--enable-clients \
--enable-headless-compositor \
--enable-demo-clients-install
compile
#distcheck
cd $WLROOT
|