mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-16 06:12:23 +08:00
chore: make use of custon glslang and SPIRV-Cross
This commit is contained in:
parent
c3fbc9340b
commit
816a5866d6
6
.gitmodules
vendored
Normal file
6
.gitmodules
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[submodule "src/External/glslang-WallpaperEngine"]
|
||||||
|
path = src/External/glslang-WallpaperEngine
|
||||||
|
url = https://github.com/Almamu/glslang-WallpaperEngine.git
|
||||||
|
[submodule "src/External/SPIRV-Cross-WallpaperEngine"]
|
||||||
|
path = src/External/SPIRV-Cross-WallpaperEngine
|
||||||
|
url = https://github.com/Almamu/SPIRV-Cross-WallpaperEngine.git
|
@ -31,10 +31,9 @@ find_package(MPV REQUIRED)
|
|||||||
find_package(LZ4 REQUIRED)
|
find_package(LZ4 REQUIRED)
|
||||||
find_package(FFMPEG REQUIRED)
|
find_package(FFMPEG REQUIRED)
|
||||||
find_package(PulseAudio REQUIRED)
|
find_package(PulseAudio REQUIRED)
|
||||||
find_package(glslang REQUIRED)
|
|
||||||
find_package(spirv_cross_core CONFIG REQUIRED)
|
|
||||||
find_package(spirv_cross_glsl CONFIG REQUIRED)
|
|
||||||
|
|
||||||
|
set(ALLOW_EXTERNAL_SPIRV_TOOLS 1)
|
||||||
|
set(SPIRV_CROSS_FORCE_PIC ON)
|
||||||
|
|
||||||
# Download CEF of specified version for current platform
|
# Download CEF of specified version for current platform
|
||||||
# Specify the CEF distribution version.
|
# Specify the CEF distribution version.
|
||||||
@ -108,8 +107,12 @@ set(
|
|||||||
)
|
)
|
||||||
|
|
||||||
add_subdirectory(${CEF_LIBCEF_DLL_WRAPPER_PATH} libcef_dll_wrapper)
|
add_subdirectory(${CEF_LIBCEF_DLL_WRAPPER_PATH} libcef_dll_wrapper)
|
||||||
|
add_subdirectory(src/External/glslang-WallpaperEngine glslang)
|
||||||
|
add_subdirectory(src/External/SPIRV-Cross-WallpaperEngine spirv-cross)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
|
src/External/glslang-WallpaperEngine
|
||||||
|
src/External/SPIRV-Cross-WallpaperEngine
|
||||||
${MPV_INCLUDE_DIR}
|
${MPV_INCLUDE_DIR}
|
||||||
${GLEW_INCLUDE_DIR}
|
${GLEW_INCLUDE_DIR}
|
||||||
${LZ4_INCLUDE_DIR}
|
${LZ4_INCLUDE_DIR}
|
||||||
@ -119,9 +122,6 @@ include_directories(
|
|||||||
src
|
src
|
||||||
${CEF_INCLUDE_PATH}
|
${CEF_INCLUDE_PATH}
|
||||||
${CMAKE_SOURCE_DIR}
|
${CMAKE_SOURCE_DIR}
|
||||||
${glslang_INCLUDE_DIRS}
|
|
||||||
${spirv_cross_core_INCLUDE_DIRS}
|
|
||||||
${spirv_cross_glsl_INCLUDE_DIRS}
|
|
||||||
include)
|
include)
|
||||||
|
|
||||||
|
|
||||||
@ -451,7 +451,7 @@ COPY_FILES(linux-wallpaperengine "${CEF_BINARY_FILES}" "${CEF_BINARY_DIR}" "${TA
|
|||||||
COPY_FILES(linux-wallpaperengine "${CEF_RESOURCE_FILES}" "${CEF_RESOURCE_DIR}" "${TARGET_OUTPUT_DIRECTORY}")
|
COPY_FILES(linux-wallpaperengine "${CEF_RESOURCE_FILES}" "${CEF_RESOURCE_DIR}" "${TARGET_OUTPUT_DIRECTORY}")
|
||||||
|
|
||||||
SET_EXECUTABLE_TARGET_PROPERTIES(linux-wallpaperengine)
|
SET_EXECUTABLE_TARGET_PROPERTIES(linux-wallpaperengine)
|
||||||
add_dependencies(linux-wallpaperengine libcef_dll_wrapper)
|
add_dependencies(linux-wallpaperengine libcef_dll_wrapper glslang spirv-cross-core spirv-cross-glsl)
|
||||||
|
|
||||||
# Need to remove libvulkan, otherwise will get error on linking:
|
# Need to remove libvulkan, otherwise will get error on linking:
|
||||||
# /usr/bin/ld: /usr/lib/libmpv.so: undefined reference to `vkCreateXlibSurfaceKHR'
|
# /usr/bin/ld: /usr/lib/libmpv.so: undefined reference to `vkCreateXlibSurfaceKHR'
|
||||||
|
1
src/External/SPIRV-Cross-WallpaperEngine
vendored
Submodule
1
src/External/SPIRV-Cross-WallpaperEngine
vendored
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 9daa7fe0a36dbe5c5b810d74d2cc43b202407d57
|
1
src/External/glslang-WallpaperEngine
vendored
Submodule
1
src/External/glslang-WallpaperEngine
vendored
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 1956e16ffa8d107f09d65be7deaa53eb2af95ed5
|
@ -4,10 +4,10 @@
|
|||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include <glslang/Include/ResourceLimits.h>
|
#include "glslang/Include/ResourceLimits.h"
|
||||||
#include <glslang/Public/ShaderLang.h>
|
#include "glslang/Public/ShaderLang.h"
|
||||||
#include <glslang/SPIRV/GlslangToSpv.h>
|
#include "glslang/SPIRV/GlslangToSpv.h"
|
||||||
#include <spirv_cross/spirv_glsl.hpp>
|
#include "spirv_glsl.hpp"
|
||||||
|
|
||||||
using namespace WallpaperEngine::Render::Shaders;
|
using namespace WallpaperEngine::Render::Shaders;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user