Copy pdftops.
This commit is contained in:
parent
0c162dcc0c
commit
d9627416af
|
@ -18,7 +18,7 @@ CppApplication {
|
||||||
install: true
|
install: true
|
||||||
installDir: buildconfig.installAppPath
|
installDir: buildconfig.installAppPath
|
||||||
installDebugInformation: true
|
installDebugInformation: true
|
||||||
type: base.concat("openssl_binFolder")
|
type: base.concat("testSuit")
|
||||||
|
|
||||||
Properties {
|
Properties {
|
||||||
condition: Qt.core.versionMajor >= 5 && Qt.core.versionMinor < 12
|
condition: Qt.core.versionMajor >= 5 && Qt.core.versionMinor < 12
|
||||||
|
@ -30,6 +30,16 @@ CppApplication {
|
||||||
cpp.cxxLanguageVersion: "c++17"
|
cpp.cxxLanguageVersion: "c++17"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Group {
|
||||||
|
condition: qbs.targetOS.contains("windows") && (qbs.architecture.contains("x86_64") || qbs.architecture.contains("x86"))
|
||||||
|
name: "pdftops"
|
||||||
|
prefix: FileInfo.joinPaths(project.sourceDirectory, "dist", "win", FileInfo.pathSeparator())
|
||||||
|
files: ["pdftops.exe"]
|
||||||
|
fileTags: ["pdftops_dist"]
|
||||||
|
qbs.install: true
|
||||||
|
qbs.installDir: buildconfig.installBinaryPath
|
||||||
|
}
|
||||||
|
|
||||||
Group {
|
Group {
|
||||||
condition: qbs.targetOS.contains("windows") && (qbs.architecture.contains("x86_64") || qbs.architecture.contains("x86"))
|
condition: qbs.targetOS.contains("windows") && (qbs.architecture.contains("x86_64") || qbs.architecture.contains("x86"))
|
||||||
name: "openssl"
|
name: "openssl"
|
||||||
|
@ -72,17 +82,22 @@ CppApplication {
|
||||||
|
|
||||||
Rule {
|
Rule {
|
||||||
multiplex: true
|
multiplex: true
|
||||||
|
alwaysRun: true
|
||||||
condition: qbs.targetOS.contains("windows") && (qbs.architecture.contains("x86_64") || qbs.architecture.contains("x86"))
|
condition: qbs.targetOS.contains("windows") && (qbs.architecture.contains("x86_64") || qbs.architecture.contains("x86"))
|
||||||
inputs: ["openssl_dist"]
|
inputs: ["openssl_dist", "pdftops_dist"]
|
||||||
outputFileTags: ["openssl_binFolder"]
|
outputFileTags: ["testSuit"]
|
||||||
outputArtifacts: {
|
outputArtifacts: {
|
||||||
var artifactNames = inputs["openssl_dist"].map(function(file){
|
var artifactNames = inputs["openssl_dist"].map(function(file){
|
||||||
return FileInfo.joinPaths(product.buildDirectory, file.fileName);
|
return FileInfo.joinPaths(product.buildDirectory, file.fileName);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
artifactNames = artifactNames.concat(inputs["pdftops_dist"].map(function(file){
|
||||||
|
return FileInfo.joinPaths(product.buildDirectory, file.fileName);
|
||||||
|
}));
|
||||||
var artifacts = artifactNames.map(function(art){
|
var artifacts = artifactNames.map(function(art){
|
||||||
var a = {
|
var a = {
|
||||||
filePath: art,
|
filePath: art,
|
||||||
fileTags: ["openssl_binFolder"]
|
fileTags: ["testSuit"]
|
||||||
}
|
}
|
||||||
return a;
|
return a;
|
||||||
});
|
});
|
||||||
|
@ -90,13 +105,21 @@ CppApplication {
|
||||||
}
|
}
|
||||||
prepare: {
|
prepare: {
|
||||||
var cmd = new JavaScriptCommand();
|
var cmd = new JavaScriptCommand();
|
||||||
cmd.description = "Copy OpenSSL's dlls for test runs";
|
cmd.description = "Preparing test suit";
|
||||||
cmd.sources = (inputs["openssl_dist"] || [])
|
|
||||||
.map(function(artifact) { return artifact.filePath; });
|
var sources = inputs["openssl_dist"].map(function(artifact) {
|
||||||
cmd.destination = (outputs["openssl_binFolder"] || [])
|
return artifact.filePath;
|
||||||
.map(function(artifact) { return artifact.filePath; });
|
});
|
||||||
|
|
||||||
|
sources = sources.concat(inputs["pdftops_dist"].map(function(artifact) {
|
||||||
|
return artifact.filePath;
|
||||||
|
}));
|
||||||
|
|
||||||
|
cmd.sources = sources;
|
||||||
|
cmd.destination = outputs["testSuit"].map(function(artifact) {
|
||||||
|
return artifact.filePath;
|
||||||
|
});
|
||||||
cmd.sourceCode = function() {
|
cmd.sourceCode = function() {
|
||||||
var i;
|
|
||||||
for (var i in sources) {
|
for (var i in sources) {
|
||||||
File.copy(sources[i], destination[i]);
|
File.copy(sources[i], destination[i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user