www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Dub subPackage buildType and output file name

reply "Stefan Frijters" <sfrijters gmail.com> writes:
Currently I'm using dub for the first time and I've run into two 
problems so far.

1) I have defined buildTypes in dub.json, as well as subPackages. 
However, I want to always build all subPackages in release mode, 
regardless of the --build option I'm using to build the main 
program. I'm not clear if it's possible to do this, and if so, 
how to specify this.

2) I would like the file name of my final executable to depend on 
my chosen --build and --config options (i.e. 
<myexecutable>-<build>-<config>). Is this possible to do?

Kind regards,

Stefan
Jan 23 2015
next sibling parent "Maeriden" <maeriden gmail.com> writes:
On Friday, 23 January 2015 at 15:45:22 UTC, Stefan Frijters wrote:
 1) I have defined buildTypes in dub.json, as well as 
 subPackages. However, I want to always build all subPackages in 
 release mode, regardless of the --build option I'm using to 
 build the main program. I'm not clear if it's possible to do 
 this, and if so, how to specify this.
The 'subConfigurations' option could be what you're looking for.
 2) I would like the file name of my final executable to depend 
 on my chosen --build and --config options (i.e. 
 <myexecutable>-<build>-<config>). Is this possible to do?
Not AFAIK, but don't quote me on that.
Jan 24 2015
prev sibling parent =?iso-8859-1?Q?Robert_M._M=FCnch?= <robert.muench saphirion.com> writes:
On 2015-01-23 15:45:21 +0000, Stefan Frijters said:

 Currently I'm using dub for the first time and I've run into two 
 problems so far.
 
 2) I would like the file name of my final executable to depend on my 
 chosen --build and --config options (i.e. 
 <myexecutable>-<build>-<config>). Is this possible to do?
Pretty old question but I'm wondering if this has been implemented in the meantime? -- Robert M. Münch http://www.saphirion.com smarter | better | faster
May 11 2019