QtcTool.qbs 669 Bytes
Newer Older
1
import qbs 1.0
2 3

Application {
4
    type: "application" // no Mac app bundle
5
    Depends { name: "cpp" }
6
    cpp.defines: project.generalDefines
7
    cpp.linkerFlags: {
8
        if (qbs.buildVariant == "release" && (qbs.toolchain.contains("gcc") || qbs.toolchain.contains("mingw")))
9 10 11
            return ["-Wl,-s"]
    }

12 13
    property string toolInstallDir: project.ide_libexec_path

14 15 16 17
    cpp.rpaths: qbs.targetOS.contains("osx")
            ? ["@executable_path/../" + project.ide_library_path]
            : ["$ORIGIN/../" + project.ide_library_path]

18 19 20
    Group {
        fileTagsFilter: product.type
        qbs.install: true
21
        qbs.installDir: toolInstallDir
22
    }
23
}