plugin.qbs 934 Bytes
Newer Older
1 2
import qbs
import qbs.FileInfo
3
import QtcFunctions
4 5 6 7 8 9

DynamicLibrary {
    Depends { name: "Aggregation" }
    Depends { name: "ExtensionSystem" }
    Depends { name: "cpp" }
    Depends { name: "Qt.core" }
10
    Depends { name: "copyable_resource" }
11
    targetName: QtcFunctions.qtLibraryName(qbs, name.split('_')[1])
Christian Kandeler's avatar
Christian Kandeler committed
12 13
    destinationDirectory: project.buildDirectory + '/'
                          + FileInfo.relativePath(project.ide_source_tree, sourceDirectory)
14
    cpp.rpaths: [
Christian Kandeler's avatar
Christian Kandeler committed
15 16
        project.buildDirectory + "/" + project.libDirName + "/qtcreator",
        project.buildDirectory + "/" + project.libDirName + "/qtcreator/plugins"
17 18 19
    ].concat(additionalRPaths)
    property pathList filesToCopy
    property pathList additionalRPaths: []
20 21 22 23 24
    Group {
        name: "resources"
        fileTags: "copyable_resource"
        copyable_resource.targetDirectory: product.destinationDirectory
        files: product.filesToCopy
25 26
    }
}