forked from qt-creator/qt-creator
qbs build: Install debug info alongside binaries
... if separate debug info is enabled. Change-Id: I15a02b11e7df18719074b9bc503fe2c207f8bf00 Reviewed-by: Jake Petroules <jake.petroules@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import qbs 1.0
|
||||
import qbs.FileInfo
|
||||
import QtcFunctions
|
||||
|
||||
QtcProduct {
|
||||
type: ["dynamiclibrary", "dynamiclibrary_symlink", "qtc.dev-module"]
|
||||
installDir: qtc.ide_library_path
|
||||
installTags: ["dynamiclibrary", "dynamiclibrary_symlink"]
|
||||
installTags: ["dynamiclibrary", "dynamiclibrary_symlink", "debuginfo_dll"]
|
||||
useNonGuiPchFile: true
|
||||
Depends {
|
||||
condition: qtc.testsEnabled
|
||||
@@ -12,7 +13,7 @@ QtcProduct {
|
||||
}
|
||||
|
||||
targetName: QtcFunctions.qtLibraryName(qbs, name)
|
||||
destinationDirectory: qtc.ide_library_path
|
||||
destinationDirectory: FileInfo.joinPaths(buildDirectory, qtc.ide_library_path)
|
||||
|
||||
cpp.linkerFlags: {
|
||||
var flags = base;
|
||||
|
||||
@@ -5,7 +5,7 @@ import QtcFunctions
|
||||
QtcProduct {
|
||||
type: ["dynamiclibrary", "pluginSpec", "qtc.dev-module"]
|
||||
installDir: qtc.ide_plugin_path
|
||||
installTags: ["dynamiclibrary"]
|
||||
installTags: ["dynamiclibrary", "debuginfo_dll"]
|
||||
useGuiPchFile: true
|
||||
|
||||
property var pluginJsonReplacements
|
||||
@@ -13,7 +13,7 @@ QtcProduct {
|
||||
property var pluginTestDepends: []
|
||||
|
||||
targetName: QtcFunctions.qtLibraryName(qbs, name)
|
||||
destinationDirectory: qtc.ide_plugin_path
|
||||
destinationDirectory: FileInfo.joinPaths(buildDirectory, qtc.ide_plugin_path)
|
||||
|
||||
Depends { name: "ExtensionSystem" }
|
||||
Depends { name: "pluginjson" }
|
||||
|
||||
@@ -8,7 +8,7 @@ Product {
|
||||
version: qtc.qtcreator_version
|
||||
property bool install: true
|
||||
property string installDir
|
||||
property string installSourceBase
|
||||
property string installSourceBase: destinationDirectory
|
||||
property stringList installTags: type
|
||||
property string fileName: FileInfo.fileName(sourceDirectory) + ".qbs"
|
||||
property bool useNonGuiPchFile: false
|
||||
|
||||
@@ -5,6 +5,7 @@ QtcProduct {
|
||||
type: ["application"]
|
||||
consoleApplication: true
|
||||
installDir: qtc.ide_libexec_path
|
||||
installTags: base.concat(["debuginfo_app"])
|
||||
useNonGuiPchFile: true
|
||||
|
||||
cpp.rpaths: {
|
||||
|
||||
@@ -22,8 +22,7 @@ QtcProduct {
|
||||
|
||||
property bool isBundle: qbs.targetOS.contains("darwin") && bundle.isBundle
|
||||
installDir: isBundle ? qtc.ide_app_path : qtc.ide_bin_path
|
||||
installTags: isBundle ? ["bundle.content"] : base
|
||||
installSourceBase: isBundle ? buildDirectory : base
|
||||
installTags: (isBundle ? ["bundle.content"] : base).concat(["debuginfo_app"])
|
||||
property bool qtcRunnable: true
|
||||
|
||||
cpp.rpaths: qbs.targetOS.contains("macos") ? ["@executable_path/../Frameworks"]
|
||||
|
||||
Reference in New Issue
Block a user