mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
scripts/archive-source.sh: Archive subprojects
Cherry-pick part of QEMU 2019cab for Vulkan dependency support before
merging future QEMU updates.
This commit is contained in:
committed by
mborgerson
parent
08ce952441
commit
fde6b17ed0
@@ -33,6 +33,8 @@ submodules="$submodules tests/fp/berkeley-softfloat-3 tests/fp/berkeley-testfloa
|
||||
submodules="$submodules ui/thirdparty/imgui ui/thirdparty/implot ui/thirdparty/httplib util/xxHash tomlplusplus genconfig"
|
||||
submodules="$submodules hw/xbox/nv2a/pgraph/thirdparty/nv2a_vsh_cpu"
|
||||
|
||||
subprojects="glslang SPIRV-Reflect volk VulkanMemoryAllocator"
|
||||
|
||||
sub_deinit=""
|
||||
|
||||
function cleanup() {
|
||||
@@ -56,6 +58,14 @@ function tree_ish() {
|
||||
|
||||
git archive --format tar "$(tree_ish)" > "$tar_file"
|
||||
test $? -ne 0 && error "failed to archive qemu"
|
||||
|
||||
for sp in $subprojects; do
|
||||
meson subprojects download $sp
|
||||
# test $? -ne 0 && error "failed to download subproject $sp"
|
||||
tar --append --file "$tar_file" --exclude=.git subprojects/$sp
|
||||
test $? -ne 0 && error "failed to append subproject $sp to $tar_file"
|
||||
done
|
||||
|
||||
for sm in $submodules; do
|
||||
status="$(git submodule status "$sm")"
|
||||
smhash="${status#[ +-]}"
|
||||
|
||||
Reference in New Issue
Block a user