-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
57 lines (44 loc) · 1.47 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
# version string format -- This will be overwritten later anyway
version: "{branch}.{build}"
os:
- Visual Studio 2015
- Visual Studio 2017
platform:
- x64
configuration:
- Release
- Debug
environment:
PREFIX: c:\usr_msvc
init:
- git config --global core.autocrlf input
# Set build version to git commit-hash
- ps: Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_BRANCH) - $($env:APPVEYOR_REPO_COMMIT)"
install:
- git submodule update --init --recursive
before_build:
- if exist %PREFIX% set NEEDDEPENDS=rem
# Depends
- |-
%NEEDDEPENDS% mkdir %PREFIX%\include
%NEEDDEPENDS% mkdir %PREFIX%\lib
%NEEDDEPENDS% cd %TEMP%
- |-
curl -fsSL -o physfs.tar.bz2 https://icculus.org/physfs/downloads/physfs-3.0.1.tar.bz2
7z x physfs.tar.bz2 -so | 7z x -si -ttar > nul
move physfs-3.0.1 physfs
cd physfs
cmake -H. -BBuild -A%PLATFORM% -DCMAKE_INSTALL_PREFIX=%PREFIX% -DPHYSFS_BUILD_TEST=OFF
cmake --build ./Build --target install
cd ..
- cd %APPVEYOR_BUILD_FOLDER%
- cmake -H. -Bbuild -A%PLATFORM% -DCMAKE_PREFIX_PATH="%PREFIX%" -DCMAKE_BUILD_TYPE="%CONFIGURATION%"
# build with MSBuild
build:
project: build\physfs_cxx.sln # path to Visual Studio solution or project
parallel: true # enable MSBuild parallel builds
verbosity: normal # MSBuild verbosity level {quiet|minimal|normal|detailed}
test_script:
#- cd build
#- set PATH=%PREFIX%\lib;%PATH%
#- ctest -V -C %CONFIGURATION%