QtcLibrary.qbs 364 Bytes
Newer Older
1 2 3
import qbs.base 1.0

DynamicLibrary {
4 5 6 7 8 9
    Depends { name: "cpp" }
    cpp.linkerFlags: {
        if (qbs.buildVariant == "release" && (qbs.toolchain == "gcc" || qbs.toolchain == "mingw"))
            return ["-Wl,-s"]
    }

10
    destination: {
Yuchen Deng's avatar
Yuchen Deng committed
11
        if (qbs.targetOS == "windows")
12 13
            return "bin"
        else
14
            return "lib/qtcreator"
15 16
    }
}