Skip to content

Commit

Permalink
Update vpx to 1.9.0, switch back to tar.gz
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaine committed Aug 27, 2020
1 parent aa24f87 commit 571c03f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ jobs:
- uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install yasm
- name: Install yasm (macos)
if: matrix.os == 'macos-latest'
run: |
brew update
brew install yasm
- name: Install yasm (windows)
if: matrix.os == 'windows-latest'
run: curl -L -o 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\yasm.exe' http://www.tortall.net/projects/yasm/releases/yasm-1.3.0-win64.exe
- name: Build codecs
Expand Down
8 changes: 4 additions & 4 deletions scripts/build-codecs
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ extract() {

if [ "`uname`" = "Linux" ]; then
outputdir=/output
outputfile=$outputdir/codecs-manylinux_$(uname -m).tar.bz2
outputfile=$outputdir/codecs-manylinux_$(uname -m).tar.gz
elif [ "`uname`" = "Darwin" ]; then
outputdir=`pwd`/output
outputfile=$outputdir/codecs-macosx_$(uname -m).tar.bz2
outputfile=$outputdir/codecs-macosx_$(uname -m).tar.gz
else
echo "Unknown platform"
exit 1
Expand All @@ -49,7 +49,7 @@ if [ ! -e $outputfile ]; then
cd $builddir

# build vpx
extract vpx https://github.com/webmproject/libvpx/archive/v1.8.2.tar.gz
extract vpx https://github.com/webmproject/libvpx/archive/v1.9.0.tar.gz
cd vpx
./configure --prefix=$destdir --disable-examples --disable-tools --disable-unit-tests --enable-pic
make -j
Expand All @@ -64,5 +64,5 @@ if [ ! -e $outputfile ]; then
make install
cd ..

tar cjvf $outputfile -C $destdir include lib
tar czvf $outputfile -C $destdir include lib
fi
4 changes: 2 additions & 2 deletions scripts/build-codecs.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set destdir=%1

set outputfile=output\codecs-win%PYTHON_ARCH%.tar.bz2
set outputfile=output\codecs-win%PYTHON_ARCH%.tar.gz
if "%PYTHON_ARCH%" == "64" (
set triplet=x64-windows-static
) else (
Expand All @@ -21,4 +21,4 @@ xcopy C:\vcpkg\installed\%triplet%\lib %destdir%\lib\ /E
if not exist output (
mkdir output
)
tar cjvf %outputfile% -C %destdir% include lib
tar czvf %outputfile% -C %destdir% include lib

0 comments on commit 571c03f

Please sign in to comment.