Skip to content
Snippets Groups Projects
Commit 868435c8 authored by Konstantinos Sideris's avatar Konstantinos Sideris
Browse files

Initial setup on appveyor

[ci skip]
parent 83ac2b14
No related branches found
No related tags found
No related merge requests found
mtxclient
---
[![Build Status](https://travis-ci.org/mujx/mtxclient.svg?branch=master)](https://travis-ci.org/mujx/mtxclient)
[![Build status](https://ci.appveyor.com/api/projects/status/5hl7a6dc5s60xpxy/branch/master?svg=true)](https://ci.appveyor.com/project/mujx/mtxclient/branch/master)
[![codecov](https://codecov.io/gh/mujx/mtxclient/branch/master/graph/badge.svg)](https://codecov.io/gh/mujx/mtxclient)
Client API library for the Matrix protocol, built on top of Boost.Asio.
......
---
version: 0.1.0-{build}
configuration: Release
image: Visual Studio 2017
platform: x64
build:
verbosity: minimal
install:
- set PATH=%PATH%;C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin
- mingw32-make.exe --version
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
- vcpkg install
openssl:%PLATFORM%-windows
boost-system:%PLATFORM%-windows
boost-random:%PLATFORM%-windows
boost-thread:%PLATFORM%-windows
boost-iostreams:%PLATFORM%-windows
boost-asio:%PLATFORM%-windows
boost-beast:%PLATFORM%-windows
libsodium:%PLATFORM%-windows
zlib:%PLATFORM%-windows
build_script:
- cmake -G "Visual Studio 15 2017 Win64" -H. -Bbuild
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake
-DBUILD_LIB_TESTS=OFF
-DBUILD_LIB_EXAMPLES=OFF
- cmake --build build --config Release
......@@ -7,16 +7,22 @@ include(ExternalProject)
set(THIRD_PARTY_ROOT ${CMAKE_SOURCE_DIR}/.third-party)
set(OLM_ROOT ${THIRD_PARTY_ROOT}/olm)
if(MSVC)
set(MAKE_CMD "mingw32-make.exe")
else()
set(MAKE_CMD "make")
endif()
ExternalProject_Add(
Olm
GIT_REPOSITORY https://git.matrix.org/git/olm.git
GIT_TAG 3f5b9dd6d72540a66da90b382a2eda088af63da0
GIT_TAG 4065c8e11a33ba41133a086ed3de4da94dcb6bae
BUILD_IN_SOURCE 1
SOURCE_DIR ${OLM_ROOT}
CONFIGURE_COMMAND ""
BUILD_COMMAND make static
BUILD_COMMAND ${MAKE_CMD} static
INSTALL_COMMAND ""
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment