blob: 69a58ba08a7cc4024aa5e97df7ab6db127f20c98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
image: Visual Studio 2017
environment:
CMAKE_ARGS: '-G "NMake Makefiles JOM" -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo'
matrix:
- QTDIR: C:\Qt\5.13\msvc2017 # Fresh Qt, 32-bit
VCVARS: "vcvars32.bat"
PLATFORM: x86
- QTDIR: C:\Qt\5.13\msvc2017_64 # Fresh Qt, 64-bit
VCVARS: "vcvars64.bat"
PLATFORM:
- QTDIR: C:\Qt\5.9\msvc2017_64 # Oldest supported Qt, 64-bit, E2EE
VCVARS: "vcvars64.bat"
QMAKE_E2EE_ARGS: '"DEFINES += Quotient_E2EE_ENABLED USE_INTREE_LIBQOLM" "INCLUDEPATH += olm/include" "LIBS += -Lbuild/olm"'
CMAKE_E2EE_ARGS: '-DQuotient_ENABLE_E2EE=ON -DOlm_DIR=build/olm'
PLATFORM:
- QTDIR: C:\Qt\5.13\msvc2017_64 # Fresh Qt, 64-bit, E2EE
VCVARS: "vcvars64.bat"
QMAKE_E2EE_ARGS: '"DEFINES += Quotient_E2EE_ENABLED USE_INTREE_LIBQOLM" "INCLUDEPATH += olm/include" "LIBS += -Lbuild/olm"'
CMAKE_E2EE_ARGS: '-DQuotient_ENABLE_E2EE=ON -DOlm_DIR=build/olm'
PLATFORM:
init:
- call "%QTDIR%\bin\qtenv2.bat"
- set PATH=C:\Qt\Tools\QtCreator\bin;%PATH%
- call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build\\%VCVARS%" %PLATFORM%
- cd /D "%APPVEYOR_BUILD_FOLDER%"
before_build:
- git submodule update --init --recursive
- git clone https://gitlab.matrix.org/matrix-org/olm.git
- cmake %CMAKE_ARGS% -Holm -Bbuild/olm
- cmake --build build/olm
build_script:
- cmake %CMAKE_ARGS% %CMAKE_E2EE_ARGS% -H. -Bbuild
- cmake --build build
#after_build:
#- cmake --build build --target install
#- 7z a quotient.zip "%DEPLOY_DIR%\"
# Uncomment this to connect to the AppVeyor build worker
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
test: off
#artifacts:
#- path: quotient.zip
|