1
0
Fork 0

Add ccache and make MPV install to the right location.

This commit is contained in:
NamedKitten 2018-10-14 14:11:12 +01:00
parent f801b59c7e
commit dc08a1a4cb
2 changed files with 4 additions and 9 deletions

View file

@ -2,14 +2,7 @@ language: cpp
compiler: gcc compiler: gcc
sudo: require sudo: require
dist: trusty dist: trusty
cache: ccache
cache:
apt: true
ccache: true
directories:
- /var/cache/apt/archives
paths:
- /var/cache/apt/archives
before_install: before_install:
- sudo add-apt-repository ppa:beineri/opt-qt-5.10.1-trusty -y - sudo add-apt-repository ppa:beineri/opt-qt-5.10.1-trusty -y
@ -21,6 +14,7 @@ install:
- source /opt/qt*/bin/qt*-env.sh - source /opt/qt*/bin/qt*-env.sh
script: script:
- export PATH="/usr/lib/ccache:$PATH"
- bash scripts/build-mpv.sh - bash scripts/build-mpv.sh
- qmake CONFIG+=release PREFIX=/usr - qmake CONFIG+=release PREFIX=/usr
- make -j$(nproc) - make -j$(nproc)
@ -48,3 +42,4 @@ branches:
except: except:
- # Do not build tags that we create when we upload to GitHub Releases - # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)/ - /^(?i:continuous)/

View file

@ -2,7 +2,7 @@
git clone --depth 1 https://github.com/mpv-player/mpv-build git clone --depth 1 https://github.com/mpv-player/mpv-build
cd mpv-build cd mpv-build
echo --enable-libmpv-shared > mpv_options echo --enable-libmpv-shared --prefix=/usr > mpv_options
echo --disable-caca --disable-wayland --disable-gl-wayland --disable-libarchive --disable-zlib --disable-tv --disable-debug-build --disable-manpage-build --disable-vapoursynth --disable-libsmbclient > mpv_options echo --disable-caca --disable-wayland --disable-gl-wayland --disable-libarchive --disable-zlib --disable-tv --disable-debug-build --disable-manpage-build --disable-vapoursynth --disable-libsmbclient > mpv_options
./rebuild -j`nproc` ./rebuild -j`nproc`