From 83fed5dfb01962769319868a1d2c3fc4010abb98 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Mon, 11 Aug 2025 18:43:37 +0200 Subject: [PATCH] ci/vkd3d: only build and install the files we actually want Drops about 75% of the size on disk. Part-of: --- .gitlab-ci/container/build-vkd3d-proton.sh | 25 +++++++++++----------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.gitlab-ci/container/build-vkd3d-proton.sh b/.gitlab-ci/container/build-vkd3d-proton.sh index 0b7a40ff12c..5f2417f59a3 100644 --- a/.gitlab-ci/container/build-vkd3d-proton.sh +++ b/.gitlab-ci/container/build-vkd3d-proton.sh @@ -31,18 +31,19 @@ git fetch --depth 1 origin "$VKD3D_PROTON_COMMIT" git checkout FETCH_HEAD git submodule update --init --recursive -meson setup \ - -D c_args=-Wno-error=incompatible-pointer-types \ - -D enable_tests=true \ - --buildtype release \ - --prefix "$VKD3D_PROTON_DST_DIR" \ - --strip \ - --libdir "lib" \ - build - -ninja -C build install - -install -m755 -t "${VKD3D_PROTON_DST_DIR}/tests" build/tests/d3d12 +meson setup build --buildtype release -D enable_tests=true \ + -D c_args=-Wno-error=incompatible-pointer-types +# Build and install specifically the bits we want; gets rid of 24MB of +# unwanted files, keeping only 7.6MB of the three useful files. +for file in \ + libs/d3d12/libvkd3d-proton-d3d12.so \ + libs/d3d12core/libvkd3d-proton-d3d12core.so \ + tests/d3d12 \ +; do + ninja -C build "$file" + strip build/"$file" + install -Dm755 -t "${VKD3D_PROTON_DST_DIR}/$(dirname "$file")" build/"$file" +done install -m755 -t "${VKD3D_PROTON_DST_DIR}/tests" tests/test-runner.sh popd