Re: [Qbs] Deploying broken symbolic links?

2020-07-18 Thread Richard Weickelt
Hello Heiko,

> Is there any option to tell Qbs not to follow a symbolic link given
> within the "files" list?

This seems to be impossible, probably because Qbs for validity of source
artifacts. But you can write a rule that creates the symlink when building:

Product {
type: original.concat(["symlink"])

Rule {
requiresInputs: false

Artifact {
filePath: "link1.xxx"
fileTags: "symlink"
qbs.installDir: "dir1"
qbs.install: true
}

prepare: {
var cmd = new Command("ln", ["-sf", "destination",
output.filePath]);
cmd.highlight = "filegen";
cmd.description = "creating symbolic link '"
+ output.fileName + "'";
return cmd;
}
}
}

Unfornately a bit verbose though.
___
Qbs mailing list
Qbs@qt-project.org
https://lists.qt-project.org/listinfo/qbs


[Qbs] Deploying broken symbolic links?

2020-07-16 Thread Heiko Nardmann
Hi,

yesterday I have come across a problem with Qbs: I would like Qbs to
deploy (within install-root) a symbolic link. This symbolic link is
intentionally broken as the link target is available only on the target
system - not inside the build environment.

Qbs does not like that broken link.

Is there any option to tell Qbs not to follow a symbolic link given
within the "files" list?

Thanks!


Kind regards,

  Heiko Nardmann


___
Qbs mailing list
Qbs@qt-project.org
https://lists.qt-project.org/listinfo/qbs