toxcore/appveyor.yml

34 lines
1.3 KiB
YAML
Raw Normal View History

---
cache:
- '%APPDATA%\downloads'
install:
# TODO(iphydf): Remove this when appveyor gets curl back, which it should
# have according to https://www.appveyor.com/docs/how-to/download-file/.
- choco install curl
- refreshenv
- if not exist %APPDATA%\downloads mkdir %APPDATA%\downloads
- cd third_party
# libsodium
- mkdir libsodium && cd libsodium
- if not exist %APPDATA%\downloads\libsodium.zip curl -L https://download.libsodium.org/libsodium/releases/libsodium-1.0.16-msvc.zip -o %APPDATA%\downloads\libsodium.zip
- unzip %APPDATA%\downloads\libsodium.zip
- cd ..
# pthreads-win32
- mkdir pthreads-win32 && cd pthreads-win32
- if not exist %APPDATA%\downloads\pthreads.zip curl -L ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.zip -o %APPDATA%\downloads\pthreads.zip
- unzip %APPDATA%\downloads\pthreads.zip
2018-09-20 16:01:40 +08:00
- copy Pre-built.2\lib\x86\* Pre-built.2\lib\
- cd ../..
2018-09-20 16:01:40 +08:00
# TODO currently don't have prebuilt libraries for libvpx and libopus so we will just build with BUILD_TOXAV=OFF for now
before_build:
2018-09-20 16:01:40 +08:00
- cmake . -DBOOTSTRAP_DAEMON=OFF -DENABLE_SHARED=OFF -DBUILD_TOXAV=OFF -DCMAKE_PREFIX_PATH="third_party\pthreads-win32\Pre-built.2;third_party\libsodium"
build:
project: INSTALL.vcxproj
# TODO(iphydf): Tests all segfault on Windows at the moment.
# test_script:
# - ctest -C Debug