Skip to content

Commit b34683a

Browse files
committed
Set up CI with Azure Pipelines
1 parent 051771c commit b34683a

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

azure-pipelines.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
jobs:
2+
- job: Linux
3+
pool:
4+
vmImage: 'Ubuntu 16.04'
5+
6+
steps:
7+
- script: sudo apt-get install libjack-dev libasound2-dev ninja-build
8+
displayName: 'Install dependencies'
9+
10+
- script: cmake -G Ninja .
11+
displayName: 'Generate build system with cmake'
12+
13+
- script: ninja
14+
displayName: 'Build'
15+
16+
- job: Windows
17+
pool:
18+
vmImage: 'vs2017-win2016'
19+
20+
steps:
21+
- script: choco install -y jom
22+
displayName: 'Install dependencies'
23+
24+
- script: |
25+
call "C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/Common7/Tools/VsDevCmd.bat"
26+
cmake -G "NMake Makefiles JOM" .
27+
displayName: 'Generate build system with cmake'
28+
29+
- script: jom
30+
displayName: 'Build'
31+
32+
- job: macOS
33+
pool:
34+
vmImage: 'macOS-10.13'
35+
36+
steps:
37+
- script: brew install ninja
38+
displayName: 'Install dependencies'
39+
40+
- script: cmake -G Ninja .
41+
displayName: 'Generate build system with cmake'
42+
43+
- script: ninja
44+
displayName: 'Build'

cmake-modules/FindDirectX.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ find_path(DSOUND_INCLUDE_DIR dsound.h
1212
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK/Include"
1313
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (August 2008)/Include"
1414
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (June 2010)/Include"
15+
"$ENV{WINDOWSSDKDIR}/Include/$ENV{WINDOWSSDKLIBVERSION}/um"
1516
DOC "The directory where dsound.h resides"
1617
)
1718
mark_as_advanced(DSOUND_INCLUDE_DIR)
@@ -22,6 +23,7 @@ find_library(DSOUND_LIBRARY dsound
2223
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK/Lib/x86"
2324
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (August 2008)/Lib/x86"
2425
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (June 2010)/Lib/x86"
26+
"$ENV{WINDOWSSDKDIR}/Lib/$ENV{WINDOWSSDKLIBVERSION}/um/x86"
2527
DOC "The directory where the dsound library resides"
2628
)
2729
mark_as_advanced(DSOUND_LIBRARY)

0 commit comments

Comments
 (0)