appveyor: download and install z3 so the gui can be built

This commit is contained in:
Daniel Marjamäki 2020-02-10 11:19:18 +01:00
parent 0ff23dbd0b
commit 125c4832cd
2 changed files with 18 additions and 9 deletions

View File

@ -57,6 +57,10 @@ environment:
install: install:
- pip install pytest - pip install pytest
- SET p=x86
- IF "%platform%"=="x64" SET p=x64
- curl -fsSL https://github.com/Z3Prover/z3/releases/download/z3-4.8.7/z3-4.8.7-%p%-win.zip -o z3-4.8.7-win.zip
- 7z e z3-4.8.7-win.zip -oz3 -r -y
build_script: build_script:
- ECHO Building %configuration% %platform% with MSVC %VisualStudioVersion% using %PlatformToolset% PlatformToolset - ECHO Building %configuration% %platform% with MSVC %VisualStudioVersion% using %PlatformToolset% PlatformToolset
@ -71,12 +75,12 @@ build_script:
- copy bin\cppcheck.exe .. - copy bin\cppcheck.exe ..
- cd .. - cd ..
# build gui.. # build gui..
#- ECHO MYQTDIR=%MYQTDIR% - ECHO MYQTDIR=%MYQTDIR%
#- 'IF defined MYQTDIR cd gui' - 'IF defined MYQTDIR cd gui'
#- 'IF defined MYQTDIR set QTDIR=%MYQTDIR%' - 'IF defined MYQTDIR set QTDIR=%MYQTDIR%'
#- 'IF defined MYQTDIR %QTDIR%\bin\qmake' - 'IF defined MYQTDIR %QTDIR%\bin\qmake'
#- 'IF defined MYQTDIR nmake' - 'IF defined MYQTDIR nmake'
#- 'IF defined MYQTDIR cd ..' - 'IF defined MYQTDIR cd ..'
test_script: test_script:
- build\bin\testrunner.exe -q - build\bin\testrunner.exe -q

View File

@ -6,7 +6,8 @@ CONFIG += warn_on debug
DEPENDPATH += . \ DEPENDPATH += . \
../lib ../lib
INCLUDEPATH += . \ INCLUDEPATH += . \
../lib ../lib \
../z3
QT += widgets QT += widgets
QT += printsupport QT += printsupport
@ -14,10 +15,14 @@ contains(LINKCORE, [yY][eE][sS]) {
LIBS += -l../bin/cppcheck-core LIBS += -l../bin/cppcheck-core
DEFINES += CPPCHECKLIB_IMPORT DEFINES += CPPCHECKLIB_IMPORT
} }
LIBS += -L$$PWD/../externals LIBS += -L$$PWD/../externals -L$$PWD/../z3
# z3 # z3
win32 {
LIBS += -llibz3
} else {
LIBS += -lz3 LIBS += -lz3
}
QMAKE_CXXFLAGS += -DUSE_Z3 QMAKE_CXXFLAGS += -DUSE_Z3
DESTDIR = . DESTDIR = .