From 3067c34c5ae5ea94fc4b059a26c385408912e9ce Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 28 Jul 2015 16:37:09 +0200 Subject: [PATCH] Support build with Visual Studio 14. Change-Id: Id0d7c19857e29b66c652c8cc1ab56b64e4fc0fa3 --- README | 3 +++ build/make/gen_msvs_sln.sh | 11 +++++++---- build/make/gen_msvs_vcxproj.sh | 9 ++++++--- configure | 5 ++++- vp8/common/generic/systemdependent.c | 5 +++++ vpx_ports/x86.h | 7 +++++++ 6 files changed, 32 insertions(+), 8 deletions(-) diff --git a/README b/README index 3adc55148..979440eb7 100644 --- a/README +++ b/README @@ -59,6 +59,7 @@ COMPILING THE APPLICATIONS/LIBRARIES: armv7-none-rvct armv7-win32-vs11 armv7-win32-vs12 + armv7-win32-vs14 armv7s-darwin-gcc mips32-linux-gcc mips64-linux-gcc @@ -85,6 +86,7 @@ COMPILING THE APPLICATIONS/LIBRARIES: x86-win32-vs10 x86-win32-vs11 x86-win32-vs12 + x86-win32-vs14 x86_64-android-gcc x86_64-darwin9-gcc x86_64-darwin10-gcc @@ -102,6 +104,7 @@ COMPILING THE APPLICATIONS/LIBRARIES: x86_64-win64-vs10 x86_64-win64-vs11 x86_64-win64-vs12 + x86_64-win64-vs14 generic-gnu The generic-gnu target, in conjunction with the CROSS environment variable, diff --git a/build/make/gen_msvs_sln.sh b/build/make/gen_msvs_sln.sh index ffa370666..664b404c9 100755 --- a/build/make/gen_msvs_sln.sh +++ b/build/make/gen_msvs_sln.sh @@ -19,13 +19,13 @@ show_help() { cat <= 0x0501 + SYSTEM_INFO sysinfo; + GetNativeSystemInfo(&sysinfo); +#else PGNSI pGNSI; SYSTEM_INFO sysinfo; @@ -57,6 +61,7 @@ static int get_cpu_count() pGNSI(&sysinfo); else GetSystemInfo(&sysinfo); +#endif core_count = sysinfo.dwNumberOfProcessors; } diff --git a/vpx_ports/x86.h b/vpx_ports/x86.h index 7d93710c4..0fef6a525 100644 --- a/vpx_ports/x86.h +++ b/vpx_ports/x86.h @@ -136,6 +136,13 @@ static INLINE uint64_t xgetbv(void) { #define xgetbv() 0U // no AVX for older x64 or unrecognized toolchains. #endif +#if defined(_MSC_VER) +#include +#if WINAPI_FAMILY_PARTITION(WINAPI_FAMILY_APP) +#define getenv(x) NULL +#endif +#endif + #define HAS_MMX 0x01 #define HAS_SSE 0x02 #define HAS_SSE2 0x04