OSDN Git Service

force WINAPI_FAMILY to WINAPI_FAMILY_DESKTOP_APP to be able to use dxva.h
authorSteve Lhomme <robux4@gmail.com>
Sun, 26 Jul 2015 11:35:47 +0000 (13:35 +0200)
committerMartin Storsjö <martin@martin.st>
Sun, 26 Jul 2015 17:18:03 +0000 (20:18 +0300)
commit9b4b96c0dee90d260891ec765b28f6ca15594340
tree06344db14e1b64da32d062ca6743e6396718ad08
parent4d0d55cd623bcd504867f948849380f6b4060b4d
force WINAPI_FAMILY to WINAPI_FAMILY_DESKTOP_APP to be able to use dxva.h

The struct definitions in dxva.h, which are necessary in order to
actually use d3d11va, are hidden when WINAPI_FAMILY targets Windows Phone
or WindowsRT.

Building with WINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP is disallowed
when targeting ARM. ("Compiling Desktop applications for the ARM
platform is not supported.") So we set _CRT_BUILD_DESKTOP_APP to 0
to tell the runtime not to detect some issues with this mismatching.

The same tweaks to detect if the API is available is done in dxva2_internal.h
when compiling each DXVA2/D3D11VA decoders.

Signed-off-by: Martin Storsjö <martin@martin.st>
configure
libavcodec/dxva2_internal.h