~emersion/vaapi-decoder

ref: cb0a71c7f3750684fe8af3bfb71d0964173b4844 vaapi-decoder/Makefile -rw-r--r-- 1.2 KiB
cb0a71c7Simon Ser Remove LINEAR from the modifier block-list 1 year, 17 days ago
                                                                                
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
CFLAGS = -g -Wall -Wextra -Wno-unused-parameter
WAYLAND_PROTOCOLS_DIR = $(shell pkg-config wayland-protocols --variable=pkgdatadir)
WAYLAND_SCANNER = $(shell pkg-config --variable=wayland_scanner wayland-scanner)

deps = libavcodec libavformat libavutil libdrm wayland-client xcb libva
depflags = $(shell pkg-config $(deps) --cflags --libs)

gamescope_xwayland_protocol = gamescope-xwayland.xml
linux_dmabuf_unstable_v1_protocol = $(WAYLAND_PROTOCOLS_DIR)/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml
protocol_files = gamescope-xwayland-client-protocol.h gamescope-xwayland-protocol.c \
	linux-dmabuf-unstable-v1-client-protocol.h linux-dmabuf-unstable-v1-protocol.c

all: vaapi-decoder

vaapi-decoder: main.c $(protocol_files)
	$(CC) $(CFLAGS) $(depflags) -o $@ $^

gamescope-xwayland-client-protocol.h: $(gamescope_xwayland_protocol)
	$(WAYLAND_SCANNER) client-header $< $@
gamescope-xwayland-protocol.c: $(gamescope_xwayland_protocol)
	$(WAYLAND_SCANNER) private-code $< $@
linux-dmabuf-unstable-v1-client-protocol.h: $(linux_dmabuf_unstable_v1_protocol)
	$(WAYLAND_SCANNER) client-header $< $@
linux-dmabuf-unstable-v1-protocol.c: $(linux_dmabuf_unstable_v1_protocol)
	$(WAYLAND_SCANNER) private-code $< $@

clean:
	$(RM) vaapi-decoder $(protocol_files)