blob: 1b3896865022a2f19f7401b02d1b56682d6f3022 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import qbs
import qbs.FileInfo
QtcProduct {
type: ["application"]
consoleApplication: true
installDir: qtc.ide_libexec_path
installTags: base.concat(["debuginfo_app"])
useNonGuiPchFile: true
cpp.rpaths: {
var relativePathToLibs = FileInfo.relativePath('/' + qtc.ide_libexec_path,
'/' + qtc.ide_library_path);
var relativePathToPlugins = FileInfo.relativePath('/' + qtc.ide_libexec_path,
'/' + qtc.ide_plugin_path);
var prefix = qbs.targetOS.contains("macos") ? "@executable_path" : "$ORIGIN";
return [
FileInfo.joinPaths(prefix, relativePathToLibs),
FileInfo.joinPaths(prefix, relativePathToPlugins)
];
}
}
|