summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@theqtcompany.com>2016-04-12 11:06:17 +0200
committerJarek Kobus <jaroslaw.kobus@theqtcompany.com>2016-04-12 15:07:34 +0000
commit75d4660d89b11a31350eddaa21f1889bd576036c (patch)
tree7df816c59f3c49aa789b4d4484872c7ecac33af7 /tools
parentbf3b9da0270b696617b463ed8bb802d78f748b11 (diff)
Don't include source file in tests/auto/qscxmlc
Change-Id: I920128e27605487e68c72e2f59e1e53144621816 Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/qscxmlc/main.cpp41
-rw-r--r--tools/qscxmlc/qscxmlc.cpp12
-rw-r--r--tools/qscxmlc/qscxmlc.h52
-rw-r--r--tools/qscxmlc/qscxmlc.pro7
4 files changed, 103 insertions, 9 deletions
diff --git a/tools/qscxmlc/main.cpp b/tools/qscxmlc/main.cpp
new file mode 100644
index 0000000..b401af8
--- /dev/null
+++ b/tools/qscxmlc/main.cpp
@@ -0,0 +1,41 @@
+/****************************************************************************
+**
+** Copyright (C) 2016 The Qt Company Ltd.
+** Contact: https://www.qt.io/licensing/
+**
+** This file is part of the QtScxml module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:GPL-EXCEPT$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms
+** and conditions see https://www.qt.io/terms-conditions. For further
+** information use the contact form at https://www.qt.io/contact-us.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3 as published by the Free Software
+** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
+** included in the packaging of this file. Please review the following
+** information to ensure the GNU General Public License requirements will
+** be met: https://www.gnu.org/licenses/gpl-3.0.html.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include <QtScxml/qscxmltabledata.h>
+#include "qscxmlc.h"
+
+#include <QCoreApplication>
+
+int main(int argc, char *argv[])
+{
+ QCoreApplication a(argc, argv);
+ a.setApplicationVersion(QString::fromLatin1("%1 (Qt %2)").arg(
+ QString::number(Q_QSCXMLC_OUTPUT_REVISION),
+ QString::fromLatin1(QT_VERSION_STR)));
+ return run(QCoreApplication::arguments());
+}
diff --git a/tools/qscxmlc/qscxmlc.cpp b/tools/qscxmlc/qscxmlc.cpp
index fe8e40e..c92db22 100644
--- a/tools/qscxmlc/qscxmlc.cpp
+++ b/tools/qscxmlc/qscxmlc.cpp
@@ -29,6 +29,7 @@
#include <QtScxml/private/qscxmlparser_p.h>
#include <QtScxml/qscxmltabledata.h>
#include "scxmlcppdumper.h"
+#include "qscxmlc.h"
#include <QCoreApplication>
#include <QCommandLineParser>
@@ -36,6 +37,8 @@
#include <QFileInfo>
#include <QTextCodec>
+QT_BEGIN_NAMESPACE
+
enum {
NoError = 0,
CommandLineArgumentsError = -1,
@@ -242,11 +245,4 @@ int run(const QStringList &arguments)
return write(&tu);
}
-int main(int argc, char *argv[])
-{
- QCoreApplication a(argc, argv);
- a.setApplicationVersion(QString::fromLatin1("%1 (Qt %2)").arg(
- QString::number(Q_QSCXMLC_OUTPUT_REVISION),
- QString::fromLatin1(QT_VERSION_STR)));
- return run(QCoreApplication::arguments());
-}
+QT_END_NAMESPACE
diff --git a/tools/qscxmlc/qscxmlc.h b/tools/qscxmlc/qscxmlc.h
new file mode 100644
index 0000000..81c2427
--- /dev/null
+++ b/tools/qscxmlc/qscxmlc.h
@@ -0,0 +1,52 @@
+/****************************************************************************
+**
+** Copyright (C) 2016 The Qt Company Ltd.
+** Contact: https://www.qt.io/licensing/
+**
+** This file is part of the QtScxml module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms
+** and conditions see https://www.qt.io/terms-conditions. For further
+** information use the contact form at https://www.qt.io/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 3 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL3 included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 3 requirements
+** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 2.0 or (at your option) the GNU General
+** Public license version 3 or any later version approved by the KDE Free
+** Qt Foundation. The licenses are as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
+** included in the packaging of this file. Please review the following
+** information to ensure the GNU General Public License requirements will
+** be met: https://www.gnu.org/licenses/gpl-2.0.html and
+** https://www.gnu.org/licenses/gpl-3.0.html.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#ifndef QSCXMLC_H
+#define QSCXMLC_H
+
+#include <QtCore/qglobal.h>
+
+QT_BEGIN_NAMESPACE
+class QStringList;
+
+int run(const QStringList &arguments);
+
+QT_END_NAMESPACE
+
+#endif // QSCXMLC_H
diff --git a/tools/qscxmlc/qscxmlc.pro b/tools/qscxmlc/qscxmlc.pro
index a7c3c45..1dd83e2 100644
--- a/tools/qscxmlc/qscxmlc.pro
+++ b/tools/qscxmlc/qscxmlc.pro
@@ -7,12 +7,17 @@ QT = core-private
DEFINES += BUILD_QSCXMLC
SOURCES += \
+ main.cpp \
generator.cpp \
qscxmlc.cpp \
scxmlcppdumper.cpp
HEADERS += \
- moc.h generator.h outputrevision.h utils.h \
+ moc.h \
+ generator.h \
+ outputrevision.h \
+ qscxmlc.h \
+ utils.h \
scxmlcppdumper.h
HEADERS += \