File: rules

package info (click to toggle)
neovim-qt 0.2.12-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,164 kB
  • sloc: cpp: 29,522; ansic: 3,366; python: 233; makefile: 18; sh: 17
file content (30 lines) | stat: -rwxr-xr-x 883 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
29
30
#!/usr/bin/make -f

DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/pkg-info.mk
include /usr/share/dpkg/buildflags.mk

# cmake doesn't honor CPPFLAGS
CFLAGS += $(CPPFLAGS)
CXXFLAGS += $(CPPFLAGS)

export CFLAGS CXXFLAGS LDFLAGS

TEST_HOME = $(CURDIR)/build/home

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

override_dh_auto_configure:
	dh_auto_configure -- -DUSE_SYSTEM_MSGPACK=ON -DCMAKE_BUILD_TYPE=Release
	ninja -C $(CURDIR)/build bindings

override_dh_auto_build:
	dh_auto_build
	help2man -s 1 --version-string=$(DEB_VERSION_UPSTREAM)  -n 'Neovim GUI' --no-info -o debian/nvim-qt.1 build/bin/nvim-qt

override_dh_auto_test:
	mkdir -p "$(TEST_HOME)"
	# Need to use a server with 24bit color depth to avoid libegl-mesa
	# crashes on some systems
	xvfb-run --server-args '-screen 0 1024x768x24' --auto-servernum env HOME="$(TEST_HOME)" dh_auto_test