Skip to content

Commit

Permalink
Linux: Build GStreamer
Browse files Browse the repository at this point in the history
  • Loading branch information
HTRamsey committed Sep 5, 2024
1 parent 9aa0f05 commit d9a1b15
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/actions/gstreamer/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ inputs:
gst_version:
description: Version of GStreamer to Build
required: true
default: 1.22.11
default: 1.24.7
build_type:
description: Build Type "release" or "debug"
required: true
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
run: |
chmod a+x ./tools/setup/install-dependencies-debian.sh
sudo ./tools/setup/install-dependencies-debian.sh
python3 -m pip install --user ninja cmake
python3 -m pip install --user ninja cmake meson
- uses: lukka/get-cmake@latest

Expand Down Expand Up @@ -102,8 +102,13 @@ jobs:
modules: qtcharts qtlocation qtpositioning qtspeech qt5compat qtmultimedia qtserialport qtimageformats qtshadertools qtconnectivity qtquick3d qtsensors
cache: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}

# - name: Build GStreamer
# uses: ./.github/actions/gstreamer
# - name: Install Gstreamer
# uses: blinemedical/setup-gstreamer@v1
# with:
# version: ${{ env.GST_VERSION }}

- name: Build GStreamer
uses: ./.github/actions/gstreamer

- run: mkdir ${{ runner.temp }}/shadow_build_dir

Expand Down
11 changes: 11 additions & 0 deletions cmake/GStreamer.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
if(LINUX)
set(GST_FULL_STATIC ON)
endif()

if(GST_FULL_STATIC)
find_package(PkgConfig)
pkg_check_modules(GST IMPORTED_TARGET gstreamer-full-1.0)
target_link_libraries(qmlglsink PUBLIC PkgConfig::GST)
return()
endif()

if(ANDROID)
set(GST_STATIC_BUILD ON)
else()
Expand Down

0 comments on commit d9a1b15

Please sign in to comment.