forked from eteran/edb-debugger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
41 lines (35 loc) · 1.97 KB
/
appveyor.yml
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
version: "{build}"
environment:
CAPSTONE_SDK: C:\capstone\sdk
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
BOOST_INCLUDEDIR: C:\Libraries\boost_1_64_0
CAPSTONE_ARCHIVE: capstone-3.0.5-rc2-win64
CMAKE_GENERATOR: Visual Studio 15 2017 Win64
QT_BASEDIR: C:\Qt\5.9\msvc2017_64
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
BOOST_INCLUDEDIR: C:\Libraries\boost_1_63_0
CAPSTONE_ARCHIVE: capstone-3.0.5-rc2-win32
CMAKE_GENERATOR: Visual Studio 14 2015
QT_BASEDIR: C:\Qt\5.9\msvc2015
configuration:
- Debug
- Release
install:
- ps: new-item -itemtype directory -path C:\capstone\sdk | out-null
- ps: new-item -itemtype directory -path C:\capstone\sdk\include\capstone | out-null
- ps: new-item -itemtype directory -path C:\capstone\sdk\lib | out-null
- ps: "[Environment]::CurrentDirectory = 'C:\\capstone'"
- ps: (new-object net.webclient).DownloadFile("https://github.com/aquynh/capstone/releases/download/3.0.5-rc2/${env:CAPSTONE_ARCHIVE}.zip", 'capstone.zip')
- ps: expand-archive C:\capstone\capstone.zip -destinationpath C:\capstone
- ps: copy-item C:\capstone\${env:CAPSTONE_ARCHIVE}\include\*.h C:\capstone\sdk\include\capstone
- ps: copy-item C:\capstone\${env:CAPSTONE_ARCHIVE}\capstone.lib C:\capstone\sdk\lib\capstone_dll.lib
before_build:
- cmd: git submodule update --init
- cmd: cd C:\projects
- cmd: md build
- cmd: cd build
- cmd: cmake -Wno-dev -G "%CMAKE_GENERATOR%" -DCMAKE_BUILD_TYPE=%configuration% -DCMAKE_INSTALL_PREFIX=C:\projects\install -DBOOST_INCLUDEDIR="%BOOST_INCLUDEDIR%" -DCAPSTONE_SDK="%CAPSTONE_SDK%" -DQt5Core_DIR="%QT_BASEDIR%\lib\cmake\Qt5Core" -DQt5_DIR="%QT_BASEDIR%\lib\cmake\Qt5" ..\edb-debugger
build_script:
- cmd: msbuild C:\projects\build\edb.sln /t:edb /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- cmd: msbuild C:\projects\build\edb.sln /t:DebuggerCore /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"