Setup LD_LIBRARY_PATH variable for autotest runner.

This commit is contained in:
Roman Telezhynskyi 2023-02-16 20:01:38 +02:00
parent 325d74bee4
commit 22972b8830
4 changed files with 38 additions and 14 deletions

View File

@ -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"]
}
}

View File

@ -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"]
}
}

View File

@ -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"]
}
}

View File

@ -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;
}
}
}