1 # generate Direct3D11 temporary include
3 ifdef HAVE_CROSS_COMPILE
4 IDL_INC_PATH
= /usr
/include/wine
/windows
/
6 #ugly way to get the default location of standard idl files
7 IDL_INC_PATH
= /`echo $(MSYSTEM) | tr A-Z a-z`/$(BUILD
)/include
10 COMMIT_ID
:= 477108e5706e73421634436c21cb76e1795b3609
11 D3D11_IDL_URL
:= http
://sourceforge.net
/p
/mingw-w64
/mingw-w64
/ci
/$(COMMIT_ID
)/tree
/mingw-w64-headers
/direct-x
/include/d3d11.idl?format
=raw
12 DST_D3D11_H
= $(PREFIX
)/include/d3d11.h
13 DST_DXGIDEBUG_H
= $(PREFIX
)/include/dxgidebug.h
20 $(TARBALLS
)/d3d11.idl
:
21 $(call download
,$(D3D11_IDL_URL
))
22 (cd
$(TARBALLS
) && patch
-fp1
) < $(SRC
)/d3d11
/id3d11videodecoder.patch
24 $(TARBALLS
)/dxgidebug.idl
:
25 (cd
$(TARBALLS
) && patch
-fp1
) < $(SRC
)/d3d11
/dxgidebug.patch
27 .sum-d3d11
: $(TARBALLS
)/d3d11.idl
$(TARBALLS
)/dxgidebug.idl
29 $(DST_D3D11_H
): $(TARBALLS
)/d3d11.idl
30 $(WIDL
) -DBOOL
=WINBOOL
-I
$(IDL_INC_PATH
) -h
-o
$@
$<
32 $(DST_DXGIDEBUG_H
): $(TARBALLS
)/dxgidebug.idl
33 $(WIDL
) -DBOOL
=WINBOOL
-I
$(IDL_INC_PATH
) -h
-o
$@
$<
35 .d3d11
: $(DST_D3D11_H
) $(DST_DXGIDEBUG_H
)