From ea5a66256a74fe25ccf03b55ccd6024ac58da891 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 7 Jan 2020 13:58:08 +0100 Subject: [PATCH] Add msvc2015 --- libretro-build-msvc2015_x64.sh | 17 +++++++++++++++++ libretro-build-msvc2015_x86.sh | 17 +++++++++++++++++ libretro-config.sh | 20 ++++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 libretro-build-msvc2015_x64.sh create mode 100644 libretro-build-msvc2015_x86.sh diff --git a/libretro-build-msvc2015_x64.sh b/libretro-build-msvc2015_x64.sh new file mode 100644 index 00000000..7a518b07 --- /dev/null +++ b/libretro-build-msvc2015_x64.sh @@ -0,0 +1,17 @@ +#! /usr/bin/env bash +# vim: set ts=3 sw=3 noet ft=sh : bash + +SCRIPT="${0#./}" +BASE_DIR="${SCRIPT%/*}" +WORKDIR="$PWD" + +if [ "$BASE_DIR" = "$SCRIPT" ]; then + BASE_DIR="$WORKDIR" +else + if [[ "$0" != /* ]]; then + # Make the path absolute + BASE_DIR="$WORKDIR/$BASE_DIR" + fi +fi + +platform=msvc2015_x64 ${BASE_DIR}/libretro-build.sh $@ diff --git a/libretro-build-msvc2015_x86.sh b/libretro-build-msvc2015_x86.sh new file mode 100644 index 00000000..72979435 --- /dev/null +++ b/libretro-build-msvc2015_x86.sh @@ -0,0 +1,17 @@ +#! /usr/bin/env bash +# vim: set ts=3 sw=3 noet ft=sh : bash + +SCRIPT="${0#./}" +BASE_DIR="${SCRIPT%/*}" +WORKDIR="$PWD" + +if [ "$BASE_DIR" = "$SCRIPT" ]; then + BASE_DIR="$WORKDIR" +else + if [[ "$0" != /* ]]; then + # Make the path absolute + BASE_DIR="$WORKDIR/$BASE_DIR" + fi +fi + +platform=msvc2010_x86 ${BASE_DIR}/libretro-build.sh $@ diff --git a/libretro-config.sh b/libretro-config.sh index de6a8325..6e379569 100755 --- a/libretro-config.sh +++ b/libretro-config.sh @@ -781,6 +781,26 @@ case "$platform" in CXX="cl.exe" CXX11="cl.exe" ;; + msvc2015_x86) + platform=windows_msvc2015_x86 + FORMAT_EXT="dll" + BINARY_EXT=".exe" + FORMAT_COMPILER_TARGET="windows_msvc2015_x86" + DIST_DIR="msvc2015_x86" + CC="cl.exe" + CXX="cl.exe" + CXX11="cl.exe" + ;; + msvc2015_x64) + platform=windows_msvc2015_x64 + FORMAT_EXT="dll" + BINARY_EXT=".exe" + FORMAT_COMPILER_TARGET="windows_msvc2015_x64" + DIST_DIR="msvc2015_x64" + CC="cl.exe" + CXX="cl.exe" + CXX11="cl.exe" + ;; msvc2017_desktop_x86) platform=windows_msvc2017_desktop_x86 FORMAT_EXT="dll"