merge
commit
07b5a8d203
|
@ -310,11 +310,20 @@ def osxlibinst_as_build_function(self, target, source, pkgname = None, use_own =
|
||||||
return inst
|
return inst
|
||||||
|
|
||||||
def remove_flag(env, flag):
|
def remove_flag(env, flag):
|
||||||
try:
|
success = False
|
||||||
|
if flag in env['CXXFLAGS']:
|
||||||
env['CXXFLAGS'].remove(flag)
|
env['CXXFLAGS'].remove(flag)
|
||||||
return True
|
success = True
|
||||||
except:
|
if flag in env['SHCXXFLAGS']:
|
||||||
return False
|
env['SHCXXFLAGS'].remove(flag)
|
||||||
|
success = True
|
||||||
|
if flag in env['CFLAGS']:
|
||||||
|
env['CFLAGS'].remove(flag)
|
||||||
|
success = True
|
||||||
|
if flag in env['LINKFLAGS']:
|
||||||
|
env['LINKFLAGS'].remove(flag)
|
||||||
|
success = True
|
||||||
|
return success
|
||||||
|
|
||||||
def match_pattern(x, patterns):
|
def match_pattern(x, patterns):
|
||||||
match = False
|
match = False
|
||||||
|
@ -327,6 +336,7 @@ def match_pattern(x, patterns):
|
||||||
def remove_flags(env, patterns):
|
def remove_flags(env, patterns):
|
||||||
env['CCFLAGS'][:] = [ x for x in env['CCFLAGS'] if not match_pattern(x, patterns) ]
|
env['CCFLAGS'][:] = [ x for x in env['CCFLAGS'] if not match_pattern(x, patterns) ]
|
||||||
env['CXXFLAGS'][:] = [ x for x in env['CXXFLAGS'] if not match_pattern(x, patterns) ]
|
env['CXXFLAGS'][:] = [ x for x in env['CXXFLAGS'] if not match_pattern(x, patterns) ]
|
||||||
|
env['SHCXXFLAGS'][:] = [ x for x in env['SHCXXFLAGS'] if not match_pattern(x, patterns) ]
|
||||||
env['LINKFLAGS'][:] = [ x for x in env['LINKFLAGS'] if not match_pattern(x, patterns) ]
|
env['LINKFLAGS'][:] = [ x for x in env['LINKFLAGS'] if not match_pattern(x, patterns) ]
|
||||||
|
|
||||||
def append_flag(env, value):
|
def append_flag(env, value):
|
||||||
|
@ -354,7 +364,7 @@ def relax_compiler_settings(env):
|
||||||
# Relax the compiler settings when compiling heavy templated code
|
# Relax the compiler settings when compiling heavy templated code
|
||||||
# (e.g. Boost::Spirit parsers, etc., which don't necessarily have
|
# (e.g. Boost::Spirit parsers, etc., which don't necessarily have
|
||||||
# to be that fast)
|
# to be that fast)
|
||||||
env.RemoveFlags(['-g', '/Z7', '-ipo', '/GL'])
|
env.RemoveFlags(['-g', '/Z7', '/Zi', '-ipo', '/GL', '/DEBUG'])
|
||||||
if env.RemoveFlag('-O3'):
|
if env.RemoveFlag('-O3'):
|
||||||
env.AppendFlag('-Os')
|
env.AppendFlag('-Os')
|
||||||
if env.RemoveFlag('/O2'):
|
if env.RemoveFlag('/O2'):
|
||||||
|
|
|
@ -27,11 +27,11 @@ COLLADALIB = ['collada14dom']
|
||||||
# versions at the same time by explicitly specifying e.g. PYTHON27INCLUDE,
|
# versions at the same time by explicitly specifying e.g. PYTHON27INCLUDE,
|
||||||
# PYTHON27LIB, PYTHON27LIBDIR and PYTHON32INCLUDE, PYTHON32LIB, PYTHON32LIBDIR
|
# PYTHON27LIB, PYTHON27LIBDIR and PYTHON32INCLUDE, PYTHON32LIB, PYTHON32LIBDIR
|
||||||
|
|
||||||
pyver = os.popen("python --version 2>&1 | grep -oE '([[:digit:]].[[:digit:]])'").read().strip()
|
pyver = os.popen("python --version 2>&1 | grep -oE '([[:digit:]].[[:digit:]])'").read().strip().replace('.', '')
|
||||||
env = locals()
|
env = locals()
|
||||||
|
|
||||||
env['PYTHON'+pyver+'INCLUDE'] = []
|
env['PYTHON'+pyver+'INCLUDE'] = []
|
||||||
env['PYTHON'+pyver+'LIB'] = ['boost_python']
|
env['PYTHON'+pyver+'LIB'] = ['boost_python3' if pyver[0] == '3' else 'boost_python']
|
||||||
|
|
||||||
for entry in os.popen("python-config --cflags --libs").read().split():
|
for entry in os.popen("python-config --cflags --libs").read().split():
|
||||||
if entry[:2] == '-I':
|
if entry[:2] == '-I':
|
||||||
|
|
|
@ -27,11 +27,11 @@ COLLADALIB = ['collada14dom']
|
||||||
# versions at the same time by explicitly specifying e.g. PYTHON27INCLUDE,
|
# versions at the same time by explicitly specifying e.g. PYTHON27INCLUDE,
|
||||||
# PYTHON27LIB, PYTHON27LIBDIR and PYTHON32INCLUDE, PYTHON32LIB, PYTHON32LIBDIR
|
# PYTHON27LIB, PYTHON27LIBDIR and PYTHON32INCLUDE, PYTHON32LIB, PYTHON32LIBDIR
|
||||||
|
|
||||||
pyver = os.popen("python --version 2>&1 | grep -oE '([[:digit:]].[[:digit:]])'").read().strip()
|
pyver = os.popen("python --version 2>&1 | grep -oE '([[:digit:]].[[:digit:]])'").read().strip().replace('.', '')
|
||||||
env = locals()
|
env = locals()
|
||||||
|
|
||||||
env['PYTHON'+pyver+'INCLUDE'] = []
|
env['PYTHON'+pyver+'INCLUDE'] = []
|
||||||
env['PYTHON'+pyver+'LIB'] = ['boost_python']
|
env['PYTHON'+pyver+'LIB'] = ['boost_python3' if pyver[0] == '3' else 'boost_python']
|
||||||
|
|
||||||
for entry in os.popen("python-config --cflags --libs").read().split():
|
for entry in os.popen("python-config --cflags --libs").read().split():
|
||||||
if entry[:2] == '-I':
|
if entry[:2] == '-I':
|
||||||
|
|
|
@ -3,7 +3,7 @@ DISTDIR = '#dist'
|
||||||
CXX = 'icl'
|
CXX = 'icl'
|
||||||
CC = 'icl'
|
CC = 'icl'
|
||||||
LINK = 'xilink'
|
LINK = 'xilink'
|
||||||
CXXFLAGS = ['/nologo', '/O3', '/Qipo', '/QxSSE2', '/QaxSSE3,SSE4.2', '/fp:fast=2', '/D', 'WIN32', '/W3', '/Qdiag-disable:2586', '/EHsc', '/GS-', '/MD', '/D', 'MTS_DEBUG', '/D', 'SINGLE_PRECISION', '/D', 'SPECTRUM_SAMPLES=3', '/D', 'MTS_SSE', '/D', 'MTS_HAS_COHERENT_RT', '/D', '_CONSOLE', '/D', 'OPENEXR_DLL', '/D', 'NDEBUG', '/Qopenmp']
|
CXXFLAGS = ['/nologo', '/O3', '/Qipo', '/QxSSE2', '/QaxSSE3,SSE4.2', '/fp:fast=2', '/D', 'WIN32', '/W3', '/Qdiag-disable:803' ,'/Qdiag-disable:2415', '/Qdiag-disable:2586', '/EHsc', '/GS-', '/MD', '/D', 'MTS_DEBUG', '/D', 'SINGLE_PRECISION', '/D', 'SPECTRUM_SAMPLES=3', '/D', 'MTS_SSE', '/D', 'MTS_HAS_COHERENT_RT', '/D', '_CONSOLE', '/D', 'OPENEXR_DLL', '/D', 'NDEBUG', '/Qopenmp']
|
||||||
SHCXXFLAGS = CXXFLAGS
|
SHCXXFLAGS = CXXFLAGS
|
||||||
TARGET_ARCH = 'x86'
|
TARGET_ARCH = 'x86'
|
||||||
MSVC_VERSION = '10.0'
|
MSVC_VERSION = '10.0'
|
||||||
|
|
|
@ -3,7 +3,7 @@ DISTDIR = '#dist'
|
||||||
CXX = 'icl'
|
CXX = 'icl'
|
||||||
CC = 'icl'
|
CC = 'icl'
|
||||||
LINK = 'xilink'
|
LINK = 'xilink'
|
||||||
CXXFLAGS = ['/nologo', '/O3', '/Qipo', '/QxSSE2', '/QaxSSE3,SSE4.2', '/fp:fast=2', '/D', 'WIN32', '/D', 'WIN64', '/W3', '/Qdiag-disable:2586', '/EHsc', '/GS-', '/MD', '/D', 'MTS_DEBUG', '/D', 'SINGLE_PRECISION', '/D', 'SPECTRUM_SAMPLES=3', '/D', 'MTS_SSE', '/D', 'MTS_HAS_COHERENT_RT', '/D', '_CONSOLE', '/D', 'OPENEXR_DLL', '/D', 'NDEBUG', '/Qopenmp']
|
CXXFLAGS = ['/nologo', '/O3', '/Qipo', '/QxSSE2', '/QaxSSE3,SSE4.2', '/fp:fast=2', '/D', 'WIN32', '/D', 'WIN64', '/W3', '/Qdiag-disable:803' ,'/Qdiag-disable:2415', '/Qdiag-disable:2586', '/EHsc', '/GS-', '/MD', '/D', 'MTS_DEBUG', '/D', 'SINGLE_PRECISION', '/D', 'SPECTRUM_SAMPLES=3', '/D', 'MTS_SSE', '/D', 'MTS_HAS_COHERENT_RT', '/D', '_CONSOLE', '/D', 'OPENEXR_DLL', '/D', 'NDEBUG', '/Qopenmp']
|
||||||
SHCXXFLAGS = CXXFLAGS
|
SHCXXFLAGS = CXXFLAGS
|
||||||
TARGET_ARCH = 'x86_64'
|
TARGET_ARCH = 'x86_64'
|
||||||
MSVC_VERSION = '10.0'
|
MSVC_VERSION = '10.0'
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
Remove-Item -Recurse -Force symbols
|
||||||
|
mkdir symbols
|
||||||
|
Get-ChildItem build -include *.pdb -recurse | foreach ($_) { python dependencies\bin\symbolstore.py dependencies\bin\dump_syms_x86 symbols $_.fullname }
|
|
@ -1578,7 +1578,7 @@ void GeometryConverter::convertCollada(const fs::path &inputFile,
|
||||||
const fs::path &meshesDirectory) {
|
const fs::path &meshesDirectory) {
|
||||||
CustomErrorHandler errorHandler;
|
CustomErrorHandler errorHandler;
|
||||||
daeErrorHandler::setErrorHandler(&errorHandler);
|
daeErrorHandler::setErrorHandler(&errorHandler);
|
||||||
SLog(EInfo, "Loading \"%s\" ..", inputFile.filename().c_str());
|
SLog(EInfo, "Loading \"%s\" ..", inputFile.filename().string().c_str());
|
||||||
#if COLLADA_DOM_SUPPORT141
|
#if COLLADA_DOM_SUPPORT141
|
||||||
DAE *dae = new DAE(NULL, NULL, "1.4.1");
|
DAE *dae = new DAE(NULL, NULL, "1.4.1");
|
||||||
domCOLLADA *document = dae->open141(inputFile.string());
|
domCOLLADA *document = dae->open141(inputFile.string());
|
||||||
|
|
Loading…
Reference in New Issue