-
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathcompositor-proxy-cli-build.sh
More file actions
executable file
·71 lines (67 loc) · 1.96 KB
/
Copy pathcompositor-proxy-cli-build.sh
File metadata and controls
executable file
·71 lines (67 loc) · 1.96 KB
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
#!/usr/bin/env bash
set -e
if [ -z "$TARGETARCH" ]; then
printf "TARGETARCH must be set by docker build. Exiting.\n"
exit 1;
fi
NODE_VERSION="v20.9.0"
NODE_DISTRO=linux-$(if [ "$TARGETARCH" == "amd64" ];then printf "x64"; else printf "%s" "$TARGETARCH"; fi)
printf "building for arch %s\n" "$ARCH"
apt-get update
apt-get install -y --no-install-recommends \
cmake \
build-essential \
ninja-build \
pkg-config \
libffi-dev \
libudev-dev \
libgbm-dev \
libdrm-dev \
libegl-dev \
libopengl-dev \
libglib2.0-dev \
libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev \
libgstreamer-plugins-bad1.0-dev \
libgraphene-1.0-dev \
git \
python3 \
python3-distutils \
curl \
ca-certificates \
flex \
bison \
liborc-0.4-dev-bin \
meson
apt-get autoremove -y
apt-get clean
rm -rf /var/lib/apt/lists/*
git clone --depth 1 --branch 1.20 https://gitlab.freedesktop.org/gstreamer/gstreamer.git
cd gstreamer
meson build \
--buildtype=release \
--strip \
-Dgpl=enabled \
-Dorc=enabled \
-Dbase=enabled \
-Dgood=enabled \
-Dbad=enabled \
-Dugly=enabled \
-Dauto_features=disabled \
-Dgst-plugins-base:app=enabled \
-Dgst-plugins-base:gl=enabled \
-Dgst-plugins-base:gl-graphene=enabled \
-Dgst-plugins-base:gl_winsys=egl \
-Dgst-plugins-base:gl_api=opengl \
-Dgst-plugins-bad:gl=enabled \
-Dgst-plugins-bad:nvcodec=enabled
ninja -C build
curl https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-"$NODE_DISTRO".tar.xz --output node-$NODE_VERSION-"$NODE_DISTRO".tar.xz \
&& tar xvf node-$NODE_VERSION-"$NODE_DISTRO".tar.xz
export PATH="$PWD/node-$NODE_VERSION-$NODE_DISTRO/bin:$PATH"
corepack enable
yarn install
yarn workspace @gfld/xtsb build
yarn workspace @gfld/compositor-proxy build
yarn workspace @gfld/compositor-proxy-cli build
yarn workspace @gfld/compositor-proxy-cli package