mirror of
https://github.com/celisej567/cool-source-archive.git
synced 2026-09-21 20:10:15 +03:00
added VS2019 support
debug build requires a little bit of work
This commit is contained in:
28
external/vpc/devtools/base.xcconfig
vendored
Normal file
28
external/vpc/devtools/base.xcconfig
vendored
Normal 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
0
external/vpc/devtools/bin/.empty
vendored
Normal file
46
external/vpc/devtools/bin/vpc
vendored
Normal file
46
external/vpc/devtools/bin/vpc
vendored
Normal 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
2
external/vpc/devtools/debug.xcconfig
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
#include "base.xcconfig"
|
||||
GCC_OPTIMIZATION_LEVEL = 0
|
||||
1
external/vpc/devtools/release.xcconfig
vendored
Normal file
1
external/vpc/devtools/release.xcconfig
vendored
Normal file
@@ -0,0 +1 @@
|
||||
#include "base.xcconfig"
|
||||
Reference in New Issue
Block a user