[vlc-devel] [PATCH 2/2] contrib: adjust the CMAKE_SYSTEM_NAME for WindowsPhone and WindowsStore targets

Steve Lhomme robux4 at videolabs.io
Wed Feb 10 15:59:57 CET 2016


From: Steve Lhomme <robux4 at gmail.com>

---
 contrib/src/main.mak | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 1417262..d05e6d2 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -445,7 +445,15 @@ list:
 toolchain.cmake:
 	$(RM) $@
 ifdef HAVE_WIN32
+ifdef HAVE_WINDOWSPHONE
+	echo "set(CMAKE_SYSTEM_NAME WindowsPhone)" >> $@
+else
+ifdef HAVE_WINSTORE
+	echo "set(CMAKE_SYSTEM_NAME WindowsStore)" >> $@
+else
 	echo "set(CMAKE_SYSTEM_NAME Windows)" >> $@
+endif
+endif
 	echo "set(CMAKE_RC_COMPILER $(HOST)-windres)" >> $@
 endif
 ifdef HAVE_DARWIN_OS
-- 
2.7.0.windows.1



More information about the vlc-devel mailing list