RejectedSoftware Forums

Sign up

How to invoke a dependency?

In a preBuildCommands/postBuildCommands, how do I invoke an application
that was specified as a dependency?

Ie, suppose I have two DUB packages: "MyApp" and "SomeTool", where
"SomeTool" is specified as a dependency of "MyApp". To build "MyApp", I
first need "SomeTool" to be built and then invoked. Note also that
"SomeTool" doesn't already exist on the user's PATH.

Re: How to invoke a dependency?

On Fri, 19 Apr 2013 13:04:05 -0400, Nick Sabalausky wrote:

In a preBuildCommands/postBuildCommands, how do I invoke an application
that was specified as a dependency?

Ie, suppose I have two DUB packages: "MyApp" and "SomeTool", where
"SomeTool" is specified as a dependency of "MyApp". To build "MyApp", I
first need "SomeTool" to be built and then invoked. Note also that
"SomeTool" doesn't already exist on the user's PATH.

That is currently not possible. I just started a patch to fix this,
unfortunately it is not that easy because currently dub does not build
dependencies at all. (All dependencies are treated as source libraries)

I am going to fix this, but it is going to take some time.