mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
app-emulation/lsfg-vk: force usage of system spirv headers
They switched to using a submodule Signed-off-by: Charlie Quinet <w.iron.zombie@gmail.com>
This commit is contained in:
1 file changed
+12
-1
@@ -69,10 +69,21 @@ N
|
||||
find_package(toml11 REQUIRED)\
|
||||
find_library(raylib_LIBRARY NAMES raylib)
|
||||
}'\
|
||||
-e '/target_link_libraries(lsfg-vk PRIVATE/{N;N;s/toml11 raylib/toml11::toml11 raylib/}'\
|
||||
-e '/target_link_libraries(lsfg-vk PRIVATE/{N;N;s/toml11 raylib/toml11::toml11 raylib/;s/ SPIRV-Headers//}'\
|
||||
-e '/^set(CMAKE_C_COMPILER clang)$/d; /^set(CMAKE_CXX_COMPILER clang++)$/d'\
|
||||
CMakeLists.txt || die
|
||||
|
||||
# Using system spirv headers
|
||||
sed -i \
|
||||
-e '/add_subdirectory(spirv)/d' \
|
||||
-e '/target_link_libraries(dxbc/,/SPIRV-Headers)/d' \
|
||||
-e '/target_include_directories(dxbc SYSTEM/,/include\/dxvk)/c\
|
||||
target_include_directories(dxbc\
|
||||
SYSTEM PUBLIC include/dxbc\
|
||||
SYSTEM PUBLIC include/spirv include/util include/dxvk\
|
||||
)' \
|
||||
thirdparty/dxbc/CMakeLists.txt || die
|
||||
|
||||
# Fixed library path
|
||||
sed -i\
|
||||
's|"library_path": "\.\./\.\./\.\./lib/liblsfg-vk\.so"|"library_path": "liblsfg-vk.so"|'\
|
||||
|
||||
Reference in new issue
Block a user