-
Notifications
You must be signed in to change notification settings - Fork 6
/
.appveyor.yml
94 lines (84 loc) · 3.43 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: 1.0.{build}
branches:
only:
- master
- ci/all
- ci/appveyor
environment:
ASIOSDK: C:\projects\ASIOSDK2.3
OWNCLOUDPASS:
secure: VMK9y/GMMIepPZoQU0GgTw==
OWNCLOUDUSER:
secure: Ik5nxuwevIjJJtTRi3S6CA==
image: Visual Studio 2015
matrix:
# - platform: Win32
# PTHREAD: x86
# configuration: Release32
# COMPILER: "Visual Studio 14 2015"
# - platform: x64 ## debug seems broken on appveyor...
# PTHREAD: x64
# configuration: Debug
# COMPILER: "Visual Studio 14 2015 Win64"
- platform: x64
PTHREAD: x64
configuration: Release
COMPILER: "Visual Studio 14 2015 Win64"
install:
- echo "submodule %APPVEYOR_BUILD_FOLDER%"
- git submodule -q update --init --recursive
- cd %APPVEYOR_BUILD_FOLDER%\third_party\
- echo "start build of PTW32"
############
- mkdir PthreadWin32
- git clone -q https://github.com/GerHobbelt/pthread-win32.git PthreadWin32
- cd PthreadWin32
- echo "bit of magic from camomille (pierreguillot)"
############
- sed -i 's/4820;4668;4255;/4820;4668;4255;4711;4100;4312;4127;4296;4456;4619;4310;4311;/' pthread_lib.2015.vcxproj
- sed -i 's/MultiThreadedDLL/MultiThreaded/' pthread_lib.2015.vcxproj
- sed -i 's/MultiThreadedDebugDLL/MultiThreadedDebug/' pthread_lib.2015.vcxproj
- echo "truly building PTW32"
##############
- msbuild pthread.2015.sln /t:pthread_lib /nologo /verbosity:quiet /p:Configuration=Release /p:Platform=%PLATFORM% /p:OutDir=lib/
- echo "Copy pthread-win32 headers and library in pure-data directory"
#############
- set LIBPDROOT="%APPVEYOR_BUILD_FOLDER%\third_party\libpd"
- copy pthread.h %LIBPDROOT%\pure-data\src\pthread.h
- copy sched.h %LIBPDROOT%\pure-data\src\sched.h
- copy semaphore.h %LIBPDROOT%\pure-data\src\semaphore.h
- set PD_BUILD_DIR="%APPVEYOR_BUILD_FOLDER%\third_party\libpdBuild"
- copy lib\pthread_lib.lib %PD_BUILD_DIR%\VisualStudio2015\pthread.lib
- copy lib\pthread_lib.lib %PD_BUILD_DIR%\pthread.lib
- echo "Compile libpd"
#################
- cd %PD_BUILD_DIR%\VisualStudio2015
- cmake -G "%COMPILER%" -DPD_MULTI=ON -DPD_EXTRA=ON ..
- msbuild libpd.sln /t:libpdstatic /nologo /verbosity:quiet /p:Configuration=Release /p:Platform=%PLATFORM%
before_build:
- cd C:\projects\lgml\third_party\rubberband
- echo 'building rubberband'
- msbuild C:\projects\lgml\third_party\rubberband\rubberband-library.sln /p:Configuration=Release /m:4
- echo 'dowloading JUCE'
- cd C:\projects\
- curl https://codeload.github.com/WeAreROLI/JUCE/zip/master -o JUCE.zip
- 7z x JUCE.zip -o"C:\projects" -y
- ren JUCE-master JUCE
- dir
- dir JUCE
- echo 'downloading ASIOSDK'
- curl https://www.steinberg.net/sdk_downloads/asiosdk2.3.zip -o ASIO_SDK.zip
- 7z x ASIO_SDK.zip -o"C:\projects" -y
##########
- pip install future requests
- cmd: python %APPVEYOR_BUILD_FOLDER%\Scripts\buildScript.py --configure --os=windows --configuration=%CONFIGURATION% --arch=%PLATFORM% --exportpath=%APPVEYOR_BUILD_FOLDER%
# after_build:
# cmd: 7z a %APPVEYOR_BUILD_FOLDER%\LGML_%PLATFORM%.zip %APPVEYOR_BUILD_FOLDER%\Builds\VisualStudio2015\%PLATFORM%\%CONFIGURATION%\App\*.exe
deploy_script:
- cmd: python %APPVEYOR_BUILD_FOLDER%\Scripts\buildScript.py --package --export
artifacts:
- path: '*.zip'
build:
project: Builds/VisualStudio2015/LGML.sln
verbosity: minimal
parallel: true