added support to qt5
parent
dbd117656f
commit
9d07003e37
|
@ -4,7 +4,7 @@ BUILDDIR = '#build/release'
|
|||
DISTDIR = '#dist'
|
||||
CXX = 'g++'
|
||||
CC = 'gcc'
|
||||
CXXFLAGS = ['-O3', '-Wall', '-g', '-pipe', '-march=nocona', '-msse2', '-ftree-vectorize', '-mfpmath=sse', '-funsafe-math-optimizations', '-fno-rounding-math', '-fno-signaling-nans', '-fno-math-errno', '-fomit-frame-pointer', '-DMTS_DEBUG', '-DSINGLE_PRECISION', '-DSPECTRUM_SAMPLES=3', '-DMTS_SSE', '-DMTS_HAS_COHERENT_RT', '-fopenmp', '-fvisibility=hidden', '-mtls-dialect=gnu2']
|
||||
CXXFLAGS = ['-O3', '-Wall', '-fPIC', '-std=c++11', '-g', '-pipe', '-march=nocona', '-msse2', '-ftree-vectorize', '-mfpmath=sse', '-funsafe-math-optimizations', '-fno-rounding-math', '-fno-signaling-nans', '-fno-math-errno', '-fomit-frame-pointer', '-DMTS_DEBUG', '-DSINGLE_PRECISION', '-DSPECTRUM_SAMPLES=3', '-DMTS_SSE', '-DMTS_HAS_COHERENT_RT', '-fopenmp', '-fvisibility=hidden', '-mtls-dialect=gnu2']
|
||||
LINKFLAGS = []
|
||||
SHLINKFLAGS = ['-rdynamic', '-shared', '-fPIC', '-lstdc++']
|
||||
BASEINCLUDE = ['#include']
|
||||
|
|
|
@ -438,7 +438,7 @@ def enable_modules(self, modules, debug=False, crosscompiling=False) :
|
|||
self.AppendUnique(LIBPATH=[os.path.join("$QTDIR","lib")])
|
||||
self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include","qt5")])
|
||||
self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include","qt5",module)])
|
||||
pcmodules = [module+debugSuffix for module in modules if module not in pclessModules ]
|
||||
pcmodules = [module.replace('Qt','Qt5')+debugSuffix for module in modules if module not in pclessModules ]
|
||||
if 'QtDBus' in pcmodules:
|
||||
self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include","qt5","QtDBus")])
|
||||
if "QtAssistant" in pcmodules:
|
||||
|
|
Loading…
Reference in New Issue