forked from qt-creator/qt-creator
- Add writer interface in order to support the current and the new project structure in parallel. Using the new one if qdsVersion is >= 4.5 - Separated templates for the new generator from the old one - Add file name validity check - Generate files in the folder src and cmake if they do not exist yet. Only re-generate files in src/autogen. - Add action to enable or disable the cmake-generator - Add function that checks if a resource file is within the project folder but not part of the project Change-Id: I3d75dbee1043ed28e6126cf0b2c83994cb70ed45 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
26 lines
738 B
C++
26 lines
738 B
C++
// Copyright (C) 2024 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
#pragma once
|
|
|
|
#include "cmakewriter.h"
|
|
|
|
namespace QmlProjectManager {
|
|
|
|
namespace GenerateCmake {
|
|
|
|
class CMakeWriterV1 final : public CMakeWriter
|
|
{
|
|
public:
|
|
CMakeWriterV1(CMakeGenerator *parent);
|
|
|
|
QString sourceDirName() const override;
|
|
void transformNode(NodePtr &node) const override;
|
|
|
|
void writeRootCMakeFile(const NodePtr &node) const override;
|
|
void writeModuleCMakeFile(const NodePtr &node, const NodePtr &root) const override;
|
|
void writeSourceFiles(const NodePtr &node, const NodePtr &root) const override;
|
|
};
|
|
|
|
} // namespace GenerateCmake
|
|
} // namespace QmlProjectManager
|