- added vcpkg support

This commit is contained in:
alexey.lysiuk 2023-09-07 13:17:22 +03:00
parent 73d1dc96fe
commit 01fbe0b0fb
2 changed files with 61 additions and 3 deletions

View file

@ -13,19 +13,19 @@ jobs:
- {
name: "Visual Studio 2022",
os: windows-2022,
extra_options: "-A x64",
extra_options: "-A x64 -DCMAKE_TOOLCHAIN_FILE=build/vcpkg/scripts/buildsystems/vcpkg.cmake",
build_type: "Release"
}
- {
name: "Visual Studio 2019",
os: windows-2019,
extra_options: "-A x64",
extra_options: "-A x64 -DCMAKE_TOOLCHAIN_FILE=build/vcpkg/scripts/buildsystems/vcpkg.cmake",
build_type: "Release"
}
- {
name: "Visual Studio 2019",
os: windows-2019,
extra_options: "-A x64",
extra_options: "-A x64 -DCMAKE_TOOLCHAIN_FILE=build/vcpkg/scripts/buildsystems/vcpkg.cmake",
build_type: "Debug"
}
- {
@ -90,6 +90,13 @@ jobs:
wget -q "https://github.com/coelckers/gzdoom/releases/download/ci_deps/${ZMUSIC_PACKAGE}"
tar -xf "${ZMUSIC_PACKAGE}"
fi
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11
if: runner.os == 'Windows'
with:
vcpkgDirectory: '${{ github.workspace }}/build/vcpkg'
vcpkgGitCommitId: '65c013b9667ff1f58fb8724209227e5a2e761043'
- name: Configure
shell: bash

51
vcpkg.json Normal file
View file

@ -0,0 +1,51 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"builtin-baseline": "65c013b9667ff1f58fb8724209227e5a2e761043",
"features":
{
"vcpkg-libvpx":
{
"description": "Use libvpx provided by vcpkg on Windows",
"dependencies": [
{
"name": "libvpx",
"default-features": false,
"platform": "windows & static & staticcrt"
}
]
},
"vcpkg-openal-soft":
{
"description": "Use openal-soft provided by vcpkg.",
"dependencies": [
{
"name": "openal-soft",
"default-features": false,
"platform": "!windows | (windows & static & staticcrt)"
}
]
}
},
"dependencies": [
{
"name": "zlib",
"platform": "!windows | (windows & static & staticcrt)"
},
{
"name": "bzip2",
"platform": "!windows | (windows & static & staticcrt)"
},
{
"name": "sdl2",
"platform": "!windows & !osx"
},
{
"name": "libvpx",
"platform": "!windows"
},
{
"name": "libwebp",
"platform": "!windows | (windows & static & staticcrt)"
}
]
}