File: rules

package info (click to toggle)
pcsx2 2.6.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 89,232 kB
  • sloc: cpp: 386,254; ansic: 79,847; python: 1,216; perl: 391; javascript: 92; sh: 85; asm: 58; makefile: 20; xml: 13
file content (27 lines) | stat: -rwxr-xr-x 963 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
		-DUSE_LINKED_FFMPEG=ON \
		-DPACKAGE_MODE=ON \
		-DDISABLE_ADVANCE_SIMD=ON \
		-DENABLE_TESTS=1

override_dh_auto_build:
	# False positive from blhc. See #1125781.
	@echo 'blhc: ignore-line-regexp: /usr/(bin|lib)/(ccache/)?c\+\+ (?:-std=\S+ )?-w -dM -E (?:-c )?/usr/share/cmake-[0-9.]+/Modules/CMakeCXXCompilerABI.cpp .*'
	dh_auto_build

execute_after_dh_auto_install:
	mv debian/pcsx2/usr/bin debian/pcsx2/usr/games
	install -m644 pcsx2-qt/resources/icons/AppIcon64.png debian/pcsx2/usr/share/pixmaps/pcsx2-qt.png
	install -m644 debian/pcsx2-qt.desktop debian/pcsx2/usr/share/applications/pcsx2-qt.desktop
	rm debian/pcsx2/usr/share/PCSX2/resources/icons/flags/LICENSE
	rm debian/pcsx2/usr/share/PCSX2/resources/sounds/achievements/README.txt