Skip to content

Commit 2704b8d

Browse files
scripts: build_gst: Add depenencies for Python bindinds
1 parent f160f87 commit 2704b8d

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

scripts/build_gst.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ GST_VERSION=${GST_VERSION:-main}
1515
# This install directory will be accessed by other stages of the docker build:
1616
GST_INSTALL_DIR=${GST_INSTALL_DIR:-/artifacts}
1717
GST_OMX_ENABLED=${GST_OMX_ENABLED:-true}
18+
GST_PYTHON_ENABLED=${GST_PYTHON_ENABLED:-true}
1819
LIBCAMERA_ENABLED=${LIBCAMERA_ENABLED:-false}
1920
LIBCAMERA_VERSION=${LIBCAMERA_VERSION:-master}
2021
LIBCAMERA_GIT_URL=${LIBCAMERA_GIT_URL:-https://git.libcamera.org/libcamera/libcamera.git}
@@ -126,6 +127,15 @@ GST_BUILD_TOOLS_DEFAULT=(
126127
python-gi-dev
127128
)
128129
GST_BUILD_TOOLS=${GST_BUILD_TOOLS:-${GST_BUILD_TOOLS_DEFAULT[@]}}
130+
if [ $GST_PYTHON_ENABLED == true ]; then
131+
GST_BUILD_TOOLS+=(
132+
build-essential
133+
llvm
134+
tk-dev
135+
wget
136+
xz-utils
137+
)
138+
fi
129139

130140
# Although to build GStreamer essentially we need only a few libraries, here we
131141
# are actively providing several libraries which would otherwise be compiled
@@ -174,6 +184,18 @@ if [ $LIBCAMERA_ENABLED == true ]; then
174184
libboost-dev
175185
)
176186
fi
187+
if [ $GST_PYTHON_ENABLED == true ]; then
188+
GST_BUILD_LIBS+=(
189+
libbz2-dev
190+
libcairo2-dev
191+
libgirepository1.0-dev
192+
libncurses5-dev
193+
libncursesw5-dev
194+
libreadline-dev
195+
libsqlite3-dev
196+
zlib1g-dev
197+
)
198+
fi
177199

178200
GST_PIP_DEPENDENCIES=(
179201
"mako==1.2.0"
@@ -187,6 +209,11 @@ if [ $LIBCAMERA_ENABLED == true ]; then
187209
"pyyaml==6.0"
188210
)
189211
fi
212+
if [ $GST_PYTHON_ENABLED == true ]; then
213+
GST_PIP_DEPENDENCIES+=(
214+
"pygobject==3.44"
215+
)
216+
fi
190217

191218
cat << EOF
192219
Going to build and install GStreamer in 5 seconds...

0 commit comments

Comments
 (0)