69b4488854c623a8ae9daf2f7e3239a4746bc40d
[vlc.git] / contrib / src / d3d9 / rules.mak
1 # generate Direct3D9 temporary include
2
3 ifdef HAVE_CROSS_COMPILE
4 IDL_INC_PATH = /usr/include/wine/windows/
5 else
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
8 endif
9
10 D3D9CAPS_COMMIT_ID := 477108e5706e73421634436c21cb76e1795b3609
11 D3D9_H_ID := 477108e5706e73421634436c21cb76e1795b3609
12 D3D9CAPS_H_URL := http://sourceforge.net/p/mingw-w64/mingw-w64/ci/$(D3D9CAPS_COMMIT_ID)/tree/mingw-w64-headers/direct-x/include/d3d9caps.h?format=raw
13 D3D9_H_URL := http://sourceforge.net/p/mingw-w64/mingw-w64/ci/$(D3D9CAPS_COMMIT_ID)/tree/mingw-w64-headers/direct-x/include/d3d9.h?format=raw
14 DST_D3D9CAPS_H = $(PREFIX)/include/d3d9caps.h
15 DST_D3D9_H = $(PREFIX)/include/d3d9.h
16
17
18 ifdef HAVE_WIN32
19 PKGS += d3d9
20 endif
21
22 $(TARBALLS)/d3d9caps.h:
23         $(call download,$(D3D9CAPS_H_URL))
24
25 $(TARBALLS)/d3d9.h:
26         $(call download,$(D3D9_H_URL))
27
28 .sum-d3d9: $(TARBALLS)/d3d9caps.h $(TARBALLS)/d3d9.h
29
30 $(DST_D3D9CAPS_H): $(TARBALLS)/d3d9caps.h .sum-d3d9
31         mkdir -p -- "$(PREFIX)/include/"
32         cp $(TARBALLS)/d3d9caps.h $@ && cd "$(PREFIX)/include/" && patch -fp1 < ../$(SRC)/d3d9/d3d9caps.patch
33
34 $(DST_D3D9_H): $(TARBALLS)/d3d9.h .sum-d3d9
35         mkdir -p -- "$(PREFIX)/include/"
36         cp $(TARBALLS)/d3d9.h $@ && cd "$(PREFIX)/include/" && patch -fp1 < ../$(SRC)/d3d9/d3d9.patch
37
38 .d3d9caps: $(DST_D3D9CAPS_H)
39         touch $@
40     
41 .d3d9: $(DST_D3D9_H) $(DST_D3D9CAPS_H)
42         touch $@