Add configure feature for QCommandLineParser
Change-Id: I78c1159d29e12ad03b9a3c076a40ee533958af8a Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>bb10
parent
93178d26f8
commit
5574a814ff
|
|
@ -570,6 +570,12 @@
|
|||
"purpose": "Provides support for timezone handling.",
|
||||
"section": "Utilities",
|
||||
"output": [ "publicFeature" ]
|
||||
},
|
||||
"commandlineparser": {
|
||||
"label": "QCommandlineParser",
|
||||
"purpose": "Provides support for command line parsing.",
|
||||
"section": "Utilities",
|
||||
"output": [ "publicFeature" ]
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -79,14 +79,16 @@
|
|||
#define QT_NO_GEOM_VARIANT
|
||||
|
||||
#if defined(QT_BUILD_QMAKE) || defined(QT_BUILD_CONFIGURE)
|
||||
#define QT_FEATURE_commandlineparser -1
|
||||
#define QT_NO_COMPRESS
|
||||
#define QT_JSON_READONLY
|
||||
#define QT_NO_TEXTCODEC
|
||||
#define QT_FEATURE_textcodec -1
|
||||
#else
|
||||
#define QT_FEATURE_textcodec 1
|
||||
#define QT_NO_CODECS
|
||||
#define QT_FEATURE_codecs -1
|
||||
#define QT_FEATURE_commandlineparser 1
|
||||
#define QT_FEATURE_textcodec 1
|
||||
#endif
|
||||
|
||||
#if defined(QT_BUILD_QMAKE)
|
||||
|
|
|
|||
|
|
@ -43,6 +43,8 @@
|
|||
#include <QtCore/qstringlist.h>
|
||||
#include <QtCore/qshareddata.h>
|
||||
|
||||
QT_REQUIRE_CONFIG(commandlineparser);
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QCommandLineOptionPrivate;
|
||||
|
|
|
|||
|
|
@ -45,6 +45,8 @@
|
|||
#include <QtCore/qcoreapplication.h>
|
||||
#include <QtCore/qcommandlineoption.h>
|
||||
|
||||
QT_REQUIRE_CONFIG(commandlineparser);
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QCommandLineParserPrivate;
|
||||
|
|
|
|||
|
|
@ -15,8 +15,6 @@ HEADERS += \
|
|||
tools/qbytedata_p.h \
|
||||
tools/qcache.h \
|
||||
tools/qchar.h \
|
||||
tools/qcommandlineoption.h \
|
||||
tools/qcommandlineparser.h \
|
||||
tools/qcollator.h \
|
||||
tools/qcollator_p.h \
|
||||
tools/qcontainerfwd.h \
|
||||
|
|
@ -82,8 +80,6 @@ SOURCES += \
|
|||
tools/qbytearraylist.cpp \
|
||||
tools/qbytearraymatcher.cpp \
|
||||
tools/qcollator.cpp \
|
||||
tools/qcommandlineoption.cpp \
|
||||
tools/qcommandlineparser.cpp \
|
||||
tools/qcryptographichash.cpp \
|
||||
tools/qdatetime.cpp \
|
||||
tools/qdatetimeparser.cpp \
|
||||
|
|
@ -184,6 +180,15 @@ qtConfig(regularexpression) {
|
|||
SOURCES += tools/qregularexpression.cpp
|
||||
}
|
||||
|
||||
qtConfig(commandlineparser) {
|
||||
HEADERS += \
|
||||
tools/qcommandlineoption.h \
|
||||
tools/qcommandlineparser.h
|
||||
SOURCES += \
|
||||
tools/qcommandlineoption.cpp \
|
||||
tools/qcommandlineparser.cpp
|
||||
}
|
||||
|
||||
INCLUDEPATH += ../3rdparty/harfbuzz/src
|
||||
HEADERS += ../3rdparty/harfbuzz/src/harfbuzz.h
|
||||
SOURCES += ../3rdparty/harfbuzz/src/harfbuzz-buffer.c \
|
||||
|
|
|
|||
Loading…
Reference in New Issue