player: timer: don't use negative length
[vlc.git] / contrib / src / wine-headers / rules.mak
blob2bde5110094b7bf214b9513a1db2949926234987
1 # WINE
2 WINE_VERSION := 5.3
3 WINE_URL := https://dl.winehq.org/wine/source/5.x/wine-$(WINE_VERSION).tar.xz
5 ifdef HAVE_WIN32
6 PKGS += wine-headers
7 endif
9 # Order is important since *_(n).idl will depends on *_(n-1).idl
10 WINE_EXTRA_HEADERS = dxva.h
11 WINE_IDL_HEADERS = \
12 d3d11.idl \
13 d3d11_1.idl d3d11_2.idl d3d11_3.idl \
14 dxgicommon.idl dxgitype.idl dxgiformat.idl \
15 dxgidebug.idl \
16 dxgi.idl dxgi1_2.idl dxgi1_3.idl dxgi1_4.idl dxgi1_5.idl dxgi1_6.idl \
17 dxva2api.idl
19 ifndef HAVE_VISUALSTUDIO
20 WINE_EXTRA_HEADERS += d3d9caps.h d3d9.h
21 endif
23 $(TARBALLS)/wine-$(WINE_VERSION).tar.xz:
24 $(call download_pkg,$(WINE_URL),wine)
26 .sum-wine-headers: wine-$(WINE_VERSION).tar.xz
28 wine-headers: wine-$(WINE_VERSION).tar.xz .sum-wine-headers
29 $(UNPACK)
30 $(APPLY) $(SRC)/wine-headers/0001-include-add-HEVC-and-VP8-VP9-support-to-dxva.h.patch
31 $(MOVE)
33 wine_widl = echo "GEN $(1)" && \
34 $(WIDL) -DBOOL=WINBOOL $(3) \
35 -I$(PREFIX)/include -Iwine-headers/idl-include \
36 -I`echo $(MSYSTEM) | tr A-Z a-z`/$(BUILD)/include -h \
37 -o "$(PREFIX)/include/$(1)" "wine-headers/idl-include/$(2)"
39 .wine-headers: wine-headers
40 @mkdir -p $(PREFIX)/include
41 @mkdir -p wine-headers/idl-include
42 @cp wine-headers/include/*.idl wine-headers/idl-include # be sure to not use .h from the wine project
43 @for header in $(WINE_IDL_HEADERS); do \
44 $(call wine_widl,"`basename $$header idl`h",$$header,); \
45 done
46 @for header in $(WINE_EXTRA_HEADERS); do \
47 echo "CP $$header"; \
48 cp "wine-headers/include/$$header" "$(PREFIX)/include"; \
49 done
50 touch $@