Debian Codegraph @

azure-pipelines.yml

raw
1 variables:
2 app_id: 'pvr.waipu'
3
4 trigger:
5 branches:
6 include:
7 - Matrix
8 - Nexus
9 - Omega
10 - releases/*
11 paths:
12 include:
13 - '*'
14 exclude:
15 - 'debian/*'
16
17 jobs:
18 - job: Windows
19
20 pool:
21 vmImage: 'windows-2022'
22
23 strategy:
24 matrix:
25 Win32:
26 GENERATOR: "Visual Studio 17 2022"
27 ARCHITECTURE: Win32
28 CONFIGURATION: Release
29 Win64:
30 GENERATOR: "Visual Studio 17 2022"
31 ARCHITECTURE: x64
32 CONFIGURATION: Release
33 Win64-UWP:
34 GENERATOR: "Visual Studio 17 2022"
35 ARCHITECTURE: x64
36 CONFIGURATION: Release
37 WINSTORE: -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION="10.0.17763.0"
38 ARM64-UWP:
39 GENERATOR: "Visual Studio 17 2022"
40 ARCHITECTURE: ARM64
41 CONFIGURATION: Release
42 WINSTORE: -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION="10.0.17763.0"
43
44 workspace:
45 clean: all
46
47 steps:
48
49 - script: |
50 cd ..
51 git clone --branch Omega --depth=1 https://github.com/xbmc/xbmc.git kodi
52 cd $(Build.SourcesDirectory)
53 mkdir build
54 cd build
55 mkdir "definition/$(app_id)"
56 echo $(app_id) . . > definition/$(app_id)/$(app_id).txt
57 mklink /J "$(Pipeline.Workspace)/$(app_id)" "$(Build.SourcesDirectory)"
58
59 - task: CMake@1
60 inputs:
61 workingDirectory: 'build'
62 cmakeArgs: '-T host=x64 -G "$(GENERATOR)" -A $(ARCHITECTURE) $(WINSTORE) -DADDONS_TO_BUILD=$(app_id) -DCMAKE_BUILD_TYPE=$(CONFIGURATION) -DADDONS_DEFINITION_DIR=$(Pipeline.Workspace)/$(app_id)/build/definition -DADDON_SRC_PREFIX=../.. -DCMAKE_INSTALL_PREFIX=../../kodi/addons -DPACKAGE_ZIP=1 ../../kodi/cmake/addons'
63
64 - task: CMake@1
65 inputs:
66 workingDirectory: 'build'
67 cmakeArgs: '--build . --config $(CONFIGURATION) --target $(app_id)'