From ad9722bb8cec9d1d91b348d73caa4ba65ac43034 Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Tue, 16 Jun 2009 13:36:33 +0200 Subject: add defines to help stuff link, add README --- README | 21 +++++++++++++++++++++ src/debuggerengine.pri | 1 + src/remotetargetdebugger.pri | 1 + 3 files changed, 23 insertions(+) create mode 100644 README diff --git a/README b/README new file mode 100644 index 0000000..bade68a --- /dev/null +++ b/README @@ -0,0 +1,21 @@ +Classes and tools for remote QtScript debugging + +This project needs to be compiled against the qt/master sources: +http://qt.gitorious.org/qt/qt + +The classes need some symbols that are not exported by default from the +QtScriptTools module in Qt. In order to export the necessary symbols, define +QT_BUILD_INTERNAL before building QtScriptTools, for example by adding the +following line to $QTDIR/src/scripttools/scripttools.pro: + +DEFINES += QT_BUILD_INTERNAL + +After QtScriptTools is built in this fashion, you should be able to run +qmake && make in this project's top-level folder and everything should +build and link. If you get a compile error saying that it can't find +private/* headers, you're not compiling against the Qt _sources_ (you can't +compile against an _installed_ Qt because private headers are not installed). + +An example debuggable application is provided in examples/debuggee. +An example debugger is provided in examples/debugger. +To try them, first start examples/debuggee, then start examples/debugger. diff --git a/src/debuggerengine.pri b/src/debuggerengine.pri index f2c6139..6753f5e 100644 --- a/src/debuggerengine.pri +++ b/src/debuggerengine.pri @@ -2,3 +2,4 @@ INCLUDEPATH += $$PWD DEPENDPATH += $$PWD SOURCES += $$PWD/qscriptdebuggerengine.cpp $$PWD/qscriptdebuggermetatypes.cpp HEADERS += $$PWD/qscriptdebuggerengine.h +DEFINES += QT_BUILD_INTERNAL diff --git a/src/remotetargetdebugger.pri b/src/remotetargetdebugger.pri index 5aade7e..cc37013 100644 --- a/src/remotetargetdebugger.pri +++ b/src/remotetargetdebugger.pri @@ -2,3 +2,4 @@ INCLUDEPATH += $$PWD DEPENDPATH += $$PWD SOURCES += $$PWD/qscriptremotetargetdebugger.cpp $$PWD/qscriptdebuggermetatypes.cpp HEADERS += $$PWD/qscriptremotetargetdebugger.h +DEFINES += QT_BUILD_INTERNAL -- cgit v1.2.3