File: rules

package info (click to toggle)
gxr-openvr 0.15.1-2
  • links: PTS, VCS
  • area: contrib
  • in suites: bookworm, bullseye, sid, trixie
  • size: 1,724 kB
  • sloc: ansic: 15,256; sh: 72; xml: 71; awk: 35; makefile: 19
file content (28 lines) | stat: -rwxr-xr-x 790 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/make -f

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
VER := $(shell dh_listpackages | cut -c15-18)

%:
	dh $@

override_dh_auto_install:
	install -d debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/gxr-$(VER)/backends/
	install build/src/libgxr-openvr.so \
	  debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/gxr-$(VER)/backends/
	chrpath -d debian/tmp/usr/lib/*/gxr-0.*/backends/libgxr-openvr.so

override_dh_missing:
	dh_missing --list-missing

test_env = \
	-u DISPLAY \
	HOME=$(CURDIR)/debian/tmp-home XDG_CACHE_HOME=

override_dh_auto_test:
	install -d $(CURDIR)/debian/tmp-home/.cache/gxr
	# Run tests without VR runtime
	env $(test_env) meson build
	env $(test_env) ninja -C build
	env $(test_env) meson test -C build/ --no-suite gxr:xr --no-suite post-install