diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-08-07 14:29:20 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-08-07 14:29:20 (GMT) |
commit | ecabc077e81288a1c84c694433c49eba34e74775 (patch) | |
tree | e71d26e50f4f88ac0682c7cc51bc06f4b2d68908 /src/script/utils | |
parent | 5a9d5009aba3ae22763e743e1a531d9805f545fd (diff) | |
download | Qt-ecabc077e81288a1c84c694433c49eba34e74775.zip Qt-ecabc077e81288a1c84c694433c49eba34e74775.tar.gz Qt-ecabc077e81288a1c84c694433c49eba34e74775.tar.bz2 |
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/utils')
-rw-r--r-- | src/script/utils/qscriptdate.cpp | 4 | ||||
-rw-r--r-- | src/script/utils/qscriptdate_p.h | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/script/utils/qscriptdate.cpp b/src/script/utils/qscriptdate.cpp index f0b6172..4f235f6 100644 --- a/src/script/utils/qscriptdate.cpp +++ b/src/script/utils/qscriptdate.cpp @@ -41,8 +41,6 @@ #include "qscriptdate_p.h" -#ifndef QT_NO_SCRIPT - #include <QtCore/qnumeric.h> #include <QtCore/qstringlist.h> @@ -383,5 +381,3 @@ QDateTime ToDateTime(qsreal t, Qt::TimeSpec spec) } // namespace QScript QT_END_NAMESPACE - -#endif // QT_NO_SCRIPT diff --git a/src/script/utils/qscriptdate_p.h b/src/script/utils/qscriptdate_p.h index 40edf12..8eb738f 100644 --- a/src/script/utils/qscriptdate_p.h +++ b/src/script/utils/qscriptdate_p.h @@ -55,8 +55,6 @@ #include <QtCore/qdatetime.h> -#ifndef QT_NO_SCRIPT - QT_BEGIN_NAMESPACE typedef double qsreal; @@ -69,6 +67,4 @@ namespace QScript QT_END_NAMESPACE -#endif // QT_NO_SCRIPT - #endif |