Skip to content
Browse files

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
  • Loading branch information...
1 parent 4669c16 commit 71425850f61ad85e33741ed5a59364327532f6a8 @ariya committed
Showing with 1 addition and 0 deletions.
  1. 0 {bin → src}/Info.plist
  2. +1 −0 src/phantomjs.pro
View
0 bin/Info.plist → src/Info.plist
File renamed without changes.
View
1 src/phantomjs.pro
@@ -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

0 comments on commit 7142585

Please sign in to comment.
Something went wrong with that request. Please try again.