3 WINE_URL
:= https
://dl.winehq.org
/wine
/source
/5.x
/wine-
$(WINE_VERSION
).
tar.xz
9 # Order is important since *_(n).idl will depends on *_(n-1).idl
10 WINE_EXTRA_HEADERS
= dxva.h
13 d3d11_1.idl d3d11_2.idl d3d11_3.idl \
14 dxgicommon.idl dxgitype.idl dxgiformat.idl \
16 dxgi.idl dxgi1_2.idl dxgi1_3.idl dxgi1_4.idl dxgi1_5.idl dxgi1_6.idl \
19 ifndef HAVE_VISUALSTUDIO
20 WINE_EXTRA_HEADERS
+= d3d9caps.h d3d9.h
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
30 $(APPLY
) $(SRC
)/wine-headers
/0001-include-add-HEVC-and-VP8-VP9-support-to-dxva.h.patch
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,); \
46 @for header in
$(WINE_EXTRA_HEADERS
); do \
48 cp
"wine-headers/include/$$header" "$(PREFIX)/include"; \