Mac: Embed Info.plist in the executable.

Info.plist is needed to surpress the dock icon. Up to now, we need to have
the file available at run-time. With this change, the contents of
Info.plist are embedded in the executable at the linking stage, thus
there is no need to deploy the Info.plist file anymore.

Credit to Smokey Ardisson for the tip.

http://code.google.com/p/phantomjs/issues/detail?id=528
1.6
Ariya Hidayat 2012-05-08 06:41:04 +07:00
parent 4669c16e64
commit 71425850f6
2 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ os2: RC_FILE = phantomjs_os2.rc
mac {
QMAKE_CXXFLAGS += -fvisibility=hidden
QMAKE_LFLAGS += '-sectcreate __TEXT __info_plist Info.plist'
CONFIG -= app_bundle
# Uncomment to build a Mac OS X Universal Binary (i.e. x86 + ppc)
# CONFIG += x86 ppc