Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #291 from jonleighton/static_inspector
Browse files Browse the repository at this point in the history
Fix remote inspector when building statically.
  • Loading branch information
ariya committed Jul 7, 2012
2 parents 516c70b + 95186c6 commit 940e008
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
5 changes: 0 additions & 5 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ int main(int argc, char** argv, const char** envp)
Utils::printDebugMessages = phantom.printDebugMessages();
qInstallMsgHandler(Utils::messageHandler);

#ifdef STATIC_BUILD
Q_INIT_RESOURCE(WebKit);
Q_INIT_RESOURCE(InspectorBackendStub);
#endif

app.setWindowIcon(QIcon(":/phantomjs-icon.png"));
app.setApplicationName("PhantomJS");
app.setOrganizationName("Ofi Labs");
Expand Down
7 changes: 3 additions & 4 deletions src/phantomjs.pro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ CONFIG += console

DESTDIR = ../bin

RESOURCES = phantomjs.qrc
RESOURCES = phantomjs.qrc \
qt/src/3rdparty/webkit/Source/WebCore/inspector/front-end/WebKit.qrc \
qt/src/3rdparty/webkit/Source/WebCore/generated/InspectorBackendStub.qrc

HEADERS += csconverter.h \
phantom.h \
Expand Down Expand Up @@ -103,6 +105,3 @@ mac {
# Uncomment to build a Mac OS X Universal Binary (i.e. x86 + ppc)
# CONFIG += x86 ppc
}
CONFIG(static) {
DEFINES += STATIC_BUILD
}

0 comments on commit 940e008

Please sign in to comment.