Fix mingw build

This commit is contained in:
Kagami Hiiragi 2019-03-20 01:25:01 +03:00
parent 1b92da1f74
commit 67c692ccc4
1 changed files with 3 additions and 2 deletions

View File

@ -4,9 +4,10 @@ clone_folder: C:\projects\go-avif\src\github.com\Kagami\go-avif
install:
- set PATH=%PATH%;C:\msys64\mingw64\bin
- set GOPATH=C:\projects\go-avif
- set CGO_LDFLAGS=-static
- set "CGO_CFLAGS=-IC:\projects\aom_dist\include"
- set "CGO_LDFLAGS=-static -LC:\projects\aom_dist\lib"
- C:\msys64\usr\bin\pacman --noconfirm -S mingw-w64-x86_64-cmake mingw-w64-x86_64-yasm
- C:\msys64\usr\bin\bash -lc "cd /c/projects && git clone --depth=1 https://aomedia.googlesource.com/aom && mkdir aom_build && cd aom_build && cmake ../aom -G 'MSYS Makefiles' -DCMAKE_BUILD_TYPE=Release -DCONFIG_AV1_DECODER=0 -DENABLE_DOCS=0 -DENABLE_EXAMPLES=0 -DENABLE_TOOLS=0 -DENABLE_TESTS=0 -DCONFIG_LOWBITDEPTH=1 && make -j4 && make install"
- C:\msys64\usr\bin\bash -lc "export PATH=""/mingw64/bin:$PATH""; cd /c/projects && git clone --depth=1 https://aomedia.googlesource.com/aom && mkdir aom_build && cd aom_build && cmake ../aom -G 'MSYS Makefiles' -DCMAKE_INSTALL_PREFIX=/c/projects/aom_dist -DCMAKE_BUILD_TYPE=Release -DCONFIG_AV1_DECODER=0 -DENABLE_DOCS=0 -DENABLE_EXAMPLES=0 -DENABLE_TOOLS=0 -DENABLE_TESTS=0 -DCONFIG_LOWBITDEPTH=1 && make -j3 && make install"
build_script:
- go get -v ./...