mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 19:01:48 +08:00
[ncnn] Support Vulkan feature (#38197)
Resolve #35350 - [x] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [ ] SHA512s are updated for each updated download. - [ ] The "supports" clause reflects platforms that may be fixed by this new version. - [ ] Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file. - [ ] Any patches that are no longer applied are deleted from the port's directory. - [x] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [x] Only one version is added to each modified port's versions file.
This commit is contained in:
parent
b4a3d89125
commit
75d28e06a5
@ -1,8 +1,8 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO Tencent/ncnn
|
||||
REF "${VERSION}"
|
||||
SHA512 31bc3c2f461a00241fb8f69ca6ea8cc590af6618856b1b84a048bde924e4b474fd883ad5d54dbfbdd1e5b59015889e15ffc4fbafccb3e42e052a02071f2017b1
|
||||
REF "${VERSION}"
|
||||
SHA512 31bc3c2f461a00241fb8f69ca6ea8cc590af6618856b1b84a048bde924e4b474fd883ad5d54dbfbdd1e5b59015889e15ffc4fbafccb3e42e052a02071f2017b1
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
fix_uwp.patch #https://github.com/Tencent/ncnn/pull/5328
|
||||
@ -10,9 +10,16 @@ vcpkg_from_github(
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
vulkan NCNN_VULKAN
|
||||
vulkan NCNN_SYSTEM_GLSLANG
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
${FEATURE_OPTIONS}
|
||||
-DNCNN_BUILD_TOOLS=OFF
|
||||
-DNCNN_BUILD_EXAMPLES=OFF
|
||||
-DNCNN_BUILD_BENCHMARK=OFF
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "ncnn",
|
||||
"version": "20240102",
|
||||
"port-version": 1,
|
||||
"description": "ncnn is a high-performance neural network inference computing framework.",
|
||||
"homepage": "https://github.com/Tencent/ncnn",
|
||||
"license": "BSD-3-Clause",
|
||||
@ -14,5 +15,14 @@
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
],
|
||||
"features": {
|
||||
"vulkan": {
|
||||
"description": "Enable Vulkan support",
|
||||
"dependencies": [
|
||||
"glslang",
|
||||
"vulkan"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6062,7 +6062,7 @@
|
||||
},
|
||||
"ncnn": {
|
||||
"baseline": "20240102",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"ncurses": {
|
||||
"baseline": "6.4",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "4d52e0be36ae3ae67d9d1b2dac78ec753e50fb66",
|
||||
"version": "20240102",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "322a0f4cfc94f9d73060a9636854a8e1260796fd",
|
||||
"version": "20240102",
|
||||
|
Loading…
Reference in New Issue
Block a user