force WINAPI_FAMILY to WINAPI_FAMILY_DESKTOP_APP to use DVXA
authorSteve Lhomme <robux4@gmail.com>
Sun, 26 Jul 2015 11:35:47 +0000 (13:35 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 26 Jul 2015 20:02:20 +0000 (22:02 +0200)
commitc5327df838396e7c43a56bdd141c0f01ba3edc94
tree048f11660a1dbd07c4f12e55968a25d834084848
parentf21fcf60eca9f9fde80095eea11b0d54b116d683
force WINAPI_FAMILY to WINAPI_FAMILY_DESKTOP_APP to use DVXA

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: Michael Niedermayer <michael@niedermayer.cc>
configure
libavcodec/dxva2_internal.h