using dub to compile plugins

Codifies a at b.com
Wed Dec 19 17:18:09 UTC 2018


On Wednesday, 19 December 2018 at 16:31:57 UTC, Andre Pany wrote:
> On Wednesday, 19 December 2018 at 14:08:10 UTC, Codifies wrote:
>> On Wednesday, 19 December 2018 at 13:14:20 UTC, Andre Pany 
>> wrote:
>>> On Wednesday, 19 December 2018 at 12:57:14 UTC, Codifies 
>>> wrote:
>>>> [...]
>>>
>>> You can use dub sub packages. Each plugin will be a dub 
>>> package with its own dub descriptor (sdl) file.
>>> For your main dub sdl you set targetType to None.
>>>
>>> Kind regards
>>> Andre
>>
>> how could I have multiple dub files in the same directory for 
>> each plugin ???
>
> You have sub folders in which you create the dub.sdl files. In 
> your main dub.sdl you include these folders as sub packages.
>
> Regarding the automatic logic you ideally want to have: there 
> is the plan to add dub extension plugins. Unfortunately a hero 
> is needed to implement it.
>
> Kind regards
> Andre

I was planning to have all the plugin sources in one directory 
otherwise I'd have loads of folders all over the place...

I think Make is the way forward!


More information about the Digitalmars-d-learn mailing list