diff options
| author | claude-bot <[email protected]> | 2026-07-13 12:40:01 +0000 |
|---|---|---|
| committer | claude-bot <[email protected]> | 2026-07-13 12:40:01 +0000 |
| commit | 02fe7437413eaaf7cee46e5a1862c1fc7ac0dbba (patch) | |
| tree | 50a2f61b89ee66f9ff58b7b9167a8e5232e19e3c /ci | |
| download | opusfile-master.tar.gz opusfile-master.zip | |
Snapshot for re3/reVC vendoring, per @lzcnt.
Source: https://github.com/xiph/opusfile (4174c26e0aaab19d01afdea0a46f7f95fdc6b3e6).
Diffstat (limited to 'ci')
| -rwxr-xr-x | ci/autotools.sh | 65 | ||||
| -rwxr-xr-x | ci/unix.sh | 23 |
2 files changed, 88 insertions, 0 deletions
diff --git a/ci/autotools.sh b/ci/autotools.sh new file mode 100755 index 0000000..79543e5 --- /dev/null +++ b/ci/autotools.sh @@ -0,0 +1,65 @@ +# Continuous integration build script for opusfile. +# This script is run by automated frameworks to verify commits +# see https://mf4.xiph.org/jenkins/job/opusfile-autotools/ + +# This is intended to be run from the top-level source directory. + +set -x + +# WARNING: clobbers outside the current tree! +rm -f ../opus +ln -s /srv/jenkins/jobs/opus/workspace ../opus +rm -f ../ogg +ln -s /srv/jenkins/jobs/libogg/workspace ../ogg + +# HACK: libtool can't link a dynamic library to a static +# library, and the 'unix' makefile build can't link to +# a libopus.la. As a work around, hack our own pkg-config +# file for the uninstalled opus library we want to build +# against. +cat <<EOF > opus-uninstalled.pc +# Opus codec uninstalled pkg-config file +# hacked up for the opusfile autotools build. + +libdir=\${pcfiledir}/../opus +includedir=\${libdir}/include + +Name: opus uninstalled for opusfile +Description: Opus IETF audio codec (not installed) +Version: 1.0.1 +Requires: +Conflicts: +Libs: \${libdir}/libopus.la -lm +Cflags: -I\${includedir} +EOF + +cat <<EOF > ogg-uninstalled.pc +# ogg uninstalled pkg-config file +# hacked up for the opusfile autotools build + +libdir=\${pcfiledir}/../ogg/src +includedir=\${pcfiledir}/../ogg/include + +Name: ogg uninstalled for opusfile +Description: ogg is a library for manipulating ogg bitstreams (not installed) +Version: 1.3.0 +Requires: +Conflicts: +Libs: \${libdir}/libogg.la +Cflags: -I\${includedir} +EOF + +PKG_CONFIG_PATH=$PWD + +# compile +./autogen.sh +./configure PKG_CONFIG_PATH=${PKG_CONFIG_PATH} +make clean +make + +# verify distribution target +make distcheck PKG_CONFIG_PATH=${PKG_CONFIG_PATH} + +# build the documentation +# currently fails on jenkins (debian stretch) +# make -C doc/latex diff --git a/ci/unix.sh b/ci/unix.sh new file mode 100755 index 0000000..8e7e7d1 --- /dev/null +++ b/ci/unix.sh @@ -0,0 +1,23 @@ +# Continuous integration build script for opusfile. +# This script is run by automated frameworks to verify commits +# see https://mf4.xiph.org/jenkins/job/opusfile-unix/ + +# This is intended to be run from the top-level source directory. + +set -x + +# WARNING: clobbers outside the current tree! +rm -f ../opus +ln -s /srv/jenkins/jobs/opus/workspace ../opus + +# compile +make -C unix PKG_CONFIG_PATH=$PWD/../opus clean +make -C unix PKG_CONFIG_PATH=$PWD/../opus + +# run any built-in tests +make -C unix PKG_CONFIG_PATH=$PWD/../opus check + +# build the documentation +make -C doc +# currently fails on jenkins (debian stretch) +# make -C doc/latex |
