# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: MIT
#
parameters:
  - name: vcpkgToolSha
    displayName: 'Custom SHA of vcpkg-tool to use rather than bootstrap'
    type: string
    default:  'use default'
  - name: x64LinuxDockerImage
    displayName: 'Linux Docker Image to use for the x64 Linux build'
    type: string
    default: 'vcpkgandroidwus.azurecr.io/vcpkg-linux:2026-01-20'
  - name: arm64LinuxDockerImage
    displayName: 'Linux Docker Image to use for the arm64 Linux build'
    type: string
    default: 'vcpkgandroidwus.azurecr.io/vcpkg-arm64-linux:2026-02-10'
  - name: tripletPattern
    displayName: 'Enable triplets which contain this substring (^ matches begin, $ matches end)'
    type: string
    default: '^'

jobs:
- template: windows/azure-pipelines.yml
  parameters:
    jobName: x86_windows
    vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
    tripletPattern: ${{ parameters.tripletPattern }}

- template: windows/azure-pipelines.yml
  parameters:
    jobName: x64_windows
    vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
    tripletPattern: ${{ parameters.tripletPattern }}

- template: windows/azure-pipelines.yml
  parameters:
    jobName: x64_windows_release
    vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
    tripletPattern: ${{ parameters.tripletPattern }}

- template: windows/azure-pipelines.yml
  parameters:
    jobName: x64_windows_static
    vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
    tripletPattern: ${{ parameters.tripletPattern }}

- template: windows/azure-pipelines.yml
  parameters:
    jobName: x64_windows_static_md
    vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
    tripletPattern: ${{ parameters.tripletPattern }}

- template: windows/azure-pipelines.yml
  parameters:
    jobName: arm64_windows
    vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
    tripletPattern: ${{ parameters.tripletPattern }}

- template: windows/azure-pipelines.yml
  parameters:
    jobName: arm64_windows_static_md
    vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
    tripletPattern: ${{ parameters.tripletPattern }}

- template: osx/azure-pipelines.yml
  parameters:
    jobName: arm64_osx
    vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
    tripletPattern: ${{ parameters.tripletPattern }}

- template: linux/azure-pipelines.yml
  parameters:
    jobName: x64_linux
    vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
    linuxDockerImage: ${{ parameters.x64LinuxDockerImage }}
    tripletPattern: ${{ parameters.tripletPattern }}

- template: linux/azure-pipelines.yml
  parameters:
    jobName: arm64_linux
    vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
    linuxDockerImage: ${{ parameters.arm64LinuxDockerImage }}
    tripletPattern: ${{ parameters.tripletPattern }}

- template: android/azure-pipelines.yml
  parameters:
    jobName: arm_neon_android
    vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
    linuxDockerImage: ${{ parameters.x64LinuxDockerImage }}
    tripletPattern: ${{ parameters.tripletPattern }}

- template: android/azure-pipelines.yml
  parameters:
    jobName: x64_android
    vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
    linuxDockerImage: ${{ parameters.x64LinuxDockerImage }}
    tripletPattern: ${{ parameters.tripletPattern }}

- template: android/azure-pipelines.yml
  parameters:
    jobName: arm64_android
    vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
    linuxDockerImage: ${{ parameters.x64LinuxDockerImage }}
    tripletPattern: ${{ parameters.tripletPattern }}
