added VS2019 support

debug build requires a little bit of work
This commit is contained in:
EnderZip
2021-09-24 14:52:32 +07:00
parent d248074290
commit 07f0467707
269 changed files with 150556 additions and 30263 deletions

28
external/vpc/devtools/base.xcconfig vendored Normal file
View File

@@ -0,0 +1,28 @@
ALWAYS_SEARCH_USER_PATHS = YES
HEADER_SEARCH_PATHS = $(HEADER_SEARCH_PATHS) $(SDKROOT)/usr/include/malloc
ARCHS = i386
ONLY_ACTIVE_ARCH = NO
COPY_PHASE_STRIP = NO
DEBUG_INFORMATION_FORMAT = dwarf-with-dsym
DEAD_CODE_STRIPPING = YES
PRESERVE_DEAD_CODE_INITS_AND_TERMS = YES
GCC_C_LANGUAGE_STANDARD = gnu99
GCC_ENABLE_OBJC_EXCEPTIONS = YES
GCC_PREPROCESSOR_DEFINITIONS = _DLL_EXT=.dylib
GCC_SYMBOLS_PRIVATE_EXTERN = YES
GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO = NO
// CLANG - and use the ccache wrapper
GCC_VERSION = com.apple.compilers.llvm.clang.1_0
CC = $(SOURCE_ROOT)/devtools/bin/osx32/xcode_ccache_wrapper
LDPLUSPLUS = $(DT_TOOLCHAIN_DIR)/usr/bin/clang++
WARNING_CFLAGS = -Wno-deprecated-writable-strings
CLANG_WARN_CXX0X_EXTENSIONS = NO
// this combination of sdk and deploy target allows building on 10.7 (lion) targeting 10.5
SDKROOT = macosx10.6
MACOSX_DEPLOYMENT_TARGET=10.5

0
external/vpc/devtools/bin/.empty vendored Normal file
View File

46
external/vpc/devtools/bin/vpc vendored Normal file
View File

@@ -0,0 +1,46 @@
#!/bin/bash
OS=`uname`
SCRIPTPATH=`dirname $0`
FORCEARG=""
case $OS in
"Darwin")
BINNAME=vpc_osx
;;
"Linux")
BINNAME=vpc_linux
;;
*)
echo "Couldn't find appropriate VPC binary, fix the script."
exit -1
;;
esac
CWD=`pwd`
cd $SCRIPTPATH/../../external/vpc/utils/vpc
# ask make if we need to do any work, returns 0 if we don't,
# non zero if we do.
make -q
RC=$?
if [ $RC -eq 1 ]; then
FORCEARG="/f"
elif [ $RC -eq 2 ]; then
FORCEARG="/f"
make clean
fi
make -j4
if [ $? -ne 0 ]; then
exit -1
fi
cd $CWD
if [ $OS == "Darwin" ]; then
$SCRIPTPATH/$BINNAME $FORCEARG $@
elif [ $OS == "Linux" ]; then
$SCRIPTPATH/$BINNAME $FORCEARG $@
else
echo "Couldn't find appropriate VPC binary, fix the script."
exit -1
fi

2
external/vpc/devtools/debug.xcconfig vendored Normal file
View File

@@ -0,0 +1,2 @@
#include "base.xcconfig"
GCC_OPTIMIZATION_LEVEL = 0

View File

@@ -0,0 +1 @@
#include "base.xcconfig"