Description: Avoid #embed directive Workaround gcc-14's lack of #embed support. This can be dropped when Debian's default gcc is 15+. Origin: https://github.com/cpiber/hyprland-ppa/blob/0dcd5f3101f7ced40879d0f34f337b1a2cdd79ae/hyprland/debian/patches/03-embed Author: Constantin Piber Forwarded: not-needed Index: source/CMakeLists.txt =================================================================== --- source.orig/CMakeLists.txt +++ source/CMakeLists.txt @@ -30,6 +30,11 @@ execute_process(COMMAND ./scripts/genera execute_process(COMMAND ./scripts/generateShaderIncludes.sh WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) +execute_process(COMMAND xxd -i + INPUT_FILE ./example/hyprland.conf + OUTPUT_FILE ./src/config/defaultConfigBytes.hpp + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) + find_package(PkgConfig REQUIRED) # Try to find canihavesomecoffee's udis86 using pkgconfig vmd/udis86 does not Index: source/src/config/defaultConfig.hpp =================================================================== --- source.orig/src/config/defaultConfig.hpp +++ source/src/config/defaultConfig.hpp @@ -12,7 +12,7 @@ autogenerated = 1 # remove this line to )#"; inline constexpr char EXAMPLE_CONFIG_BYTES[] = { -#embed "../../example/hyprland.conf" +#include "defaultConfigBytes.hpp" }; inline constexpr std::string_view EXAMPLE_CONFIG = {EXAMPLE_CONFIG_BYTES, sizeof(EXAMPLE_CONFIG_BYTES)};