QtcLibrary.qbs 767 Bytes
Newer Older
1
import qbs.base 1.0
2
import "../../qbs/defaults.js" as Defaults
3 4

DynamicLibrary {
5
    Depends { name: "cpp" }
6 7 8 9 10 11
    Depends {
        condition: Defaults.testsEnabled(qbs)
        name: "Qt.test"
    }

    cpp.defines: Defaults.defines(qbs)
12 13 14 15
    cpp.linkerFlags: {
        if (qbs.buildVariant == "release" && (qbs.toolchain == "gcc" || qbs.toolchain == "mingw"))
            return ["-Wl,-s"]
    }
16
    cpp.includePaths: [ ".", ".." ]
17

18
    Export {
19 20 21
        Depends { name: "cpp" }
        cpp.includePaths: [ "." ]
    }
22 23 24 25 26 27 28 29 30 31 32

    Group {
        fileTagsFilter: product.type
        qbs.install: true
        qbs.installDir: {
            if (qbs.targetOS == "windows")
                return "bin"
            else
                return "lib/qtcreator"
        }
    }
33
}