2013-08-26 17:50:02 +02:00
|
|
|
import qbs
|
|
|
|
|
import qbs.FileInfo
|
|
|
|
|
import "./copytransformer.qbs" as CopyTransformer
|
2013-10-02 17:52:45 +02:00
|
|
|
import QtcFunctions
|
2013-08-26 17:50:02 +02:00
|
|
|
|
|
|
|
|
DynamicLibrary {
|
|
|
|
|
Depends { name: "Aggregation" }
|
|
|
|
|
Depends { name: "ExtensionSystem" }
|
|
|
|
|
Depends { name: "cpp" }
|
|
|
|
|
Depends { name: "Qt.core" }
|
2013-09-18 18:05:41 +02:00
|
|
|
targetName: QtcFunctions.qtLibraryName(qbs, name.split('_')[1])
|
2014-07-16 13:34:55 +02:00
|
|
|
destinationDirectory: project.buildDirectory + '/'
|
|
|
|
|
+ FileInfo.relativePath(project.ide_source_tree, sourceDirectory)
|
2013-08-26 17:50:02 +02:00
|
|
|
cpp.rpaths: [
|
2014-07-16 13:34:55 +02:00
|
|
|
project.buildDirectory + "/" + project.libDirName + "/qtcreator",
|
|
|
|
|
project.buildDirectory + "/" + project.libDirName + "/qtcreator/plugins"
|
2013-08-26 17:50:02 +02:00
|
|
|
].concat(additionalRPaths)
|
|
|
|
|
property pathList filesToCopy
|
|
|
|
|
property pathList additionalRPaths: []
|
|
|
|
|
CopyTransformer {
|
|
|
|
|
sourceFiles: product.filesToCopy
|
|
|
|
|
targetDirectory: product.destinationDirectory
|
|
|
|
|
}
|
|
|
|
|
}
|