-
Notifications
You must be signed in to change notification settings - Fork 9
/
appveyor.yml
80 lines (69 loc) · 3.47 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
# AppVeyor build script for Kodi's binary add-ons
#
# HOW TO USE
# -----------------
# 1. Add this file to your binary add-on repository
# 2. Set "addon_id" to your binary add-on id (see below)
# 3. Login at https://ci.appveyor.com (you can use your Github, BitBucket or Visual Studio Online account if you want)
# 4. Go to "PROEJCTS" and add your repository with the "NEW PROJECT" button
# 5. Commit this file to your repository and the build will start
#
# Optional: Adding build badges (build status image)
# 1. Go to "PROJECTS" --> "YOUR-REPOSITORY" --> SETTINGS --> Badges
# 2. Copy the "Sample markdown code" and add it to your README.md
#
#
# TODO:
# - Add support for creating add-on packaging on Git tag pushes
# - Add package uploads to bintray for deployment
# - Add support for a .msi add-on package install file
# - Currently the debug version fails to build. So a fix in Kodi's binary add-on build system is needed
# Afterwards uncomment the matrix debug build
# - Does {shallow_clone}=true improve the fetch perfomance?
# - Fix Kodi's binary add-on build system to enable
# - Is msbuild faster then nmake?
version: BuildNr.{build}
environment:
# DEFINE THE ADD-ON ID HERE
addon_id: adsp.freesurround
matrix:
# currently the debug version fail, because it doesn't find the .pdb file.
# Seems to be an error in Kodi binary add-on build system
#- GENERATOR: "Visual Studio 12 2013"
#CONFIG: Debug
- GENERATOR: "Visual Studio 14"
CONFIG: Release
init:
# Configure the AppVeyor build version to ${branch-name}-${git-revision}-${timestamp}
- ps: $commit = $env:appveyor_repo_commit.SubString(0,7)
- ps: $timestamp = $env:appveyor_repo_commit_timestamp.SubString(0,10)
- ps: Update-AppveyorBuild -Version ("{0}-{1}-{2}" -f $env:appveyor_repo_branch, $commit, $timestamp)
# uncomment this to build only on specific branches
#branches:
#only:
# - master
# fetch repository as zip archive
shallow_clone: true # default is "false"
# example about how to install a newer cmake version
#install:
# - ps: wget https://s3.amazonaws.com/biibinaries/thirdparty/cmake-3.0.2-win32-x86.zip -OutFile cmake.zip
# - cmd: echo "Unzipping cmake..."
# - cmd: 7z x cmake.zip -o"C:\Program Files (x86)\" -y > nul
# - cmd: set PATH=%PATH:CMake 2.8\bin=%;C:\Program Files (x86)\cmake-3.0.2-win32-x86\bin
# - cmd: cmake --version
# - cmd: del cmake.zip
build_script:
- call "%VS140COMNTOOLS%..\..\VC\bin\vcvars32.bat"
- cd ..
- ren "%APPVEYOR_BUILD_FOLDER%" "%addon_id%"
- mkdir package
- git clone --depth=1 https://github.com/AchimTuran/xbmc.git -b AudioDSP/v2/core-reimplementation_V18
- git clone --depth=1 https://github.com/AchimTuran/repo-binary-addons
- cd "%addon_id%"
- mkdir build
- cd build
- cmake -G "NMake Makefiles" -DADDONS_TO_BUILD="%addon_id%" -DCMAKE_BUILD_TYPE="%CONFIG%" -DCMAKE_VERBOSE_MAKEFILE=ON -DPACKAGE_ZIP=ON -DADDON_SRC_PREFIX="C:/projects" -DADDONS_DEFINITION_DIR="C:/projects/repo-binary-addons" -DCMAKE_INSTALL_PREFIX="C:/projects/xbmc/addons" -DPACKAGE_ZIP=1 "C:/projects/xbmc/cmake/addons"
- cmake --build "%cd%" --target "%addon_id%"
# use this commands for zip package creation, which can be used to upload it
#- cmake -G "NMake Makefiles" -DADDONS_TO_BUILD="%addon_id%" -DCMAKE_BUILD_TYPE="%CONFIG%" -DADDON_SRC_PREFIX="../.." -DCMAKE_INSTALL_PREFIX="../../xbmc/addons" -DPACKAGE_ZIP=1 -DPACKAGE_DIR="C:/projects/package" "../../xbmc/project/cmake/addons"
#- cmake --build "%cd%" --target "package-%addon_id%"