# DiligentEngine: Modern Low-Level 3D Graphics Library and Rendering Framework
Index: package/develop/diligent-engine/diligent-engine.cache =================================================================== --- package/develop/diligent-engine/diligent-engine.cache (nonexistent) +++ package/develop/diligent-engine/diligent-engine.cache (working copy) @@ -0,0 +1,36 @@ + +[TIMESTAMP] 1727988461 Thu Oct 3 22:47:41 2024 +[BUILDTIME] 360 (9) +[SIZE] 144.30 MB, 443 files + +[DEP] 00-dirtree +[DEP] bash +[DEP] cmake +[DEP] coreutils +[DEP] diffutils +[DEP] freetype +[DEP] gawk +[DEP] gcc +[DEP] git +[DEP] grep +[DEP] jinja2 +[DEP] libglvnd +[DEP] libjpeg +[DEP] libpng +[DEP] libtiff +[DEP] libx11 +[DEP] libxcb +[DEP] linux-header +[DEP] lld +[DEP] llvm +[DEP] make +[DEP] nlohmann-json +[DEP] openssl +[DEP] patch +[DEP] pkgconfig +[DEP] python +[DEP] sed +[DEP] tbb +[DEP] unzip +[DEP] xorgproto +[DEP] zlib Index: package/develop/diligent-engine/diligent-engine.conf =================================================================== --- package/develop/diligent-engine/diligent-engine.conf (nonexistent) +++ package/develop/diligent-engine/diligent-engine.conf (working copy) @@ -0,0 +1 @@ +var_append cmakeopt " " "-DDILIGENT_BUILD_SAMPLES=OFF -Wno-dev -DDILIGENT_NO_FORMAT_VALIDATION=ON" Index: package/develop/diligent-engine/diligent-engine.desc =================================================================== --- package/develop/diligent-engine/diligent-engine.desc (nonexistent) +++ package/develop/diligent-engine/diligent-engine.desc (working copy) @@ -0,0 +1,24 @@ +[I] Modern Low-Level 3D Graphics Library and Rendering Framework + +[T] A lightweight graphics API abstraction library and rendering framework. +[T] It is designed to take full advantage of Vulkan, Metal and WebGPU, +[T] while supporting older platforms via OpenGL, OpenGLES and WebGL. +[T] Diligent Engine exposes common front-end API and uses HLSL as universal +[T] shading language on all platforms and rendering back-ends. +[T] The engine is intended to be used as graphics subsystem in a game engine +[T] or any other 3D application. + +[U] https://github.com/DiligentGraphics/DiligentEngine.git + +[A] assiduous <assidu...@diligentgraphics.com> +[M] NoTag <no...@t2sde.org> + +[C] extra/development +[F] OBJDIR + +[L] APL +[S] Stable +[V] 2.5.6 +[P] X -----5---9 200.000 + +[D] 994f376f6c23b010eaa3ab7416285b064c99ba1c68ade2d5a8eb3f77 DiligentEngine_v2.5.6.zip http://github.com/DiligentGraphics/DiligentEngine/releases/download/v2.5.6/ Index: package/develop/diligent-engine/include-dirs.patch =================================================================== --- package/develop/diligent-engine/include-dirs.patch (nonexistent) +++ package/develop/diligent-engine/include-dirs.patch (working copy) @@ -0,0 +1,14 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 2352252..c906454 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -2,6 +2,9 @@ cmake_minimum_required (VERSION 3.6) + + set_property(GLOBAL PROPERTY USE_FOLDERS ON) + ++include_directories(SYSTEM /usr/X11R7/include/) ++include_directories(/usr/include/nlohmann) ++ + # Generate XCode schema files + set(CMAKE_XCODE_GENERATE_SCHEME TRUE) + # Make malloc write 0xAA to newly allocated memory and 0x55 to deallocated memory Index: package/develop/diligent-engine/no-build-third-party.patch =================================================================== --- package/develop/diligent-engine/no-build-third-party.patch (nonexistent) +++ package/develop/diligent-engine/no-build-third-party.patch (working copy) @@ -0,0 +1,87 @@ +diff --git a/DiligentTools/ThirdParty/CMakeLists.txt b/DiligentTools/ThirdParty/CMakeLists.txt +index 3526783..8a1eb14 100644 +--- a/DiligentTools/ThirdParty/CMakeLists.txt ++++ b/DiligentTools/ThirdParty/CMakeLists.txt +@@ -1,5 +1,10 @@ + cmake_minimum_required (VERSION 3.6) + ++find_package(PNG REQUIRED GLOBAL) ++find_package(TIFF REQUIRED GLOBAL) ++find_package(JPEG REQUIRED GLOBAL) ++find_package(ZLIB REQUIRED GLOBAL) ++ + set(LICENSE_INSTALL_PATH "Licenses/ThirdParty/${DILIGENT_TOOLS_DIR}") + + # Helper interface library to disable -Werror for the third-party libs +@@ -11,55 +16,6 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR + target_compile_options(NO_WERROR INTERFACE -Wno-error) + endif() + +- +-if (NOT TARGET JPEG::JPEG) +- add_subdirectory(libjpeg-9e) +- install(FILES libjpeg-9e/README DESTINATION ${LICENSE_INSTALL_PATH} RENAME libjpeg-readme.txt) +- list(APPEND THIRD_PARTY_TARGETS LibJpeg) +-endif() +- +-if (NOT TARGET TIFF::TIFF) +- add_subdirectory(libtiff) +- install(FILES libtiff/COPYRIGHT DESTINATION ${LICENSE_INSTALL_PATH} RENAME libtiff-copyright.txt) +- list(APPEND THIRD_PARTY_TARGETS LibTiff) +- if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") +- target_compile_options(LibTiff PRIVATE -Wno-shorten-64-to-32) +- endif() +-endif() +- +-if (NOT TARGET ZLIB::ZLIB) +- include(zlib.cmake) +- install(FILES zlib/README DESTINATION ${LICENSE_INSTALL_PATH} RENAME zlib-readme.txt) +- list(APPEND THIRD_PARTY_TARGETS ZLib) +- if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") +- target_compile_options(ZLib PRIVATE -Wno-shorten-64-to-32) +- endif() +-endif() +- +-if (NOT TARGET PNG::PNG) +- set(PNG_BUILD_ZLIB ON CACHE BOOL "Use find_package(zlib) to find ZLib location") +- set(PNG_SHARED OFF CACHE BOOL "Build shared version of libpng") +- set(PNG_TOOLS OFF CACHE BOOL "Build libpng tools") +- set(PNG_TESTS OFF CACHE BOOL "Build libpng tests") +- set(SKIP_INSTALL_ALL ON) +- set(PNG_FRAMEWORK OFF) +- if(PLATFORM_TVOS) +- # libpng does not support tvOS, but it does support iOS, so we can use the iOS target +- set(IOS TRUE) +- endif() +- add_subdirectory(libpng) +- set_target_properties(png_static PROPERTIES POSITION_INDEPENDENT_CODE ON) +- set_directory_root_folder(libpng DiligentTools/ThirdParty/png) +- install(FILES libpng/LICENSE DESTINATION ${LICENSE_INSTALL_PATH} RENAME lpng-license.txt) +- add_library(PNG::PNG ALIAS png_static) +- list(APPEND THIRD_PARTY_TARGETS png_static) +- +- if (PLATFORM_EMSCRIPTEN) +- set_targets_emscripten_properties(png_static) +- endif() +-endif() +- +- + if (NOT DILIGENT_ARGS_DIR) + set(DILIGENT_ARGS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/args" CACHE PATH "args source directory") + endif() +@@ -75,15 +31,7 @@ endif() + install(FILES tinygltf/LICENSE DESTINATION ${LICENSE_INSTALL_PATH} RENAME tinygltf-license.txt) + install(FILES imGuIZMO.quat/license.txt DESTINATION ${LICENSE_INSTALL_PATH} RENAME imGuIZMO.quat-license.txt) + install(FILES stb/LICENSE DESTINATION "${LICENSE_INSTALL_PATH}" RENAME stb-license.txt) +-install(FILES json/LICENSE.MIT DESTINATION ${LICENSE_INSTALL_PATH} RENAME json-license.txt) +- +- + add_library(Diligent-JSON INTERFACE) +-target_include_directories(Diligent-JSON INTERFACE json/single_include/nlohmann) +-# WARNING: JSON_DIAGNOSTICS must be consistently defined for all inclusions of json.hpp, +-# or there will be hard-to-diagnose run-time crashes. +-# It is required by RenderStatePackager even in release builds. +-target_compile_definitions(Diligent-JSON INTERFACE JSON_DIAGNOSTICS=1) + + + if (NOT DILIGENT_DEAR_IMGUI_PATH) Index: package/develop/diligent-engine/no-clang-format.patch =================================================================== --- package/develop/diligent-engine/no-clang-format.patch (nonexistent) +++ package/develop/diligent-engine/no-clang-format.patch (working copy) @@ -0,0 +1,17 @@ +diff --git a/DiligentTools/RenderStateNotation/CMakeLists.txt b/DiligentTools/RenderStateNotation/CMakeLists.txt +index 429f29c..9ffa3b5 100644 +--- a/DiligentTools/RenderStateNotation/CMakeLists.txt ++++ b/DiligentTools/RenderStateNotation/CMakeLists.txt +@@ -45,11 +45,7 @@ source_group("generated" FILES ${GENERATED}) + source_group("source" FILES ${SOURCE}) + source_group("scripts" FILES ${SCRIPTS}) + +-if (EXISTS "${CLANG_FORMAT_EXECUTABLE}") +- set(FORMATTING_COMMAND "${CLANG_FORMAT_EXECUTABLE}" -i *.hpp --verbose) +-else() +- set(FORMATTING_COMMAND "${CMAKE_COMMAND}" -E echo "clang-format executable is not found: RSN parser headers will not be formatted") +-endif() ++set(FORMATTING_COMMAND "${CMAKE_COMMAND}" -E echo "clang-format executable is not found: RSN parser headers will not be formatted") + + add_custom_command(OUTPUT ${GENERATED} + COMMAND ${Python3_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/scripts/cxx_generator.py" --dir "." --files ${REFLECTED} Index: package/develop/diligent-engine/no-pip.patch =================================================================== --- package/develop/diligent-engine/no-pip.patch (nonexistent) +++ package/develop/diligent-engine/no-pip.patch (working copy) @@ -0,0 +1,54 @@ +diff --git a/DiligentCore/ThirdParty/dawn/CMakeLists.txt b/DiligentCore/ThirdParty/dawn/CMakeLists.txt +index e71a75a..bd02eed 100644 +--- a/DiligentCore/ThirdParty/dawn/CMakeLists.txt ++++ b/DiligentCore/ThirdParty/dawn/CMakeLists.txt +@@ -2,18 +2,6 @@ cmake_minimum_required (VERSION 3.11) + + find_package(Python3 REQUIRED) + +-set(JINJA2_INSTALL_CMD ${Python3_EXECUTABLE} -m pip install --upgrade jinja2>=3.0) +- +-if(${Python3_VERSION} VERSION_GREATER_EQUAL "3.12") +- set(JINJA2_INSTALL_CMD ${JINJA2_INSTALL_CMD} --break-system-packages) +-endif() +- +-execute_process(COMMAND ${JINJA2_INSTALL_CMD} +- RESULT_VARIABLE PYTHON_PIP_JINJIA_RESULT) +-if(NOT PYTHON_PIP_JINJIA_RESULT EQUAL "0") +- message(FATAL_ERROR "Command '${JINJA2_INSTALL_CMD}' failed with error code ${PYTHON_PIP_JINJIA_RESULT}") +-endif() +- + FetchContent_DeclareShallowGit( + dawn + GIT_REPOSITORY https://dawn.googlesource.com/dawn +diff --git a/DiligentTools/RenderStateNotation/CMakeLists.txt b/DiligentTools/RenderStateNotation/CMakeLists.txt +index e89ef87..429f29c 100644 +--- a/DiligentTools/RenderStateNotation/CMakeLists.txt ++++ b/DiligentTools/RenderStateNotation/CMakeLists.txt +@@ -26,26 +26,6 @@ file(COPY ../.clang-format DESTINATION "${RSN_PARSER_GENERATED_HEADERS_DIR}") + + find_package(Python3 REQUIRED) + +-set(LIBCLANG_INSTALL_CMD ${Python3_EXECUTABLE} -m pip install libclang==16.0.6) +-set(JINJA2_INSTALL_CMD ${Python3_EXECUTABLE} -m pip install jinja2) +- +-if(${Python3_VERSION} VERSION_GREATER_EQUAL "3.12") +- set(LIBCLANG_INSTALL_CMD ${LIBCLANG_INSTALL_CMD} --break-system-packages) +- set(JINJA2_INSTALL_CMD ${JINJA2_INSTALL_CMD} --break-system-packages) +-endif() +- +-execute_process(COMMAND ${LIBCLANG_INSTALL_CMD} +- RESULT_VARIABLE PYTHON_PIP_LIBCLANG_RESULT) +-if(NOT PYTHON_PIP_LIBCLANG_RESULT EQUAL "0") +- message(FATAL_ERROR "Command '${LIBCLANG_INSTALL_CMD}' failed with error code ${PYTHON_PIP_LIBCLANG_RESULT}") +-endif() +- +-execute_process(COMMAND ${JINJA2_INSTALL_CMD} +- RESULT_VARIABLE PYTHON_PIP_JINJIA_RESULT) +-if(NOT PYTHON_PIP_JINJIA_RESULT EQUAL "0") +- message(FATAL_ERROR "Command '${JINJA2_INSTALL_CMD}' failed with error code ${PYTHON_PIP_JINJIA_RESULT}") +-endif() +- + file(GLOB INCLUDE include/*) + file(GLOB INTERFACE interface/*) + file(GLOB SOURCE src/*)
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to li...@t2-project.org with a subject of: unsubscribe t2