aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/generator/visualstudio/solution/visualstudiosolutionglobalsection.cpp
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2017-12-27 00:16:48 -0800
committerIvan Komissarov <ABBAPOH@gmail.com>2020-04-17 14:48:32 +0000
commit38ba93338244bde2d77f039953b64f767723e361 (patch)
tree11a1eb16a5bbb5ce897bc0d19a22900312cde9ed /src/plugins/generator/visualstudio/solution/visualstudiosolutionglobalsection.cpp
parent072291a5282c5dd2c1eebe2e8932d831bbbb3b43 (diff)
Move some Visual Studio generator parts into libqbsmsbuild
This static library contains the MSBuild and Visual Studio solution object model classes and serialization code, without any qbs project model specifics. The latter goes into the generator plugin itself. The Xcode generator will follow the same separation of concerns design when it is introduced. Change-Id: I0a7aca2457c7b7474e0a0a127a3ce5fbec7682f6 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/generator/visualstudio/solution/visualstudiosolutionglobalsection.cpp')
-rw-r--r--src/plugins/generator/visualstudio/solution/visualstudiosolutionglobalsection.cpp86
1 files changed, 0 insertions, 86 deletions
diff --git a/src/plugins/generator/visualstudio/solution/visualstudiosolutionglobalsection.cpp b/src/plugins/generator/visualstudio/solution/visualstudiosolutionglobalsection.cpp
deleted file mode 100644
index 5cbb0cd61..000000000
--- a/src/plugins/generator/visualstudio/solution/visualstudiosolutionglobalsection.cpp
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing
-**
-** This file is part of Qbs.
-**
-** 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 http://www.qt.io/terms-conditions. For further information
-** use the contact form at http://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 2.1 or version 3 as published by the Free
-** Software Foundation and appearing in the file LICENSE.LGPLv21 and
-** LICENSE.LGPLv3 included in the packaging of this file. Please review the
-** following information to ensure the GNU Lesser General Public License
-** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, The Qt Company gives you certain additional
-** rights. These rights are described in The Qt Company LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-****************************************************************************/
-
-#include "visualstudiosolutionglobalsection.h"
-
-#include <utility>
-#include <vector>
-
-namespace qbs {
-
-class VisualStudioSolutionGlobalSectionPrivate
-{
-public:
- QString name;
- std::vector<std::pair<QString, QString>> properties;
- bool post = false;
-};
-
-VisualStudioSolutionGlobalSection::VisualStudioSolutionGlobalSection(const QString &name,
- QObject *parent)
- : QObject(parent)
- , d(new VisualStudioSolutionGlobalSectionPrivate)
-{
- setName(name);
-}
-
-VisualStudioSolutionGlobalSection::~VisualStudioSolutionGlobalSection() = default;
-
-QString VisualStudioSolutionGlobalSection::name() const
-{
- return d->name;
-}
-
-void VisualStudioSolutionGlobalSection::setName(const QString &name)
-{
- d->name = name;
-}
-
-bool VisualStudioSolutionGlobalSection::isPost() const
-{
- return d->post;
-}
-
-void VisualStudioSolutionGlobalSection::setPost(bool post)
-{
- d->post = post;
-}
-
-std::vector<std::pair<QString, QString> > VisualStudioSolutionGlobalSection::properties() const
-{
- return d->properties;
-}
-
-void VisualStudioSolutionGlobalSection::appendProperty(const QString &key, const QString &value)
-{
- d->properties.emplace_back(key, value);
-}
-
-} // namespace qbs