forked from qt-creator/qt-creator
QmlProjectManager: Generate file to define the default build path
when opening the root CMakeLists.txt with QtCreator Change-Id: Ia448dab1b3161471fe2bb7870ffb79e68dd579fc Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
<file alias="environment_h">templates/environment_h.tpl</file>
|
<file alias="environment_h">templates/environment_h.tpl</file>
|
||||||
<file alias="import_qml_components_h">templates/import_qml_components_h.tpl</file>
|
<file alias="import_qml_components_h">templates/import_qml_components_h.tpl</file>
|
||||||
<file alias="qtquickcontrols_conf">templates/qtquickcontrols2_conf.tpl</file>
|
<file alias="qtquickcontrols_conf">templates/qtquickcontrols2_conf.tpl</file>
|
||||||
|
<file alias="cmake_shared">templates/cmakelists_txt_shared.tpl</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
|
|
||||||
<qresource prefix="/boilerplatetemplates">
|
<qresource prefix="/boilerplatetemplates">
|
||||||
|
@@ -70,6 +70,10 @@ void CMakeWriterV1::writeRootCMakeFile(const NodePtr &node) const
|
|||||||
const QString fileContent = fileTemplate.arg(appName, fileSection);
|
const QString fileContent = fileTemplate.arg(appName, fileSection);
|
||||||
writeFile(file, fileContent);
|
writeFile(file, fileContent);
|
||||||
|
|
||||||
|
const Utils::FilePath sharedFile = node->dir.pathAppended("CMakeLists.txt.shared");
|
||||||
|
const QString sharedTemplate = readTemplate(":/templates/cmake_shared");
|
||||||
|
writeFile(sharedFile, sharedTemplate);
|
||||||
|
|
||||||
const Utils::FilePath userFile = node->dir.pathAppended("qds.cmake");
|
const Utils::FilePath userFile = node->dir.pathAppended("qds.cmake");
|
||||||
QString userFileContent(DO_NOT_EDIT_FILE);
|
QString userFileContent(DO_NOT_EDIT_FILE);
|
||||||
userFileContent.append(makeSubdirectoriesBlock(node));
|
userFileContent.append(makeSubdirectoriesBlock(node));
|
||||||
|
@@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE QtCreatorProject>
|
||||||
|
<qtcreator>
|
||||||
|
<data>
|
||||||
|
<variable>ProjectExplorer.Project.PluginSettings</variable>
|
||||||
|
<valuemap type="QVariantMap">
|
||||||
|
<valuelist type="QVariantList" key="ProjectExplorer.Project.Environment">
|
||||||
|
<value type="QString">QTC_DEFAULT_BUILD_DIRECTORY_TEMPLATE=../%{Asciify:%{Project:Name}-%{BuildConfig:Name}}</value>
|
||||||
|
</valuelist>
|
||||||
|
</valuemap>
|
||||||
|
</data>
|
||||||
|
<data>
|
||||||
|
<variable>Version</variable>
|
||||||
|
<value type="int">22</value>
|
||||||
|
</data>
|
||||||
|
</qtcreator>
|
Reference in New Issue
Block a user