1
0
Fork 0

Build opusfile libs for macOS snapshots

This is a temporary measure until our buildsystem will be capable of
correctly picking static libraries directly from the OS.
This commit is contained in:
Patryk Obara 2020-03-08 01:39:42 +01:00 committed by Patryk Obara
parent 3c44ad29b8
commit b98cd0f612

View file

@ -39,6 +39,11 @@ jobs:
run: brew install librsvg $(./scripts/list-build-dependencies.sh -m brew -c clang)
- name: Log environment
run: ./scripts/log-env.sh
- name: Build Opus libraries
run: |
set -x
cd contrib/static-opus
gmake -j "$(sysctl -n hw.physicalcpu)"
- name: Inject version string
run: |
set -x
@ -48,13 +53,14 @@ jobs:
- name: Build
env:
FLAGS: -O3 -DNDEBUG -pipe
OPUSFILE_CFLAGS: -I${{ github.workspace }}/contrib/static-opus/include -I${{ github.workspace }}/contrib/static-opus/include/opus
OPUSFILE_LIBS: ${{ github.workspace }}/contrib/static-opus/lib/libopusfile.a ${{ github.workspace }}/contrib/static-opus/lib/libogg.a ${{ github.workspace }}/contrib/static-opus/lib/libopus.a -lm
run: |
set -x
./autogen.sh
# FIXME temporarily disable everything aside SDL2 due to linking issues
./configure \
--enable-sdl-static \
--disable-opus-cdda \
--disable-screenshots \
--disable-network \
CFLAGS="$FLAGS" CXXFLAGS="$FLAGS"