QtcTool.qbs 738 Bytes
Newer Older
1 2
import qbs
import qbs.FileInfo
3

4
QtcProduct {
5 6
    type: ["application"]
    consoleApplication: true
7
    installDir:  qtc.ide_libexec_path
8

9
    cpp.rpaths: {
10 11 12 13
        var relativePathToLibs = FileInfo.relativePath('/' + qtc.ide_libexec_path,
                                                       '/' + qtc.ide_library_path);
        var relativePathToPlugins = FileInfo.relativePath('/' + qtc.ide_libexec_path,
                                                          '/' + qtc.ide_plugin_path);
14 15 16 17 18 19
        var prefix = qbs.targetOS.contains("osx") ? "@executable_path" : "$ORIGIN";
        return [
            FileInfo.joinPaths(prefix, relativePathToLibs),
            FileInfo.joinPaths(prefix, relativePathToPlugins)
        ];
    }
20
}