mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 02:49:01 +08:00
47633daa65
Avoid wrong use of popular but ambiguous variables (`WIN32` etc.) in scripts and portfiles by detection in CI. Sometimes the variables are used wrongly, and sometimes this isn't caught in PR review. This PR tries to catch those variables (when in the active code path in script mode). [This can happen to every contributor](https://github.com/microsoft/vcpkg/pull/34356#discussion_r1360074122), even if he/she knows the rules ... vcpkg is raising the bar higher than usual, having to deal with targets and hosts even in script mode. (`b2-options.cmake` (boost fragment) shows where we get if we don't pay attention: the same code being used in script mode (`WIN32` meaning host) and in project mode (`WIN32` meaning target).) The new check doesn't break any user builds because it relies on command line options. However it changes the ABI hashes.
109 lines
2.3 KiB
JSON
109 lines
2.3 KiB
JSON
{
|
|
"name": "mesa",
|
|
"version": "24.0.7",
|
|
"port-version": 2,
|
|
"description": "Mesa - The 3D Graphics Library",
|
|
"homepage": "https://www.mesa3d.org/",
|
|
"license": "MIT AND BSL-1.0 AND SGI-B-2.0",
|
|
"supports": "!(windows & arm) & !staticcrt & !uwp",
|
|
"dependencies": [
|
|
{
|
|
"name": "vcpkg-get-python-packages",
|
|
"host": true
|
|
},
|
|
{
|
|
"name": "vcpkg-tool-meson",
|
|
"host": true
|
|
},
|
|
"zlib",
|
|
"zstd"
|
|
],
|
|
"default-features": [
|
|
"default-features"
|
|
],
|
|
"features": {
|
|
"default-features": {
|
|
"description": "Platform dependent default features",
|
|
"dependencies": [
|
|
{
|
|
"name": "mesa",
|
|
"default-features": false,
|
|
"features": [
|
|
"gles1",
|
|
"gles2"
|
|
]
|
|
},
|
|
{
|
|
"name": "mesa",
|
|
"default-features": false,
|
|
"features": [
|
|
"llvm"
|
|
],
|
|
"platform": "x64"
|
|
}
|
|
]
|
|
},
|
|
"egl": {
|
|
"description": "Build support for EGL platform",
|
|
"dependencies": [
|
|
"egl-registry"
|
|
]
|
|
},
|
|
"gles1": {
|
|
"description": "Build support for OpenGL ES 1.x",
|
|
"dependencies": [
|
|
"opengl"
|
|
]
|
|
},
|
|
"gles2": {
|
|
"description": "Build support for OpenGL ES 2.x and 3.x",
|
|
"dependencies": [
|
|
"opengl"
|
|
]
|
|
},
|
|
"llvm": {
|
|
"description": "Build with llvmpipe",
|
|
"dependencies": [
|
|
{
|
|
"name": "llvm",
|
|
"default-features": false,
|
|
"features": [
|
|
"enable-rtti",
|
|
"libclc"
|
|
]
|
|
},
|
|
{
|
|
"name": "llvm",
|
|
"default-features": false,
|
|
"features": [
|
|
"target-arm"
|
|
],
|
|
"platform": "arm32"
|
|
},
|
|
{
|
|
"name": "llvm",
|
|
"default-features": false,
|
|
"features": [
|
|
"target-aarch64"
|
|
],
|
|
"platform": "arm64"
|
|
},
|
|
{
|
|
"name": "llvm",
|
|
"default-features": false,
|
|
"features": [
|
|
"target-x86"
|
|
],
|
|
"platform": "x64 | x86"
|
|
}
|
|
]
|
|
},
|
|
"offscreen": {
|
|
"description": "Build with support for offscreen rendering (OSMesa)",
|
|
"dependencies": [
|
|
"opengl"
|
|
]
|
|
}
|
|
}
|
|
}
|