Skip to content

Commit

Permalink
Build spotify plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaski committed Jun 20, 2024
1 parent 0c6e8e1 commit 6c252ba
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ env:

gstreamer_version: '1.24.5'

gstreamer_plugins_rs_version: '0.12.6'

libplist_version: '2.6.0'

libmtp_version: '1.1.21'
Expand Down Expand Up @@ -265,7 +267,7 @@ jobs:

- name: brew install
shell: bash
run: brew install autoconf automake bison libtool gh
run: brew install autoconf automake bison libtool gh rustup-init

- name: brew list
shell: bash
Expand Down Expand Up @@ -2872,6 +2874,48 @@ jobs:
run: ninja install


- name: Install cargo-c
shell: bash
run: cargo install cargo-c


- name: Download gst-plugins-rs
shell: bash
working-directory: build
run: git clone -b "${{env.gstreamer_plugins_rs_version}}" "https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git"

- name: Configure gst-plugins-rs
shell: bash
env:
CL: "/MP"
PKG_CONFIG_EXECUTABLE: ${{env.prefix_path}}/bin/pkgconf
PKG_CONFIG_PATH: ${{env.prefix_path}}/lib/pkgconfig
CFLAGS: -I${{env.prefix_path}}/include
CXXFLAGS: -I${{env.prefix_path}}/include
LDFLAGS: -L${{env.prefix_path}}/lib -Wl,-rpath,${{env.prefix_path}}/lib
working-directory: build/gst-plugins-rs
run: meson setup --buildtype=${{env.meson_buildtype}} --default-library=shared --prefix=${{env.prefix_path}} --pkg-config-path=${{env.prefix_path}}/lib/pkgconfig --wrap-mode=nodownload --auto-features=disabled -Dspotify=enabled build

#- name: Copy dependencies
#shell: bash
#working-directory: build/gst-plugins-rs/build
#run: |
#mkdir -p target/${{matrix.arch}}-pc-windows-msvc/debug/deps
#cp ${{env.prefix_path_unix}}/lib/{glib-2.0.lib,gobject-2.0.lib,gio-2.0.lib,intl.lib,gstreamer-1.0.lib,gstbase-1.0.lib} target/${{matrix.arch}}-pc-windows-msvc/debug/deps/

- name: Build gst-plugins-rs
shell: bash
env:
CL: "/MP"
working-directory: build/gst-plugins-rs/build
run: ninja

- name: Install gst-plugins-rs
shell: bash
working-directory: build/gst-plugins-rs/build
run: ninja install


- name: Download libplist
shell: bash
working-directory: downloads
Expand Down

0 comments on commit 6c252ba

Please sign in to comment.