--- After these patches, one can do a build for Windows Phone/ARM with as little configure flags as this: --toolchain=msvc --target-os=win32 --enable-cross-compile --arch=arm --cpu=armv7-a --extra-cflags='-DWINAPI_FAMILY=WINAPI_FAMILY_PHONE_APP' --- configure | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
diff --git a/configure b/configure index 541d6ce..814dfbd 100755 --- a/configure +++ b/configure @@ -3481,6 +3481,20 @@ EOF add_cflags -MD fi fi + if check_cpp<<EOF +#include <winapifamily.h> +#if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PHONE) +#error not phone +#endif +EOF + then + # When building for Windows Phone 8.1 with MSVC 2013, one needs to manually add these ldflags. + # For Windows Phone 8.0 (MSVC 2012), they aren't needed (but don't hurt either). + # Check whether linking succeeds with the user provided flags, if not, try adding these. + check_ld <<EOF || check_ldflags -nodefaultlib:kernel32.lib -nodefaultlib:ole32.lib WindowsPhoneCore.lib +int main(void){ return 0; } +EOF + fi fi # compiler sanity check -- 1.8.1.2 _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel