digitalmars.D.learn - dub build to generate different kinds of libs
- jeff thompson (9/9) Jul 28 2020 Hello
- jeff thompson (3/3) Jul 28 2020 I saw this
- Steven Schveighoffer (6/13) Jul 28 2020 Yes, just do that (make multiple configurations)
- jeff thompson (5/19) Jul 28 2020 Thanks Steve!, ya i know i can call build twice but i was
- Andre Pany (8/31) Jul 29 2020 As far as I remember if you set the targetType of the main
- jeff thompson (5/20) Jul 29 2020 Awesome, cant wait to get that ability, as far as my issue i was
- Andre Pany (5/28) Jul 29 2020 Here the example from the dub repository
- jeff thompson (3/17) Jul 28 2020 I got it figured out, thank you
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. Thanks J
Jul 28 2020
I saw this https://github.com/dlang/dub/wiki/Cookbook#creating-a-library-package-that-also-comes-with-an-executable But it didnt result in creating both a dll or exe and a .lib
Jul 28 2020
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
Jul 28 2020
On Tuesday, 28 July 2020 at 22:08:14 UTC, Steven Schveighoffer wrote:On 7/28/20 5:50 PM, jeff thompson wrote: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 buildHello 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
Jul 28 2020
On Tuesday, 28 July 2020 at 22:10:58 UTC, jeff thompson wrote:On Tuesday, 28 July 2020 at 22:08:14 UTC, Steven Schveighoffer wrote:As far as I remember if you set the targetType of the main package to none it build all the sub packages in one call. Therefore you have 2 sub packages instead of 2 configurations. But I have to say I have never done it myself, but just saw the pr which should implement this behavior. Kind regards AndreOn 7/28/20 5:50 PM, jeff thompson wrote: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 buildHello 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
Jul 29 2020
On Wednesday, 29 July 2020 at 13:26:45 UTC, Andre Pany wrote:On Tuesday, 28 July 2020 at 22:10:58 UTC, jeff thompson wrote:Awesome, cant wait to get that ability, as far as my issue i was being a D newb and was setting everything up incorrectly. Im all good now. Thanks -JOn Tuesday, 28 July 2020 at 22:08:14 UTC, Steven Schveighoffer wrote:As far as I remember if you set the targetType of the main package to none it build all the sub packages in one call. Therefore you have 2 sub packages instead of 2 configurations. But I have to say I have never done it myself, but just saw the pr which should implement this behavior. Kind regards Andre[...]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
Jul 29 2020
On Wednesday, 29 July 2020 at 17:42:20 UTC, jeff thompson wrote:On Wednesday, 29 July 2020 at 13:26:45 UTC, Andre Pany wrote:Here the example from the dub repository https://github.com/dlang/dub/tree/814b06edb304701a41b97f98973bdae7870d4d8b/test/issue97-targettype-none Kind regards AndreOn Tuesday, 28 July 2020 at 22:10:58 UTC, jeff thompson wrote:Awesome, cant wait to get that ability, as far as my issue i was being a D newb and was setting everything up incorrectly. Im all good now. Thanks -JOn Tuesday, 28 July 2020 at 22:08:14 UTC, Steven Schveighoffer wrote:As far as I remember if you set the targetType of the main package to none it build all the sub packages in one call. Therefore you have 2 sub packages instead of 2 configurations. But I have to say I have never done it myself, but just saw the pr which should implement this behavior. Kind regards Andre[...]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
Jul 29 2020
On Tuesday, 28 July 2020 at 22:08:14 UTC, Steven Schveighoffer wrote:On 7/28/20 5:50 PM, jeff thompson wrote:I got it figured out, thank youHello 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
Jul 28 2020