-
Notifications
You must be signed in to change notification settings - Fork 6
/
build-windows.ps1
48 lines (44 loc) · 2.72 KB
/
build-windows.ps1
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
# Dependencies
# boost - libsndfile
# fftw3 (libfftw3f-3.dll)
# change the paths in cmake compiler flags to fit the correct paths.
# against some strange permission error do: powershell Set-ExecutionPolicy RemoteSigned
Write-host "Fetch Submodules"
# git submodule update --init
# cd supercollider
# git submodule update --init
# git checkout develop
# cd ../sc3-plugins
# git submodule update --init
# cd ../
# New-Item -ItemType Directory -Force target
# cd target
# Remove-Item -Recurse -ErrorAction Ignore scmake
# Remove-Item -Recurse -ErrorAction Ignore scmake-extras
# mkdir -m 777 scmake
# mkdir scmake-extras
# cd scmake
pushd "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools"
cmd /c "VsDevCmd.bat&set" |
foreach {
if ($_ -match "=") {
$v = $_.split("="); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])"
}
}
popd
Write-Host "`nVisual Studio 2017 Command Prompt variables set." -ForegroundColor Yellow
# -DCMAKE_INSTALL_PREFIX=./
# x86
# cmake ../../supercollider -DSUPERNOVA:BOOL=OFF -DLIBSCSYNTH:BOOL=ON -DSC_IDE:BOOL=OFF -DSC_QT:BOOL=OFF -DCMAKE_GENERATOR_PLATFORM=x86 -DSNDFILE_LIBRARY="C:\Program Files (x86)\Mega-Nerd\libsndfile\lib\libsndfile-1.lib" -DSNDFILE_INCLUDE_DIR="C:\Program Files (x86)\Mega-Nerd\libsndfile\include"
# x64 -DCMAKE_GENERATOR_PLATFORM=x64
# cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_INSTALL_PREFIX=..\..\supercollider -DSUPERNOVA:BOOL=OFF -DLIBSCSYNTH:BOOL=ON -DSC_IDE:BOOL=OFF -DSC_QT:BOOL=OFF -DSNDFILE_LIBRARY="C:\Program Files\Mega-Nerd\libsndfile\lib\libsndfile-1.lib" -DSNDFILE_LIBRARY_DIR="C:\Program Files\Mega-Nerd\libsndfile\bin" -DSNDFILE_INCLUDE_DIR="C:\Program Files\Mega-Nerd\libsndfile\include" -DFFTW3F_INCLUDE_DIR="C:\Users\User\Downloads\fftw-3.3.5-dll64" -DFFTW3F_LIBRARY="C:\Users\User\Downloads\fftw-3.3.5-dll64\libfftw3f-3.lib"
# cmake --build . --target libscsynth --config Release
# -DSNDFILE_LIBRARY="C:\Program Files (x86)\Mega-Nerd\libsndfile\lib\libsndfile-1.lib" -DSNDFILE_INCLUDE_DIR="C:\Program Files (x86)\Mega-Nerd\libsndfile\include" -DFFTW3F_INCLUDE_DIR="C:\Users\Obby\Documents\supercollider\fftw-include\api" -DFFTW3F_LIBRARY="C:\Users\Obby\Documents\supercollider\fftw\libfftw3l-3.dll"
# MSBuild.exe .\ALL_BUILD.vcxproj /p:VCTargetsPath="C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets"
# MSBuild.exe .\INSTALL.vcxproj
# cd ..\scmake-extras
cmake ..\..\sc3-plugins -G "Visual Studio 15 2017 Win64" -DSC_PATH="..\..\supercollider" -DFFTW3F_INCLUDE_DIR="C:\Users\User\Downloads\fftw-3.3.5-dll64" -DFFTW3F_LIBRARY="C:\Users\User\Downloads\fftw-3.3.5-dll64\libfftw3f-3.lib"
cmake --build . --config Release
# MSBuild.exe .\ALL_BUILD.vcxproj
# MSBuild.exe .\INSTALL.vcxproj
# cd C:\Users\User\Documents\scsynth