ci/vkd3d: only build and install the files we actually want
Drops about 75% of the size on disk. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39670>
This commit is contained in:
parent
a2be9897ef
commit
83fed5dfb0
1 changed files with 13 additions and 12 deletions
|
|
@ -31,18 +31,19 @@ git fetch --depth 1 origin "$VKD3D_PROTON_COMMIT"
|
||||||
git checkout FETCH_HEAD
|
git checkout FETCH_HEAD
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
|
||||||
meson setup \
|
meson setup build --buildtype release -D enable_tests=true \
|
||||||
-D c_args=-Wno-error=incompatible-pointer-types \
|
-D c_args=-Wno-error=incompatible-pointer-types
|
||||||
-D enable_tests=true \
|
# Build and install specifically the bits we want; gets rid of 24MB of
|
||||||
--buildtype release \
|
# unwanted files, keeping only 7.6MB of the three useful files.
|
||||||
--prefix "$VKD3D_PROTON_DST_DIR" \
|
for file in \
|
||||||
--strip \
|
libs/d3d12/libvkd3d-proton-d3d12.so \
|
||||||
--libdir "lib" \
|
libs/d3d12core/libvkd3d-proton-d3d12core.so \
|
||||||
build
|
tests/d3d12 \
|
||||||
|
; do
|
||||||
ninja -C build install
|
ninja -C build "$file"
|
||||||
|
strip build/"$file"
|
||||||
install -m755 -t "${VKD3D_PROTON_DST_DIR}/tests" build/tests/d3d12
|
install -Dm755 -t "${VKD3D_PROTON_DST_DIR}/$(dirname "$file")" build/"$file"
|
||||||
|
done
|
||||||
|
|
||||||
install -m755 -t "${VKD3D_PROTON_DST_DIR}/tests" tests/test-runner.sh
|
install -m755 -t "${VKD3D_PROTON_DST_DIR}/tests" tests/test-runner.sh
|
||||||
popd
|
popd
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue