dub subpckages and how to depend on them internally

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Thu May 31 20:01:43 UTC 2018


On Thursday, 31 May 2018 at 17:56:57 UTC, aliak wrote:
> On Thursday, 31 May 2018 at 13:54:07 UTC, Jesse Phillips wrote:
>> On Tuesday, 29 May 2018 at 23:41:59 UTC, aliak wrote:
>>> Hi, I'm trying to get dub working with subpackages and I just 
>>> can't quite seem to hit the nail on the head. Any help would 
>>> be greatly appreciated.
>>
>> Move your sub packages out of source. And each package will 
>> have it's own src folder, which you may have.
>
> Do you mean dub can't have source folder as a top level source 
> directory if you use subpackages?
>
> So do I have to do this?
>
> root
>  |-- sub1/source
>  |-- sub2/source

Do that.

You can have a top level source folder, but this is going to be 
code separate from your subpackage. The subpackage can depend on 
this top-level project, or the top-level project can depend on 
the subpackage.


More information about the Digitalmars-d mailing list