summaryrefslogtreecommitdiff
path: root/src/script/parser/qscriptlexer.cpp
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-08-07 16:29:20 +0200
committerKent Hansen <khansen@trolltech.com>2009-08-07 16:29:20 +0200
commitecabc077e81288a1c84c694433c49eba34e74775 (patch)
treee71d26e50f4f88ac0682c7cc51bc06f4b2d68908 /src/script/parser/qscriptlexer.cpp
parent5a9d5009aba3ae22763e743e1a531d9805f545fd (diff)
downloadqt4-tools-ecabc077e81288a1c84c694433c49eba34e74775.tar.gz
add configure options for (not) building the QtScript module
-script (default) and -no-script. This means we can get rid of the SCRIPT feature from qfeatures, since it's now handled by the new configure variable. It also allows us to get rid of all the QT_NO_SCRIPT ifdefs from the source files, since qmake isn't going to include those files for compilation when you configure with -no-script. The QtScriptTools module will be disabled if the QtScript module is not built. You'll have to build the old QtScript back-end (will be made available in a separate package), then build the QtScriptTools module yourself. Reviewed-by: Simon Hausmann
Diffstat (limited to 'src/script/parser/qscriptlexer.cpp')
-rw-r--r--src/script/parser/qscriptlexer.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/script/parser/qscriptlexer.cpp b/src/script/parser/qscriptlexer.cpp
index 04a3ac3940..cac8c17ba1 100644
--- a/src/script/parser/qscriptlexer.cpp
+++ b/src/script/parser/qscriptlexer.cpp
@@ -41,8 +41,6 @@
#include "qscriptlexer_p.h"
-#ifndef QT_NO_SCRIPT
-
#include "qscriptgrammar_p.h"
#include <ctype.h>
#include <stdlib.h>
@@ -1111,5 +1109,3 @@ void QScript::Lexer::syncProhibitAutomaticSemicolon()
}
QT_END_NAMESPACE
-
-#endif // QT_NO_SCRIPT