aboutsummaryrefslogtreecommitdiff
path: root/.appveyor.yml
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-10-12 14:56:12 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-10-13 16:06:59 +0900
commita4538e65359ea71f285d352d9cb44bdcdcab7139 (patch)
treeea9bb53df19d26910cdd986f30885892659e1fbd /.appveyor.yml
parent67b31ac6400833bc7ef33b48e2126d8aca1c5f18 (diff)
downloadlibquotient-a4538e65359ea71f285d352d9cb44bdcdcab7139.tar.gz
libquotient-a4538e65359ea71f285d352d9cb44bdcdcab7139.zip
CI: use env variables to group common CMake (and other) values
For AppVeyor, skip olm installation as we don't intend to check dynamic linkage.
Diffstat (limited to '.appveyor.yml')
-rw-r--r--.appveyor.yml13
1 files changed, 5 insertions, 8 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index 725adc8c..701028af 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -1,7 +1,7 @@
image: Visual Studio 2017
environment:
- #DEPLOY_DIR: quotient-%APPVEYOR_BUILD_VERSION%
+ CMAKE_ARGS: '-G "NMake Makefiles JOM" -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo'
matrix:
- QTDIR: C:\Qt\5.13\msvc2017_64
VCVARS: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat"
@@ -19,17 +19,14 @@ init:
before_build:
- git submodule update --init --recursive
- git clone https://gitlab.matrix.org/matrix-org/olm.git
-- cd olm
-- cmake -G "NMake Makefiles JOM" -H. -Bbuild -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=install
-- cmake --build build
-- cmake --build build --target install
-- cd ..
-- cmake -G "NMake Makefiles JOM" -H. -Bbuild -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX="%DEPLOY_DIR%" -DOlm_DIR="olm/install/lib/cmake/Olm"
+- cmake %CMAKE_ARGS% -Holm -Bbuild/olm
+- cmake --build build/olm
build_script:
+- cmake %CMAKE_ARGS% -H. -Bbuild "-DOlm_DIR=build/olm"
- cmake --build build
# qmake uses olm just built by CMake - it can't build olm on its own.
-- qmake "INCLUDEPATH += olm/install/include" "LIBS += -Lbuild" "LIBS += -Lolm/install/lib" && jom
+- qmake "INCLUDEPATH += olm/include" "LIBS += -Lbuild" "LIBS += -Lbuild/olm" && jom
#after_build:
#- cmake --build build --target install