2015-07-12 16:07:01 +00:00
|
|
|
# AppVeyor file
|
|
|
|
# http://www.appveyor.com/docs/appveyor-yml
|
|
|
|
|
2015-07-12 17:19:35 +00:00
|
|
|
# clone directory
|
|
|
|
clone_folder: c:\projects\assimp
|
|
|
|
|
2015-07-12 16:07:01 +00:00
|
|
|
# branches to build
|
|
|
|
branches:
|
|
|
|
# whitelist
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2016-01-09 11:13:39 +00:00
|
|
|
platform:
|
|
|
|
- x86
|
|
|
|
- x64
|
2016-02-15 09:20:34 +00:00
|
|
|
|
2016-02-17 12:44:33 +00:00
|
|
|
configuration:
|
2016-02-19 09:45:00 +00:00
|
|
|
- 14 2015
|
|
|
|
- 12 2013
|
2016-11-28 09:40:10 +00:00
|
|
|
#- MinGW
|
2016-04-06 19:15:48 +00:00
|
|
|
#- 10 2010 # only works for x86
|
2015-07-12 16:07:01 +00:00
|
|
|
|
2016-02-17 12:44:33 +00:00
|
|
|
init:
|
|
|
|
- if "%platform%" EQU "x64" ( for %%a in (2008 2010 MinGW) do ( if "%Configuration%"=="%%a" (echo "Skipping unsupported configuration" && exit /b 1 ) ) )
|
|
|
|
|
|
|
|
install:
|
|
|
|
# Make compiler command line tools available
|
2016-02-19 09:31:26 +00:00
|
|
|
- call c:\projects\assimp\scripts\appveyor\compiler_setup.bat
|
2015-07-12 16:07:01 +00:00
|
|
|
|
2016-11-28 09:40:10 +00:00
|
|
|
build_script:
|
2016-09-24 15:26:59 +00:00
|
|
|
- cd c:\projects\assimp
|
2017-10-02 08:43:29 +00:00
|
|
|
- if "%platform%" equ "x64" (cmake CMakeLists.txt -DASSIMP_WERROR=ON -G "Visual Studio %Configuration% Win64")
|
|
|
|
- if "%platform%" equ "x86" (cmake CMakeLists.txt -DASSIMP_WERROR=ON -G "Visual Studio %Configuration%")
|
2016-09-24 15:26:59 +00:00
|
|
|
- if "%platform%" equ "x64" (msbuild /m /p:Configuration=Release /p:Platform="x64" Assimp.sln)
|
|
|
|
- if "%platform%" equ "x86" (msbuild /m /p:Configuration=Release /p:Platform="Win32" Assimp.sln)
|
2016-02-19 17:32:16 +00:00
|
|
|
|
|
|
|
after_build:
|
2016-02-20 10:14:22 +00:00
|
|
|
- 7z a assimp.7z c:\projects\assimp\bin\release\* c:\projects\assimp\lib\release\*
|
2016-02-19 17:32:16 +00:00
|
|
|
|
|
|
|
artifacts:
|
2016-02-19 19:42:56 +00:00
|
|
|
- path: assimp.7z
|
2016-02-19 17:40:21 +00:00
|
|
|
name: assimp_lib
|