2019-01-05 19:11:29 +00:00
|
|
|
parameters:
|
2019-04-07 10:01:32 +00:00
|
|
|
BuildArch: ''
|
|
|
|
VcpkgTargetTriplet: ''
|
|
|
|
BuildConfiguration: ''
|
2020-06-07 14:11:36 +00:00
|
|
|
OptionUseNSIS: 'OFF'
|
2019-01-05 19:11:29 +00:00
|
|
|
|
|
|
|
steps:
|
2019-04-07 10:01:32 +00:00
|
|
|
- task: CMake@1
|
|
|
|
displayName: 'Configure'
|
|
|
|
inputs:
|
2020-06-07 02:34:50 +00:00
|
|
|
cmakeArgs: '.. -G "Visual Studio 15 2017" -A ${{ parameters.BuildArch }} -DCMAKE_TOOLCHAIN_FILE="c:\vcpkg\scripts\buildsystems\vcpkg.cmake" -DVCPKG_TARGET_TRIPLET="${{ parameters.VcpkgTargetTriplet }}" -DOPTION_USE_NSIS="${{ parameters.OptionUseNSIS }}"'
|
2019-01-05 19:11:29 +00:00
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: 'Build'
|
|
|
|
inputs:
|
2019-04-07 10:01:32 +00:00
|
|
|
solution: build/openttd.vcxproj
|
2019-05-10 20:20:10 +00:00
|
|
|
configuration: ${{ parameters.BuildConfiguration }}
|
2019-01-05 19:11:29 +00:00
|
|
|
maximumCpuCount: true
|