blob: e5e69f8f40e970c09724a4302a0c0e06b4c872b3 [file] [log] [blame]
language: c
os: linux
dist: bionic
addons:
apt:
packages:
- ninja-build
- python3
- python3-pip
before_script:
- curl -L https://download.videolan.org/contrib/nasm/nasm-2.14.tar.gz | tar xvz
- cd nasm-2.14
- ./configure && make -j2 && sudo make install
- nasm --version
- pip3 --disable-pip-version-check install setuptools
- pip3 --disable-pip-version-check install meson
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- source $HOME/.cargo/env
- cd $TRAVIS_BUILD_DIR/ext
- bash aom.cmd
- bash dav1d.cmd
- bash libgav1.cmd
- bash rav1e.cmd
- cd ..
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=$config -DBUILD_SHARED_LIBS=OFF -DAVIF_CODEC_AOM=ON -DAVIF_LOCAL_AOM=ON -DAVIF_CODEC_DAV1D=ON -DAVIF_LOCAL_DAV1D=ON -DAVIF_CODEC_RAV1E=ON -DAVIF_LOCAL_RAV1E=ON -DAVIF_CODEC_LIBGAV1=ON -DAVIF_LOCAL_LIBGAV1=ON -DAVIF_BUILD_EXAMPLES=ON -DAVIF_BUILD_APPS=ON -DAVIF_BUILD_TESTS=ON ..
script:
- make
matrix:
include:
- name: "GCC Debug"
compiler: gcc
config: Debug
- name: "GCC Release"
compiler: gcc
config: Release
- name: "Clang Debug"
compiler: clang
config: Debug
- name: "Clang Release"
compiler: clang
config: Release