mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 01:24:47 +08:00
[Daxa] new port (#29800)
* [daxa] new port * [daxa] format manifest * Move version file * Apply suggestions from code review Co-authored-by: MonicaLiu <110024546+MonicaLiu0311@users.noreply.github.com> * [daxa] add "supports" field * [daxa] Remove deprecated functions * Apply suggestions from code review Co-authored-by: Javier Matos Denizac <javier.matosd@gmail.com> * format manifest --------- Co-authored-by: MonicaLiu <110024546+MonicaLiu0311@users.noreply.github.com> Co-authored-by: Javier Matos Denizac <javier.matosd@gmail.com>
This commit is contained in:
parent
dd1b57240e
commit
35a6d4ec67
43
ports/daxa/portfile.cmake
Normal file
43
ports/daxa/portfile.cmake
Normal file
@ -0,0 +1,43 @@
|
||||
vcpkg_from_git(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
URL https://github.com/Ipotrick/Daxa
|
||||
REF 14d5378a6157b3530c3ff826182706126be135bd
|
||||
)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
utils-imgui WITH_UTILS_IMGUI
|
||||
utils-mem WITH_UTILS_MEM
|
||||
utils-pipeline-manager-glslang WITH_UTILS_PIPELINE_MANAGER_GLSLANG
|
||||
utils-task-list WITH_UTILS_TASK_LIST
|
||||
)
|
||||
set(DAXA_DEFINES)
|
||||
|
||||
if(WITH_UTILS_IMGUI)
|
||||
list(APPEND DAXA_DEFINES "-DDAXA_ENABLE_UTILS_IMGUI=true")
|
||||
endif()
|
||||
if(WITH_UTILS_MEM)
|
||||
list(APPEND DAXA_DEFINES "-DDAXA_ENABLE_UTILS_MEM=true")
|
||||
endif()
|
||||
if(WITH_UTILS_PIPELINE_MANAGER_GLSLANG)
|
||||
list(APPEND DAXA_DEFINES "-DDAXA_ENABLE_UTILS_PIPELINE_MANAGER_GLSLANG=true")
|
||||
endif()
|
||||
if(WITH_UTILS_TASK_LIST)
|
||||
list(APPEND DAXA_DEFINES "-DDAXA_ENABLE_UTILS_TASK_LIST=true")
|
||||
endif()
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
${DAXA_DEFINES}
|
||||
-DCMAKE_REQUIRE_FIND_PACKAGE_X11=ON
|
||||
-DCMAKE_REQUIRE_FIND_PACKAGE_WAYLAND=ON
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup()
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE"
|
||||
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
||||
RENAME copyright
|
||||
)
|
51
ports/daxa/vcpkg.json
Normal file
51
ports/daxa/vcpkg.json
Normal file
@ -0,0 +1,51 @@
|
||||
{
|
||||
"name": "daxa",
|
||||
"version": "1.0.0",
|
||||
"description": "Daxa C++ Vulkan Abstraction",
|
||||
"homepage": "https://github.com/Ipotrick/Daxa",
|
||||
"license": "MIT",
|
||||
"supports": "(windows | linux) & !x86",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
},
|
||||
"vulkan",
|
||||
"vulkan-memory-allocator",
|
||||
{
|
||||
"name": "wayland",
|
||||
"default-features": false,
|
||||
"platform": "linux"
|
||||
}
|
||||
],
|
||||
"default-features": [
|
||||
"utils-imgui",
|
||||
"utils-mem",
|
||||
"utils-pipeline-manager-glslang",
|
||||
"utils-task-list"
|
||||
],
|
||||
"features": {
|
||||
"utils-imgui": {
|
||||
"description": "The ImGUI Daxa utility",
|
||||
"dependencies": [
|
||||
"imgui"
|
||||
]
|
||||
},
|
||||
"utils-mem": {
|
||||
"description": "The Mem Daxa utility"
|
||||
},
|
||||
"utils-pipeline-manager-glslang": {
|
||||
"description": "Build with glslang",
|
||||
"dependencies": [
|
||||
"glslang"
|
||||
]
|
||||
},
|
||||
"utils-task-list": {
|
||||
"description": "The Task-List Daxa utility"
|
||||
}
|
||||
}
|
||||
}
|
@ -1976,6 +1976,10 @@
|
||||
"baseline": "2.2.3",
|
||||
"port-version": 0
|
||||
},
|
||||
"daxa": {
|
||||
"baseline": "1.0.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"dbg-macro": {
|
||||
"baseline": "2021-11-02",
|
||||
"port-version": 0
|
||||
|
9
versions/d-/daxa.json
Normal file
9
versions/d-/daxa.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "25a96e0311836a1151731079225a381779fb3a4b",
|
||||
"version": "1.0.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user