File: rules

package info (click to toggle)
dxvk 0.96%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,652 kB
  • sloc: cpp: 54,556; ansic: 7,994; sh: 422; makefile: 26
file content (45 lines) | stat: -rwxr-xr-x 1,072 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/make -f

%:
	dh $@

# Select winebuild-development
export WINEBUILD := /usr/bin/winebuild-development

# 32 or 64
DEB_BUILD_ARCH_BITS=$(shell dpkg-architecture -qDEB_BUILD_ARCH_BITS)

# The name of the build-*.txt profile to choose
BUILD_NAME = wine$(DEB_BUILD_ARCH_BITS)

# The directory in which we will build
BUILD_DIR   = build-$(BUILD_NAME)

# DEST_DIR is what we install to /usr/lib/dxvk
DEST_DIR    = dxvk
INSTALL_DIR = $(CURDIR)/$(DEST_DIR)/$(BUILD_NAME)-development

# Meson flags
MESON_FLAGS = --buildtype release \
               --cross-file build-$(BUILD_NAME).txt \
               --prefix $(INSTALL_DIR) \
               --bindir . \
               --libdir . \
               $(BUILD_DIR)

override_dh_auto_configure:
	echo "MESON_FLAGS: $(MESON_FLAGS)"
	meson $(MESON_FLAGS)

override_dh_auto_build:
	ninja -v -C $(BUILD_DIR)

override_dh_auto_install:
	ninja -v -C $(BUILD_DIR) install

override_dh_auto_clean:
	rm -rf $(BUILD_DIR)
	rm -rf $(DEST_DIR)

override_dh_shlibdeps:
	dh_shlibdeps -- -l/usr/lib/$(DEB_HOST_MULTIARCH)/wine-development