www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - dub configuration for external dependencies

reply Shammah Chancellor <email domain.com> writes:
I'm not sure where the appropriate place to ask about dub is.  There 
doesn't seem to be a newsgroup for it?

Anyways,  I am wondering what the proper way to deal with external 
non-D dependencies is.   For example, libd-llvm uses a lot of libraries 
from LLVM whose library path changes from machine to machine, and some 
of the list of 30 libraries changes as well.   They have a nice 
configuration tool llvm-config which emits ldflags which are very nice 
to use from makefiles but I don't see any way to obtain this 
information from within the dub.json.

Do I essentially need to make an autotools-esque script to generate the 
dub.json?  That seems to be at odds with the ability to register 
packages.

-S
Oct 15 2014
parent "Gary Willoughby" <dev nomad.so> writes:
On Wednesday, 15 October 2014 at 12:26:14 UTC, Shammah Chancellor 
wrote:
 I'm not sure where the appropriate place to ask about dub is.  
 There doesn't seem to be a newsgroup for it?

 Anyways,  I am wondering what the proper way to deal with 
 external non-D dependencies is.   For example, libd-llvm uses a 
 lot of libraries from LLVM whose library path changes from 
 machine to machine, and some of the list of 30 libraries 
 changes as well.   They have a nice configuration tool 
 llvm-config which emits ldflags which are very nice to use from 
 makefiles but I don't see any way to obtain this information 
 from within the dub.json.

 Do I essentially need to make an autotools-esque script to 
 generate the dub.json?  That seems to be at odds with the 
 ability to register packages.

 -S
I'm not sure what the answer is but there is an official forum which might yield some useful information. http://forum.rejectedsoftware.com/groups/rejectedsoftware.dub/
Oct 15 2014