2024-10-02 21:00:56 +02:00
|
|
|
vcpkg_from_github(
|
2023-03-10 12:04:41 -07:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2024-10-02 21:00:56 +02:00
|
|
|
REPO Ipotrick/Daxa
|
|
|
|
REF ${VERSION}
|
2025-01-07 17:58:07 +01:00
|
|
|
SHA512 5843d95ced3ec154d46e31ad5bf822a8470c785415819d235d5b499c3de629c30f5e4afe12b68ef3505ef7287afc68a70f06e255379136fae2e63976310ca3e0
|
2024-10-02 21:00:56 +02:00
|
|
|
HEAD_REF master
|
2023-03-10 12:04:41 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
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
|
2024-10-02 21:00:56 +02:00
|
|
|
utils-pipeline-manager-slang WITH_UTILS_PIPELINE_MANAGER_SLANG
|
2023-08-31 14:08:19 -06:00
|
|
|
utils-pipeline-manager-spirv-validation WITH_UTILS_PIPELINE_MANAGER_SPIRV_VALIDATION
|
|
|
|
utils-task-graph WITH_UTILS_TASK_GRAPH
|
2023-03-10 12:04:41 -07:00
|
|
|
)
|
2024-10-02 21:00:56 +02:00
|
|
|
set(DAXA_DEFINES "-DDAXA_INSTALL=true")
|
2023-03-10 12:04:41 -07:00
|
|
|
|
|
|
|
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()
|
2024-10-02 21:00:56 +02:00
|
|
|
if(WITH_UTILS_PIPELINE_MANAGER_SLANG)
|
|
|
|
list(APPEND DAXA_DEFINES "-DDAXA_ENABLE_UTILS_PIPELINE_MANAGER_SLANG=true")
|
|
|
|
endif()
|
2023-08-31 14:08:19 -06:00
|
|
|
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")
|
2023-03-10 12:04:41 -07:00
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
${DAXA_DEFINES}
|
|
|
|
-DCMAKE_REQUIRE_FIND_PACKAGE_X11=ON
|
|
|
|
-DCMAKE_REQUIRE_FIND_PACKAGE_WAYLAND=ON
|
2023-08-31 14:08:19 -06:00
|
|
|
MAYBE_UNUSED_VARIABLES
|
|
|
|
CMAKE_REQUIRE_FIND_PACKAGE_X11
|
|
|
|
CMAKE_REQUIRE_FIND_PACKAGE_WAYLAND
|
2023-03-10 12:04:41 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2024-10-11 14:55:35 +00:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|