File: rules

package info (click to toggle)
spirv-reflect 1.4.328.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,260 kB
  • sloc: ansic: 13,975; cpp: 5,963; python: 140; sh: 76; makefile: 12
file content (20 lines) | stat: -rwxr-xr-x 662 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

%:
	dh $@ --buildsystem=cmake  --builddirectory=build

override_dh_auto_configure:
	dh_auto_configure -- \
				-DSPIRV_REFLECT_BUILD_TESTS="ON" \
				-DSPIRV_REFLECT_STATIC_LIB="ON"

execute_after_dh_auto_build:
	# Generate the manpages
	help2man --name="SPIRV-Reflect" --version-string=${DEB_VERSION_UPSTREAM} bin/spirv-reflect > spirv-reflect.1
	help2man --name="SPIRV-Reflect" --version-string=${DEB_VERSION_UPSTREAM} bin/spirv-reflect-pp > spirv-reflect-pp.1

execute_before_dh_auto_test:
	# Run the tests included in the package, they are not triggered by default
	(cd build && ./test-spirv-reflect)