File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff 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:
1616GST_INSTALL_DIR=${GST_INSTALL_DIR:-/ artifacts}
1717GST_OMX_ENABLED=${GST_OMX_ENABLED:- true}
18+ GST_PYTHON_ENABLED=${GST_PYTHON_ENABLED:- true}
1819LIBCAMERA_ENABLED=${LIBCAMERA_ENABLED:- false}
1920LIBCAMERA_VERSION=${LIBCAMERA_VERSION:- master}
2021LIBCAMERA_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)
128129GST_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 )
176186fi
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
178200GST_PIP_DEPENDENCIES=(
179201 " mako==1.2.0"
@@ -187,6 +209,11 @@ if [ $LIBCAMERA_ENABLED == true ]; then
187209 " pyyaml==6.0"
188210 )
189211fi
212+ if [ $GST_PYTHON_ENABLED == true ]; then
213+ GST_PIP_DEPENDENCIES+=(
214+ " pygobject==3.44"
215+ )
216+ fi
190217
191218cat << EOF
192219Going to build and install GStreamer in 5 seconds...
You can’t perform that action at this time.
0 commit comments