mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 13:19:23 +08:00
35a6d4ec67
* [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>
44 lines
1.2 KiB
CMake
44 lines
1.2 KiB
CMake
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
|
|
)
|