forked from DaemonEngine/Daemon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
68 lines (62 loc) · 2.07 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
branches:
except:
- debian
environment:
matrix:
# - COMPILER: mingw64
# COMPILER_VERSION: "5.1.0"
# MINGW_VERSION: "v4-rev0"
# GENERATOR: "MinGW Makefiles"
- COMPILER: msvc
COMPILER_VERSION: "12.0"
TARGET: x86
GENERATOR: "NMake Makefiles"
# - COMPILER: msvc
# COMPILER_VERSION: "12.0"
# TARGET: x86_amd64
# GENERATOR: "NMake Makefiles"
# - COMPILER: msvc
# COMPILER_VERSION: "14.0"
# TARGET: x86
# GENERATOR: "NMake Makefiles"
# - COMPILER: msvc
# TARGET: x86_amd64
# COMPILER_VERSION: "14.0"
# GENERATOR: "NMake Makefiles"
matrix:
fast_finish: false
configuration: Debug
build:
parallel: true
before_build:
- git submodule update --init --recursive
- ps: |
if ($env:COMPILER -eq "mingw64" -AND -Not (Test-Path "C:/mingw64")) {
$url = "http://sourceforge.net/projects/mingw-w64/files/"
$url += "Toolchains%20targetting%20Win64/Personal%20Builds/"
$url += "mingw-builds/${env:COMPILER_VERSION}/threads-win32/seh/"
$url += "x86_64-${env:COMPILER_VERSION}-release-win32-seh-rt_${env:MINGW_VERSION}.7z/download"
Invoke-WebRequest -UserAgent wget -Uri $url -OutFile mingw64.7z
&7z x -oC:\ mingw64.7z > $null
$env:PATH = "C:/mingw64/bin;" + ($env:PATH -replace [regex]::escape("C:\Program Files (x86)\Git\bin"), "")
}
build_script:
- cmd: cmake --version
- cmd: mkdir build
- cmd: cd build
- ps: |
if ($env:COMPILER -eq "msvc") {
pushd "${env:ProgramFiles(x86)}/Microsoft Visual Studio ${env:COMPILER_VERSION}/VC/"
cmd /c "vcvarsall.bat $env:TARGET & set" |
foreach {
if ($_ -match "=") {
$v = $_.split("="); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])"
}
}
popd
} elseif ($env:COMPILER -eq "mingw64") {
$env:CC="gcc"
$env:CXX="g++"
}
cmake -DUSE_WERROR=1 -DBE_VERBOSE=1 -G "${env:GENERATOR}" -DBUILD_GAME_NACL=0 -DCMAKE_BUILD_TYPE=Debug ..
cmake --build .