Commit f1da03c7 authored by Christian Kandeler's avatar Christian Kandeler Committed by Joerg Bornemann
Browse files

qbs project files: Make use of new qbsSearchPaths property.



Change-Id: I396d970fafea1fd0b4c4d73883796662a1d0064b
Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@digia.com>
parent b60bbbae
import qbs.base 1.0 import qbs.base 1.0
import "../../qbs/functions.js" as QtcFunctions import QtcFunctions
DynamicLibrary { DynamicLibrary {
Depends { name: "cpp" } Depends { name: "cpp" }
...@@ -22,11 +22,12 @@ DynamicLibrary { ...@@ -22,11 +22,12 @@ DynamicLibrary {
cpp.rpaths: qbs.targetOS.contains("osx") cpp.rpaths: qbs.targetOS.contains("osx")
? ["@loader_path/..", "@executable_path/.."] ? ["@loader_path/..", "@executable_path/.."]
: ["$ORIGIN", "$ORIGIN/.."] : ["$ORIGIN", "$ORIGIN/.."]
cpp.includePaths: [path] property string libIncludeBase: ".." // #include <lib/header.h>
cpp.includePaths: [libIncludeBase]
Export { Export {
Depends { name: "cpp" } Depends { name: "cpp" }
cpp.includePaths: [path] cpp.includePaths: [libIncludeBase]
} }
Group { Group {
......
import qbs.base 1.0 import qbs.base 1.0
import qbs.FileInfo import qbs.FileInfo
import "../../qbs/functions.js" as QtcFunctions import QtcFunctions
Product { Product {
type: ["dynamiclibrary", "pluginSpec"] type: ["dynamiclibrary", "pluginSpec"]
...@@ -33,7 +33,9 @@ Product { ...@@ -33,7 +33,9 @@ Product {
else if (qbs.buildVariant == "debug" && qbs.toolchain.contains("msvc")) else if (qbs.buildVariant == "debug" && qbs.toolchain.contains("msvc"))
return ["/INCREMENTAL:NO"] // Speed up startup time when debugging with cdb return ["/INCREMENTAL:NO"] // Speed up startup time when debugging with cdb
} }
cpp.includePaths: [path]
property string pluginIncludeBase: ".." // #include <plugin/header.h>
cpp.includePaths: [pluginIncludeBase]
Group { Group {
name: "PluginSpec" name: "PluginSpec"
...@@ -55,6 +57,6 @@ Product { ...@@ -55,6 +57,6 @@ Product {
Export { Export {
Depends { name: "ExtensionSystem" } Depends { name: "ExtensionSystem" }
Depends { name: "cpp" } Depends { name: "cpp" }
cpp.includePaths: [path] cpp.includePaths: [pluginIncludeBase]
} }
} }
...@@ -52,7 +52,7 @@ Project { ...@@ -52,7 +52,7 @@ Project {
"QT_NO_CAST_TO_ASCII", "QT_NO_CAST_TO_ASCII",
"QT_NO_CAST_FROM_ASCII" "QT_NO_CAST_FROM_ASCII"
].concat(testsEnabled ? ["WITH_TESTS"] : []) ].concat(testsEnabled ? ["WITH_TESTS"] : [])
moduleSearchPaths: "qbs" qbsSearchPaths: "qbs"
references: [ references: [
"src/src.qbs", "src/src.qbs",
......
import qbs.base 1.0 import qbs.base 1.0
import "../QtcLibrary.qbs" as QtcLibrary import QtcLibrary
QtcLibrary { QtcLibrary {
name: "Aggregation" name: "Aggregation"
......
import qbs.base 1.0 import qbs.base 1.0
import "../QtcLibrary.qbs" as QtcLibrary import QtcLibrary
QtcLibrary { QtcLibrary {
name: "CPlusPlus" name: "CPlusPlus"
......
import qbs.base 1.0 import qbs.base 1.0
import "../QtcLibrary.qbs" as QtcLibrary import QtcLibrary
QtcLibrary { QtcLibrary {
name: "ExtensionSystem" name: "ExtensionSystem"
......
import qbs.base 1.0 import qbs.base 1.0
import "../QtcLibrary.qbs" as QtcLibrary import QtcLibrary
QtcLibrary { QtcLibrary {
name: "GLSL" name: "GLSL"
......
import qbs.base 1.0 import qbs.base 1.0
import "../QtcLibrary.qbs" as QtcLibrary import QtcLibrary
QtcLibrary { QtcLibrary {
name: "LanguageUtils" name: "LanguageUtils"
......
import qbs.base 1.0 import qbs.base 1.0
import "../QtcLibrary.qbs" as QtcLibrary import QtcLibrary
QtcLibrary { QtcLibrary {
name: "QmlDebug" name: "QmlDebug"
......
import qbs.base 1.0 import qbs.base 1.0
import "../QtcLibrary.qbs" as QtcLibrary import QtcLibrary
QtcLibrary { QtcLibrary {
name: "QmlEditorWidgets" name: "QmlEditorWidgets"
......
import qbs.base 1.0 import qbs.base 1.0
import "../QtcLibrary.qbs" as QtcLibrary import QtcLibrary
QtcLibrary { QtcLibrary {
name: "QmlJS" name: "QmlJS"
......
import qbs.base 1.0 import qbs.base 1.0
import "../QtcLibrary.qbs" as QtcLibrary import QtcLibrary
QtcLibrary { QtcLibrary {
name: "QtcSsh" name: "QtcSsh"
......
import qbs.base 1.0 import qbs.base 1.0
import "../../tools/QtcTool.qbs" as QtcTool import QtcTool
QtcTool { QtcTool {
name: "qtcreator_ctrlc_stub" name: "qtcreator_ctrlc_stub"
......
import qbs.base 1.0 import qbs.base 1.0
import "../../tools/QtcTool.qbs" as QtcTool import QtcTool
QtcTool { QtcTool {
name: "qtcreator_process_stub" name: "qtcreator_process_stub"
......
import qbs.base 1.0 import qbs.base 1.0
import "../QtcLibrary.qbs" as QtcLibrary import QtcLibrary
QtcLibrary { QtcLibrary {
name: "Utils" name: "Utils"
......
import qbs.base 1.0 import qbs.base 1.0
import "../QtcLibrary.qbs" as QtcLibrary import QtcLibrary
QtcLibrary { QtcLibrary {
name: "zeroconf" name: "zeroconf"
......
import qbs.base 1.0 import qbs.base 1.0
import "../QtcPlugin.qbs" as QtcPlugin import QtcPlugin
QtcPlugin { QtcPlugin {
name: "AnalyzerBase" name: "AnalyzerBase"
......
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