• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env bash
2# shellcheck disable=SC2086 # we want word splitting
3
4# When changing this file, you need to bump the following
5# .gitlab-ci/image-tags.yml tags:
6# DEBIAN_TEST_GL_TAG
7# DEBIAN_TEST_VK_TAG
8# KERNEL_ROOTFS_TAG
9
10set -uex
11
12uncollapsed_section_start apitrace "Building apitrace"
13
14APITRACE_VERSION="0a6506433e1f9f7b69757b4e5730326970c4321a"
15
16git clone https://github.com/apitrace/apitrace.git --single-branch --no-checkout /apitrace
17pushd /apitrace
18git checkout "$APITRACE_VERSION"
19git submodule update --init --depth 1 --recursive
20cmake -S . -B _build -G Ninja -DCMAKE_BUILD_TYPE=Release -DENABLE_GUI=False -DENABLE_WAFFLE=on ${EXTRA_CMAKE_ARGS:-}
21cmake --build _build --parallel --target apitrace eglretrace
22mkdir build
23cp _build/apitrace build
24cp _build/eglretrace build
25${STRIP_CMD:-strip} build/*
26find . -not -path './build' -not -path './build/*' -delete
27popd
28
29section_end apitrace
30