Qt build: More configuration flags for Mac OS X.

This is just adopting the settings from deploy/build-mac.sh.

http://code.google.com/p/phantomjs/issues/detail?id=226
1.5
Ariya Hidayat 2012-03-08 21:56:02 -08:00
parent de13c551fb
commit 8c01f46e4d
2 changed files with 10 additions and 0 deletions

View File

@ -10,6 +10,9 @@ QT_CFG+=' -v' # Makes it easier to see what header dependencie
# Static build on Mac OS X only
if [[ $OSTYPE = darwin* ]]; then
QT_CFG+=' -static'
QT_CFG+=' -arch x86'
QT_CFG+=' -cocoa' # Cocoa only, ignore Carbon
QT_CFG+=' -no-dwarf2'
fi
QT_CFG+=' -release' # Build only for release (no debugging support)

View File

@ -10,6 +10,9 @@ QT_CFG+=' -v' # Makes it easier to see what header dependencie
# Static build on Mac OS X only
if [[ $OSTYPE = darwin* ]]; then
QT_CFG+=' -static'
QT_CFG+=' -arch x86'
QT_CFG+=' -cocoa' # Cocoa only, ignore Carbon
QT_CFG+=' -no-dwarf2'
fi
QT_CFG+=' -release' # Build only for release (no debugging support)
@ -39,6 +42,10 @@ QT_CFG+=' -no-scripttools'
QT_CFG+=' -no-svg'
QT_CFG+=' -no-xmlpatterns'
# Unnecessary Qt features
QT_CFG+=' -D QT_NO_GRAPHICSVIEW'
QT_CFG+=' -D QT_NO_GRAPHICSEFFECT'
# Sets the default graphics system to the raster engine
QT_CFG+=' -graphicssystem raster'