diff --git a/.travis.yml b/.travis.yml index 4e79430..16aef46 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,13 +12,13 @@ before_install: - sudo apt-get update install: - - sudo apt-get -y install libmpv1 libmpv-dev qt511-meta-minimal qt511quickcontrols qt511quickcontrols2 qt511imageformats qt511svg libgl1-mesa-dev - - #sudo apt-get build-dep libmpv1 libmpv-dev + - sudo apt-get -y install ccache libmpv1 libmpv-dev qt511-meta-minimal qt511quickcontrols qt511quickcontrols2 qt511imageformats qt511svg libgl1-mesa-dev + - sudo apt-get build-dep libmpv1 libmpv-dev - source /opt/qt*/bin/qt*-env.sh script: - - #export PATH="/usr/lib/ccache:$PATH" - - #bash scripts/build-mpv.sh + - export PATH="/usr/lib/ccache:$PATH" + - bash scripts/build-mpv.sh - qmake CONFIG+=release PREFIX=/usr - make -j$(nproc) - make INSTALL_ROOT=appdir -j$(nproc) install ; find appdir/ diff --git a/scripts/build-mpv.sh b/scripts/build-mpv.sh index 4221e35..8a90f0d 100644 --- a/scripts/build-mpv.sh +++ b/scripts/build-mpv.sh @@ -1,10 +1,17 @@ #!/bin/bash -git clone --depth 1 https://github.com/mpv-player/mpv-build -cd mpv-build +#git clone --depth 1 https://github.com/mpv-player/mpv-build +#cd mpv-build +export PATH="/usr/lib/ccache:$PATH" +git clone --depth 1 https://github.com/mpv-player/mpv +cd mpv 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 -./rebuild -j`nproc` -sudo ./install + +./bootstrap.py +./waf configure `cat mpv_options` +./waf -j`nproc` +sudo ./waf install + cd ..