dub build to generate different kinds of libs

jeff thompson jeff.thompson.sd at gmail.com
Tue Jul 28 22:10:58 UTC 2020

On Tuesday, 28 July 2020 at 22:08:14 UTC, Steven Schveighoffer 
> On 7/28/20 5:50 PM, jeff thompson wrote:
>> Hello
>> Im brand new to D (loving it btw!) and have decided to build a 
>> largish windows project in the language. First question, is 
>> there a dub.json setup to have a dub build to generate 
>> multiple binaries in one call? Like a dll and a static lib. 
>> Seems like it would be easy maybe im missing something 
>> obvious? Like a configuration with multiple targetTypes.
> Yes, just do that (make multiple configurations)
> You just have to build them separately:
> dub build --config=library
> dub build --config=application
> -Steve

Thanks Steve!, ya i know i can call build twice but i was 
wondering if there was any config magic for dub to make it output 
multiple library types in one call to build

More information about the Digitalmars-d-learn mailing list