toxcore/appveyor.yml
Robin Linden 56992b099e
Add support for the conan C/C++ package manager
* Don't overwrite the CMAKE_MODULE_PATH
* Allow linking libsodium statically with MSVC
* Allow finding libsodium the normal way on MSVC
* Allow using pthreads4w for pthreads on MSVC
* Fall back to find_package if pkg_find_module fails
* Don't pass incompatible compile flags to MSVC
* Also try to find Opus and libvpx using their canonical names
* Support building using conan
* Allow pkg_use_module to take a list of libraries to look for
* Build for Windows on Appveyor using conan
2020-05-29 15:36:26 +02:00

24 lines
500 B
YAML

---
cache:
- '%USERPROFILE%\.conan'
install:
- set PATH=C:\Python38-x64\Scripts;%PATH%
- py -3 -m pip install conan
- conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
before_build:
- ps: |
mkdir _build
cd _build
conan install ..
build_script:
- conan build .. --configure --build
test_script:
# TODO(iphydf): Tests are unstable and slow on windows at the moment.
- set CONAN_CPU_COUNT=50
- conan build .. --test &
exit 0