Setup LD_LIBRARY_PATH variable for autotest runner.
This commit is contained in:
parent
325d74bee4
commit
22972b8830
|
@ -86,4 +86,17 @@ CppApplication {
|
|||
qbs.install: true
|
||||
qbs.installDir: buildconfig.installBinaryPath
|
||||
}
|
||||
|
||||
Group {
|
||||
name: "Precompiled headers"
|
||||
condition: buildconfig.enablePCH
|
||||
prefix: product.sourceDirectory + "/"
|
||||
files: {
|
||||
var files = ["stable.h"];
|
||||
if (qbs.toolchain.contains("msvc"))
|
||||
files.push("stable.cpp")
|
||||
return files;
|
||||
}
|
||||
fileTags: ["cpp_pch_src"]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,4 +31,17 @@ Library {
|
|||
cpp.minimumMacosVersion: buildconfig.minimumMacosVersion
|
||||
bundle.isBundle: buildconfig.frameworksBuild
|
||||
}
|
||||
|
||||
Group {
|
||||
name: "Precompiled headers"
|
||||
condition: buildconfig.enablePCH
|
||||
prefix: product.sourceDirectory + "/"
|
||||
files: {
|
||||
var files = ["stable.h"];
|
||||
if (qbs.toolchain.contains("msvc"))
|
||||
files.push("stable.cpp")
|
||||
return files;
|
||||
}
|
||||
fileTags: ["cpp_pch_src"]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -865,17 +865,4 @@ Module {
|
|||
}
|
||||
|
||||
vcs2.headerFileName: "vcsRepoState.h"
|
||||
|
||||
Group {
|
||||
name: "Precompiled headers"
|
||||
condition: buildconfig.enablePCH
|
||||
prefix: product.sourceDirectory + "/"
|
||||
files: {
|
||||
var files = ["stable.h"];
|
||||
if (qbs.toolchain.contains("msvc"))
|
||||
files.push("stable.cpp")
|
||||
return files;
|
||||
}
|
||||
fileTags: ["cpp_pch_src"]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,5 +25,16 @@ Project {
|
|||
]
|
||||
qbsSearchPaths: "qbs"
|
||||
|
||||
AutotestRunner {}
|
||||
AutotestRunner {
|
||||
Depends { name: "buildconfig" }
|
||||
|
||||
environment: {
|
||||
var env = base;
|
||||
|
||||
if (qbs.targetOS.contains("unix") && !qbs.targetOS.contains("macos")) {
|
||||
env.push("LD_LIBRARY_PATH=" + qbs.installRoot + qbs.installPrefix + "/" + buildconfig.libDirName + "/valentina");
|
||||
}
|
||||
return env;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user