mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 02:48:59 +08:00
56 lines
1.9 KiB
CMake
56 lines
1.9 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO Ipotrick/Daxa
|
|
REF ${VERSION}
|
|
SHA512 53e31bd89170ee18f404ae778c6fd0d5a1cefa2faf9f28e98d793c79dddeb03acda5525c98b875e45024de5db9c5e9cd9216042978c3a107587fefb6343db1e0
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-std-sort.patch #https://github.com/Ipotrick/Daxa/pull/96
|
|
)
|
|
|
|
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-pipeline-manager-slang WITH_UTILS_PIPELINE_MANAGER_SLANG
|
|
utils-pipeline-manager-spirv-validation WITH_UTILS_PIPELINE_MANAGER_SPIRV_VALIDATION
|
|
utils-task-graph WITH_UTILS_TASK_GRAPH
|
|
)
|
|
set(DAXA_DEFINES "-DDAXA_INSTALL=true")
|
|
|
|
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_PIPELINE_MANAGER_SLANG)
|
|
list(APPEND DAXA_DEFINES "-DDAXA_ENABLE_UTILS_PIPELINE_MANAGER_SLANG=true")
|
|
endif()
|
|
if(WITH_UTILS_PIPELINE_MANAGER_SPIRV_VALIDATION)
|
|
list(APPEND DAXA_DEFINES "-DDAXA_ENABLE_UTILS_PIPELINE_MANAGER_SPIRV_VALIDATION=true")
|
|
endif()
|
|
if(WITH_UTILS_TASK_GRAPH)
|
|
list(APPEND DAXA_DEFINES "-DDAXA_ENABLE_UTILS_TASK_GRAPH=true")
|
|
endif()
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
${DAXA_DEFINES}
|
|
-DCMAKE_REQUIRE_FIND_PACKAGE_X11=ON
|
|
-DCMAKE_REQUIRE_FIND_PACKAGE_WAYLAND=ON
|
|
MAYBE_UNUSED_VARIABLES
|
|
CMAKE_REQUIRE_FIND_PACKAGE_X11
|
|
CMAKE_REQUIRE_FIND_PACKAGE_WAYLAND
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup()
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|