Skip to content

Instantly share code, notes, and snippets.

@jrassa
Last active February 10, 2018 13:06
Show Gist options
  • Save jrassa/a8bc36758fb63b767d8a037131277fc1 to your computer and use it in GitHub Desktop.
Save jrassa/a8bc36758fb63b767d8a037131277fc1 to your computer and use it in GitHub Desktop.
Appveyor config for building EmulationStation Win32 dependencies
# version format
version: '{build}'
# Maximum number of concurrent jobs for the project
max_jobs: 1
# Build worker image (VM template)
image: Visual Studio 2015
# clone directory
clone_folder: c:\src\EmulationStation
environment:
_LINK_: /FORCE:MULTIPLE
# build cache to preserve files/folders between builds
#cache:
# - c:\src\downloads
#init:
#- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
install:
- mkdir c:\src\downloads
- mkdir c:\src\lib
- cd c:\src\downloads
# Install SDL2
- ps: Start-FileDownload 'https://www.libsdl.org/release/SDL2-2.0.5.zip' -FileName 'SDL2-2.0.5.zip'
- 7z x SDL2-2.0.5.zip -oc:\src\lib > NUL
# Install FreeImage
- ps: Start-FileDownload 'http://downloads.sourceforge.net/freeimage/FreeImage3170.zip' -FileName 'FreeImage3170.zip'
- 7z x FreeImage3170.zip -oc:\src\lib > NUL
- ps: (Get-Content C:\src\lib\FreeImage\Source\LibTIFF4\tif_config.h).replace('#define snprintf _snprintf', '') | Set-Content C:\src\lib\FreeImage\Source\LibTIFF4\tif_config.h
# Install FreeType
- ps: Start-FileDownload 'http://download.savannah.gnu.org/releases/freetype/freetype-2.7.tar.gz' -FileName 'freetype-2.7.tar.gz'
- 7z x freetype-2.7.tar.gz > NUL
- 7z x freetype-2.7.tar -oc:\src\lib > NUL
# Install curl
- curl -fsS -o curl-7.50.3.zip https://curl.haxx.se/download/curl-7.50.3.zip
- 7z x curl-7.50.3.zip -oc:\src\lib > NUL
# Install vlc
- ps: Start-FileDownload 'https://github.com/RSATom/libvlc-sdk/archive/64ca3daa475a6539073f7544c740725b818642b2.zip' -FileName 'vlc-2.2.2.zip'
- 7z x vlc-2.2.2.zip -oc:\src\lib\ > NUL
# Fix directories
- cd c:\src\lib
- rename libvlc-sdk-64ca3daa475a6539073f7544c740725b818642b2 libvlc-2.2.2
build_script:
# build FreeTye
- cd c:\src\lib\freetype-2.7\builds\windows\vc2010
- '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.com" freetype.sln /upgrade'
- msbuild freetype.sln /p:Configuration=Release /p:Platform="Win32"
# build FreeImage
- cd c:\src\lib\FreeImage
- '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.com" FreeImage.2013.sln /upgrade'
- msbuild FreeImage.2013.sln /p:Configuration=Release /p:Platform="Win32"
# build curl
- cd c:\src\lib\curl-7.50.3\winbuild
# Run this to enable nmake
- '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x86'
- nmake /f Makefile.vc mode=dll VC=14 DEBUG=yes
- nmake /f Makefile.vc mode=dll VC=14 DEBUG=no
# build SDL
- cd c:\src\lib\SDL2-2.0.5
- mkdir build
- cd build
- cmake -G "Visual Studio 14 2015" ..
- cd c:\src\lib\SDL2-2.0.5\build
- '"C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild" SDL2.sln /p:Configuration=Release /p:Platform="Win32"'
- cd C:\
- 7z a EmulationStation-Win32-build-deps.zip C:\lib
#on_finish:
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
deploy:
tag: continuous
release: Windows Build Dependencies
description: 'Windows Build Dependencies'
provider: GitHub
auth_token:
secure: 78iUJdHwUE3YJ27nYZxZn1c3ZDnTsh9qqKKWfCmZvjap2aVHUXI8WsoVsYPMZ4Wd
artifact: EmulationStation-deps
draft: false
prerelease: true
force_update: true
on:
branch: master # release from master branch only
matrix:
fast_finish: true
artifacts:
- path: EmulationStation-Win32-build-deps.zip
name: EmulationStation-deps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment