2014-03-11 11:30:14 +01:00
|
|
|
import qbs 1.0
|
2018-02-01 14:38:39 +01:00
|
|
|
import qbs.File
|
2013-09-18 18:03:01 +02:00
|
|
|
import qbs.FileInfo
|
2013-01-30 18:19:31 +01:00
|
|
|
|
|
|
|
|
QtcPlugin {
|
|
|
|
|
name: "QbsProjectManager"
|
2018-02-01 14:38:39 +01:00
|
|
|
type: base.concat(["qmltype-update"])
|
2013-01-30 18:19:31 +01:00
|
|
|
|
2019-06-28 14:30:32 +02:00
|
|
|
Depends { name: "Qt"; submodules: [ "qml", "widgets" ] }
|
2013-01-30 18:19:31 +01:00
|
|
|
|
2014-02-10 13:02:33 +01:00
|
|
|
Depends { name: "QmlJS" }
|
|
|
|
|
Depends { name: "Utils" }
|
|
|
|
|
|
|
|
|
|
Depends { name: "ProjectExplorer" }
|
|
|
|
|
Depends { name: "Core" }
|
|
|
|
|
Depends { name: "CppTools" }
|
|
|
|
|
Depends { name: "QtSupport" }
|
|
|
|
|
Depends { name: "QmlJSTools" }
|
2017-09-06 13:10:30 +02:00
|
|
|
Depends { name: "app_version_header" }
|
2013-01-30 18:19:31 +01:00
|
|
|
|
|
|
|
|
files: [
|
2014-10-31 14:51:55 +01:00
|
|
|
"customqbspropertiesdialog.h",
|
|
|
|
|
"customqbspropertiesdialog.cpp",
|
|
|
|
|
"customqbspropertiesdialog.ui",
|
2013-07-19 12:02:47 +02:00
|
|
|
"defaultpropertyprovider.cpp",
|
|
|
|
|
"defaultpropertyprovider.h",
|
2013-07-11 17:14:24 +02:00
|
|
|
"propertyprovider.h",
|
2013-01-30 18:19:31 +01:00
|
|
|
"qbsbuildconfiguration.cpp",
|
|
|
|
|
"qbsbuildconfiguration.h",
|
|
|
|
|
"qbsbuildstep.cpp",
|
|
|
|
|
"qbsbuildstep.h",
|
|
|
|
|
"qbscleanstep.cpp",
|
|
|
|
|
"qbscleanstep.h",
|
|
|
|
|
"qbscleanstepconfigwidget.ui",
|
2017-05-04 12:16:38 +02:00
|
|
|
"qbsinstallstep.cpp",
|
|
|
|
|
"qbsinstallstep.h",
|
2017-06-16 15:57:56 +02:00
|
|
|
"qbskitinformation.cpp",
|
|
|
|
|
"qbskitinformation.h",
|
2013-01-30 18:19:31 +01:00
|
|
|
"qbsnodes.cpp",
|
|
|
|
|
"qbsnodes.h",
|
2017-02-17 13:17:31 +01:00
|
|
|
"qbsnodetreebuilder.cpp",
|
|
|
|
|
"qbsnodetreebuilder.h",
|
2016-03-11 11:21:11 +01:00
|
|
|
"qbspmlogging.cpp",
|
|
|
|
|
"qbspmlogging.h",
|
2019-06-28 14:30:32 +02:00
|
|
|
"qbsprofilemanager.cpp",
|
|
|
|
|
"qbsprofilemanager.h",
|
2014-10-31 14:51:55 +01:00
|
|
|
"qbsprofilessettingspage.cpp",
|
|
|
|
|
"qbsprofilessettingspage.h",
|
|
|
|
|
"qbsprofilessettingswidget.ui",
|
2013-01-30 18:19:31 +01:00
|
|
|
"qbsproject.cpp",
|
|
|
|
|
"qbsproject.h",
|
2017-06-07 18:35:51 +02:00
|
|
|
"qbsprojectimporter.cpp",
|
|
|
|
|
"qbsprojectimporter.h",
|
2014-10-31 14:51:55 +01:00
|
|
|
"qbsprojectmanager.qrc",
|
2013-01-30 18:19:31 +01:00
|
|
|
"qbsprojectmanager_global.h",
|
|
|
|
|
"qbsprojectmanagerconstants.h",
|
|
|
|
|
"qbsprojectmanagerplugin.cpp",
|
|
|
|
|
"qbsprojectmanagerplugin.h",
|
2014-06-16 14:42:21 +02:00
|
|
|
"qbsprojectparser.cpp",
|
|
|
|
|
"qbsprojectparser.h",
|
2019-06-28 14:30:32 +02:00
|
|
|
"qbssession.cpp",
|
|
|
|
|
"qbssession.h",
|
|
|
|
|
"qbssettings.cpp",
|
|
|
|
|
"qbssettings.h",
|
2013-01-30 18:19:31 +01:00
|
|
|
]
|
2018-02-01 14:38:39 +01:00
|
|
|
|
|
|
|
|
// QML typeinfo stuff
|
|
|
|
|
Group {
|
|
|
|
|
name: "qbs qml type info"
|
|
|
|
|
qbs.install: true
|
|
|
|
|
qbs.installDir: FileInfo.joinPaths(qtc.ide_data_path, "qtcreator",
|
|
|
|
|
"qml-type-descriptions")
|
|
|
|
|
prefix: FileInfo.joinPaths(project.ide_source_tree, "share", "qtcreator",
|
|
|
|
|
"qml-type-descriptions") + '/'
|
|
|
|
|
files: [
|
|
|
|
|
"qbs-bundle.json",
|
|
|
|
|
"qbs.qmltypes",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-06-28 14:30:32 +02:00
|
|
|
Depends { name: "qbs resources"; condition: project.qbsSubModuleExists }
|
2018-02-01 14:38:39 +01:00
|
|
|
Rule {
|
2019-06-28 14:30:32 +02:00
|
|
|
condition: project.qbsSubModuleExists
|
2018-02-01 14:38:39 +01:00
|
|
|
inputsFromDependencies: ["qbs qml type descriptions", "qbs qml type bundle"]
|
|
|
|
|
Artifact {
|
|
|
|
|
filePath: "dummy." + input.fileName
|
|
|
|
|
fileTags: ["qmltype-update"]
|
|
|
|
|
}
|
|
|
|
|
prepare: {
|
|
|
|
|
var cmd = new JavaScriptCommand();
|
|
|
|
|
cmd.description = "Updating " + input.fileName + " in Qt Creator repository";
|
|
|
|
|
cmd.sourceCode = function() {
|
|
|
|
|
var targetFilePath = FileInfo.joinPaths(project.ide_source_tree, "share",
|
|
|
|
|
"qtcreator", "qml-type-descriptions",
|
|
|
|
|
input.fileName);
|
|
|
|
|
File.copy(input.filePath, targetFilePath);
|
|
|
|
|
}
|
|
|
|
|
return cmd;
|
|
|
|
|
}
|
|
|
|
|
}
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
|