]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
docs: add compressed images
authortobtoht <tob@featherwallet.org>
Fri, 15 Dec 2023 00:08:45 +0000 (01:08 +0100)
committertobtoht <tob@featherwallet.org>
Fri, 15 Dec 2023 12:02:22 +0000 (13:02 +0100)
cmake/GenerateDocs.cmake
external/feather-docs

index 29df3f33c1810bb484142c10ef22e3d4bda82e77..26218de54f1018f3fff903061e5afbf0ee525f4c 100644 (file)
@@ -13,6 +13,13 @@ if(Python3_Interpreter_FOUND)
         list(APPEND QRC_LIST "        <file alias=\"${FILE_REL}\">${FILE}</file>")
     endforeach()
 
+    FILE(GLOB IMAGES LIST_DIRECTORIES false "external/feather-docs/static/files/compressed/*.png")
+
+    foreach(FILE ${IMAGES})
+        cmake_path(GET FILE FILENAME FILE_REL)
+        list(APPEND QRC_LIST "        <file alias=\"/static/files/${FILE_REL}\">${FILE}</file>")
+    endforeach()
+
     list(JOIN QRC_LIST "\n" QRC_DATA)
     configure_file("cmake/assets_docs.qrc" "${CMAKE_CURRENT_SOURCE_DIR}/src/assets_docs.qrc")
 else()
index c0d1d629fa829b2d5b6f1cc25a14403b68b73c27..1292e43071d5c464a826eeb734580116f42ce320 160000 (submodule)
@@ -1 +1 @@
-Subproject commit c0d1d629fa829b2d5b6f1cc25a14403b68b73c27
+Subproject commit 1292e43071d5c464a826eeb734580116f42ce320