build: new windows build script

This commit is contained in:
Eric Wasylishen 2016-08-06 11:11:54 -07:00
parent 292d35879b
commit 8fe28047a3
2 changed files with 18 additions and 21 deletions

View File

@ -1,27 +1,7 @@
platform:
- x86
- x64
version: 1.0.{build}
install:
- ps: Invoke-WebRequest 'https://github.com/embree/embree/releases/download/v2.10.0/embree-2.10.0.x64.windows.zip' -OutFile 'embree64.zip'
- ps: 7z x embree64.zip -oc:\
- ps: Invoke-WebRequest 'https://github.com/embree/embree/releases/download/v2.10.0/embree-2.10.0.win32.windows.zip' -OutFile 'embree.zip'
- ps: 7z x embree.zip -oc:\
build_script:
- ps: >-
$env:Path += ";C:\cygwin64\bin"
mkdir cmakebuild
cd cmakebuild
If ($env:Platform -Match "x64") {
cmake .. -T v140_xp -Dembree_DIR="c:/embree-2.10.0.x64.windows/lib/cmake/embree-2.10.0" -DCMAKE_GENERATOR_PLATFORM=x64
} Else {
cmake .. -T v140_xp -Dembree_DIR="c:/embree-2.10.0.win32.windows/lib/cmake/embree-2.10.0"
}
msbuild PACKAGE.vcxproj /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
.\build-win32.ps
artifacts:
- path: cmakebuild\*.zip

17
build-win32.ps Normal file
View File

@ -0,0 +1,17 @@
#build embree
Invoke-WebRequest 'https://github.com/embree/embree/archive/v2.10.0.zip' -OutFile 'embree.zip'
7z x embree.zip
cd embree-2.10.0
mkdir build
cd build
cmake .. -T v140_xp -DENABLE_ISPC_SUPPORT=NO -DENABLE_TUTORIALS=NO -DRTCORE_TASKING_SYSTEM=INTERNAL -DCMAKE_INSTALL_PREFIX="$(get-location)"
msbuild INSTALL.vcxproj /p:Configuration=Release
$EmbreeInstallDir = [io.path]::combine($(get-location).Path, "lib\cmake\embree-2.10.0")
cd ..
cd ..
# build tyrutils
mkdir cmakebuild
cd cmakebuild
cmake .. -T v140_xp -Dembree_DIR="$EmbreeInstallDir"
msbuild PACKAGE.vcxproj /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"