~mmach/netext73/mesa_2004

« back to all changes in this revision

Viewing changes to .gitlab-ci/container/build-vkd3d-proton.sh

  • Committer: mmach
  • Date: 2023-03-27 18:58:21 UTC
  • Revision ID: netbit73@gmail.com-20230327185821-ozduw10kmfvwg70q
23

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
set -ex
 
4
 
 
5
VKD3D_PROTON_COMMIT="804751ee1cb108a2ec59e182ce0c052bafef268e"
 
6
 
 
7
VKD3D_PROTON_DST_DIR="/vkd3d-proton-tests"
 
8
VKD3D_PROTON_SRC_DIR="/vkd3d-proton-src"
 
9
VKD3D_PROTON_BUILD_DIR="/vkd3d-proton-$VKD3D_PROTON_VERSION"
 
10
 
 
11
function build_arch {
 
12
  local arch="$1"
 
13
  shift
 
14
 
 
15
  meson "$@"                               \
 
16
        -Denable_tests=true                \
 
17
        --buildtype release                \
 
18
        --prefix "$VKD3D_PROTON_DST_DIR"   \
 
19
        --strip                            \
 
20
        --bindir "x${arch}"                \
 
21
        --libdir "x${arch}"                \
 
22
        "$VKD3D_PROTON_BUILD_DIR/build.${arch}"
 
23
 
 
24
  ninja -C "$VKD3D_PROTON_BUILD_DIR/build.${arch}" install
 
25
 
 
26
  install -D -m755 -t "${VKD3D_PROTON_DST_DIR}/x${arch}/bin" "$VKD3D_PROTON_BUILD_DIR/build.${arch}/tests/d3d12"
 
27
}
 
28
 
 
29
git clone https://github.com/HansKristian-Work/vkd3d-proton.git --single-branch -b master --no-checkout "$VKD3D_PROTON_SRC_DIR"
 
30
pushd "$VKD3D_PROTON_SRC_DIR"
 
31
git checkout "$VKD3D_PROTON_COMMIT"
 
32
git submodule update --init --recursive
 
33
git submodule update --recursive
 
34
build_arch 64
 
35
build_arch 86
 
36
popd
 
37
 
 
38
rm -rf "$VKD3D_PROTON_BUILD_DIR"
 
39
rm -rf "$VKD3D_PROTON_SRC_DIR"