Commit 0cf4f088 authored by Christian Kandeler's avatar Christian Kandeler

Adapt qbs project files to new installation approach.

This need a qbs build >= commit 5cdf94de to work properly.

Change-Id: If86aedf9e3f9d01ad1202e03221e49698d517666
Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@digia.com>
parent ed93b998
import qbs.base 1.0
Product {
type: ["installed_content"]
name: "QtComponents"
Group {
qbs.install: true
qbs.installDir: "lib/qtcreator/qtcomponents/"
fileTags: ["install"]
files: [
"Button.qml",
"ButtonRow.qml",
"CheckBox.qml",
"ChoiceList.qml",
"ContextMenu.qml",
"Dial.qml",
"Frame.qml",
"GroupBox.qml",
"Menu.qml",
"MenuItem.qml",
"ProgressBar.qml",
"RadioButton.qml",
"ScrollArea.qml",
"ScrollBar.qml",
"Slider.qml",
"SpinBox.qml",
"SplitterRow.qml",
"Switch.qml",
"Tab.qml",
"TabBar.qml",
"TabFrame.qml",
"TableColumn.qml",
"TableView.qml",
"TextArea.qml",
"TextField.qml",
"ToolBar.qml",
"ToolButton.qml",
"*.qml",
"qmldir",
]
}
Group {
qbs.installDir: "lib/qtcreator/qtcomponents/custom"
fileTags: ["install"]
prefix: "custom/"
files: [
"BasicButton.qml",
"Button.qml",
"ButtonColumn.qml",
"ButtonGroup.js",
"ButtonRow.qml",
"CheckBox.qml",
"ChoiceList.qml",
"GroupBox.qml",
"ProgressBar.qml",
"Slider.qml",
"SpinBox.qml",
"SplitterRow.qml",
"TextField.qml",
"components.pro",
"qmldir",
]
}
Group {
qbs.installDir: "lib/qtcreator/qtcomponents/custom/behaviors"
fileTags: ["install"]
files: [
"custom/behaviors/ButtonBehavior.qml",
"custom/behaviors/ModalPopupBehavior.qml",
]
}
Group {
qbs.installDir: "lib/qtcreator/qtcomponents/custom/private"
fileTags: ["install"]
files: [
"custom/private/ChoiceListPopup.qml",
]
}
Group {
qbs.installDir: "lib/qtcreator/qtcomponents/images"
fileTags: ["install"]
files: [
"images/folder_new.png",
"custom",
"images"
]
}
}
......@@ -9,27 +9,14 @@ Module {
property int ide_version_minor: project.ide_version_minor
property int ide_version_release: project.ide_version_release
property string qtcreator_version: ide_version_major + '.' + ide_version_minor + '.' + ide_version_release
property string destdir: product.destination
property var pluginspecreplacements: product.pluginspecreplacements
FileTagger {
pattern: "*.in"
fileTags: ["pluginSpecIn"]
}
Rule {
inputs: ["pluginSpecIn"]
Artifact {
fileTags: ["pluginSpec"]
fileName: {
var destdir = input.modules.pluginspec.destdir;
if (!destdir.match(/\/$/))
destdir += "/";
return destdir + input.fileName.replace(/\.[^\.]*$/,'');
}
fileName: input.fileName.replace(/\.[^\.]*$/,'')
}
prepare: {
......
......@@ -136,10 +136,8 @@ Project {
}
}
Product {
Application {
name: "qtcreator"
type: ["application", "installed_content"]
destination: "bin"
consoleApplication: qbs.debugInformation
cpp.rpaths: ["$ORIGIN/../lib/qtcreator"]
......@@ -177,7 +175,7 @@ Project {
Group {
condition: qbs.targetOS == "linux" || qbs.targetOS == "macx"
files: "bin/qtcreator.sh"
fileTags: "install"
qbs.install: true
qbs.installDir: "bin"
}
......@@ -194,6 +192,11 @@ Project {
"src/shared/qtlockedfile/qtlockedfile_win.cpp"
]
}
Group {
fileTagsFilter: product.type
qbs.install: true
qbs.installDir: "bin"
}
}
}
......@@ -4,6 +4,11 @@ Product {
type: "qm"
name: "translations"
Depends { name: "Qt.core" }
destination: "share/qtcreator/translations"
files: "*.ts"
Group {
fileTagsFilter: product.type
qbs.install: true
qbs.installDir: "share/qtcreator/translations"
}
}
import qbs.base 1.0
Product {
type: ["installed_content"]
name: "SharedContent"
Group {
qbs.installDir: "share"
fileTags: ["install"]
files: "qtcreator"
recursive: true
excludeFiles: [
"qtcreator/translations",
"qtcreator/scripts",
"share.pro",
"share.qbs",
"static.pro",
qbs.install: true
qbs.installDir: "share/qtcreator"
prefix: "qtcreator/"
files: [
"designer",
"dumper",
"generic-highlighter",
"glsl",
"qml",
"qmldesigner",
"qmlicons",
"qml-type-descriptions",
"schemes",
"snippets",
"styles",
"templates",
"welcomescreen"
]
}
Group {
fileTags: ["install"]
files: "qtcreator/scripts/openTerminal.command"
}
Group {
qbs.install: true
qbs.installDir: "share/qtcreator/externaltools"
fileTags: ["install"]
prefix: "../src/share/qtcreator/externaltools/"
files: {
var list = [
......
......@@ -15,15 +15,19 @@ DynamicLibrary {
}
cpp.includePaths: [ "." ]
destination: {
if (qbs.targetOS == "windows")
return "bin"
else
return "lib/qtcreator"
}
ProductModule {
Depends { name: "cpp" }
cpp.includePaths: [ "." ]
}
Group {
fileTagsFilter: product.type
qbs.install: true
qbs.installDir: {
if (qbs.targetOS == "windows")
return "bin"
else
return "lib/qtcreator"
}
}
}
......@@ -3,7 +3,6 @@ import "../../../../qbs/defaults.js" as Defaults
DynamicLibrary {
name: "styleplugin"
destination: "lib/qtcreator/qtcomponents/plugin"
Depends { name: "cpp" }
Depends { name: "Qt"; submodules: ["core", "widgets", "declarative", "script"] }
......@@ -29,5 +28,10 @@ DynamicLibrary {
"qwheelarea.cpp",
"qwheelarea.h",
]
}
Group {
fileTagsFilter: product.type
qbs.install: true
qbs.installDir: "lib/qtcreator/qtcomponents/plugin"
}
}
......@@ -6,7 +6,6 @@ Product {
type: ["dynamiclibrary", "pluginSpec"]
property string provider: 'QtProject'
property var pluginspecreplacements
destination: "lib/qtcreator/plugins/" + provider
targetName: {
// see PluginSpecPrivate::loadLibrary()
if (qbs.debugInformation) {
......@@ -40,4 +39,10 @@ Product {
files: [ product.name + ".pluginspec.in" ]
fileTags: ["pluginSpecIn"]
}
Group {
fileTagsFilter: product.type
qbs.install: true
qbs.installDir: "lib/qtcreator/plugins/" + provider
}
}
......@@ -13,7 +13,7 @@ QtcPlugin {
Depends { name: "Qt"; submodules: ["widgets", "xml", "network"] }
property bool enable: false
property var pluginspecreplacements: ({"ANDROID_EXPERIMENTAL_STR": (enable ? "false": "true")})
pluginspecreplacements: ({"ANDROID_EXPERIMENTAL_STR": (enable ? "false": "true")})
cpp.includePaths: base.concat("../../shared")
......
......@@ -2,54 +2,53 @@ import qbs.base 1.0
Product {
condition: qbs.targetOS == "linux"
type: ["installed_content"]
name: "LogoImages"
Group {
qbs.install: true
qbs.installDir: "share/icons/hicolor/16x16/apps"
fileTags: ["install"]
files: ["16/QtProject-qtcreator.png"]
}
Group {
qbs.install: true
qbs.installDir: "share/icons/hicolor/24x24/apps"
fileTags: ["install"]
files: ["24/QtProject-qtcreator.png"]
}
Group {
qbs.install: true
qbs.installDir: "share/icons/hicolor/32x32/apps"
fileTags: ["install"]
files: ["32/QtProject-qtcreator.png"]
}
Group {
qbs.install: true
qbs.installDir: "share/icons/hicolor/48x48/apps"
fileTags: ["install"]
files: ["48/QtProject-qtcreator.png"]
}
Group {
qbs.install: true
qbs.installDir: "share/icons/hicolor/64x64/apps"
fileTags: ["install"]
files: ["64/QtProject-qtcreator.png"]
}
Group {
qbs.install: true
qbs.installDir: "share/icons/hicolor/128x128/apps"
fileTags: ["install"]
files: ["128/QtProject-qtcreator.png"]
}
Group {
qbs.install: true
qbs.installDir: "share/icons/hicolor/256x256/apps"
fileTags: ["install"]
files: ["256/QtProject-qtcreator.png"]
}
Group {
qbs.install: true
qbs.installDir: "share/icons/hicolor/512x512/apps"
fileTags: ["install"]
files: ["512/QtProject-qtcreator.png"]
}
}
......@@ -5,7 +5,6 @@ import "../../../qbs/defaults.js" as Defaults
QtcPlugin {
name: "Debugger"
type: base.concat(["installed_content"])
Depends { name: "Qt"; submodules: ["widgets", "network", "script"] }
Depends { name: "Core" }
......@@ -29,8 +28,8 @@ QtcPlugin {
Group {
condition: Defaults.testsEnabled(qbs)
qbs.install: true
qbs.installDir: "tests/manual/debugger/simple/"
fileTags: ["install"]
files: ["../../../tests/manual/debugger/simple/simple.pro"]
}
......
......@@ -11,7 +11,7 @@ QtcPlugin {
Depends { name: "Qt"; submodules: ["widgets", "xml", "network"] }
property bool enable: false
property var pluginspecreplacements: ({"UPDATEINFO_EXPERIMENTAL_STR": (enable ? "false": "true")})
pluginspecreplacements: ({"UPDATEINFO_EXPERIMENTAL_STR": (enable ? "false": "true")})
cpp.includePaths: [
"..",
......
......@@ -9,5 +9,9 @@ Application {
return ["-Wl,-s"]
}
destination: "bin"
Group {
fileTagsFilter: product.type
qbs.install: true
qbs.installDir: "bin"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment