Re-apply patches if list changed
This commit is contained in:
@@ -324,7 +324,7 @@ jobs:
|
||||
|
||||
- name: Patch monado
|
||||
working-directory: wivrn/monado-src
|
||||
run: ../patches/apply.sh ../patches/monado
|
||||
run: ../patches/apply.sh ../patches/monado/*
|
||||
|
||||
- name: Edit changelog (nightly)
|
||||
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
|
||||
|
||||
+5
-3
@@ -227,21 +227,23 @@ FetchContent_Declare(spdlog EXCLUDE_FROM_ALL SYSTEM URL https://github.co
|
||||
FetchContent_Declare(stb EXCLUDE_FROM_ALL SYSTEM URL https://github.com/nothings/stb/archive/013ac3beddff3dbffafd5177e7972067cd2b5083.zip)
|
||||
FetchContent_Declare(libktx EXCLUDE_FROM_ALL SYSTEM URL https://github.com/KhronosGroup/KTX-Software/archive/refs/tags/v4.3.0.tar.gz)
|
||||
FetchContent_Declare(implot EXCLUDE_FROM_ALL SYSTEM URL https://github.com/epezent/implot/archive/refs/tags/v0.16.tar.gz)
|
||||
file(GLOB IMGUI_PATCHES CONFIGURE_DEPENDS patches/imgui/*)
|
||||
FetchContent_Declare(imgui EXCLUDE_FROM_ALL SYSTEM URL https://github.com/ocornut/imgui/archive/refs/tags/v1.91.3.tar.gz
|
||||
PATCH_COMMAND ${CMAKE_CURRENT_LIST_DIR}/patches/apply.sh ${CMAKE_CURRENT_LIST_DIR}/patches/imgui/
|
||||
PATCH_COMMAND ${CMAKE_CURRENT_LIST_DIR}/patches/apply.sh ${IMGUI_PATCHES}
|
||||
)
|
||||
# Use the docking branch of imgui to use multi-viewport
|
||||
# FetchContent_Declare(imgui EXCLUDE_FROM_ALL URL https://github.com/ocornut/imgui/archive/ce0d0ac8298ce164b5d862577e8b087d92f6e90e.zip)
|
||||
FetchContent_Declare(uni-algo EXCLUDE_FROM_ALL SYSTEM URL https://github.com/uni-algo/uni-algo/archive/v1.2.0.tar.gz)
|
||||
|
||||
file(GLOB MONADO_PATCHES CONFIGURE_DEPENDS patches/monado/*)
|
||||
# Server dependencies
|
||||
FetchContent_Declare(monado
|
||||
GIT_REPOSITORY https://gitlab.freedesktop.org/monado/monado
|
||||
# The flatpak manifest is updated automatically
|
||||
GIT_TAG 8aea7b8691061bbc01c37808e3f3d55b47797fa6
|
||||
PATCH_COMMAND ${CMAKE_CURRENT_LIST_DIR}/patches/apply.sh ${CMAKE_CURRENT_LIST_DIR}/patches/monado/
|
||||
PATCH_COMMAND ${CMAKE_CURRENT_LIST_DIR}/patches/apply.sh ${MONADO_PATCHES}
|
||||
EXCLUDE_FROM_ALL
|
||||
)
|
||||
)
|
||||
|
||||
add_subdirectory(external)
|
||||
add_subdirectory(common)
|
||||
|
||||
@@ -178,7 +178,7 @@ modules:
|
||||
dest: deps/monado-src
|
||||
- type: shell
|
||||
commands:
|
||||
- cd deps/monado-src && ../../patches/apply.sh ../../patches/monado
|
||||
- cd deps/monado-src && ../../patches/apply.sh ../../patches/monado/*
|
||||
|
||||
- name: opencomposite
|
||||
buildsystem: cmake-ninja
|
||||
|
||||
+2
-2
@@ -5,12 +5,12 @@ if [ -d ".git" ] ; then
|
||||
git config user.name > /dev/null || git config user.name "no name"
|
||||
git config --local commit.gpgsign false
|
||||
git checkout .
|
||||
exec git am "$@"/*
|
||||
exec git am "$@"
|
||||
fi
|
||||
|
||||
# There is no reliable way to apply a patch and succeed if it was
|
||||
# already applied. Just ignore errors...
|
||||
for f in "$@"/* ; do
|
||||
for f in "$@" ; do
|
||||
patch -p1 --forward < "$f"
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user