how to specify a default configuration in a library's dub.json? (i.e if the use doesn't not have subConfigurations)
mw
mingwu at gmail.com
Wed May 26 00:29:29 UTC 2021
On Wednesday, 26 May 2021 at 00:25:17 UTC, Mike Parker wrote:
> On Wednesday, 26 May 2021 at 00:19:23 UTC, mw wrote:
>> Hi,
>>
>> I just did a build fix, and added two configurations to
>> thrift's dub.json (whose "targetType": "library")
>>
>> https://github.com/apache/thrift/pull/2397/files
>>
>> I want to know how to specify a default configuration in the
>> library's dub.json? (i.e if the use doesn't not have
>> subConfigurations).
>>
>> Then the existing library user does not have to change his
>> app's dub.json when he do `dub upgrade`.
>>
>> Thanks.
>
> The first configuration in the file is the default.
OK, that's great.
Just find it here (for future reference):
https://dub.pm/package-format-json.html#configurations
By default, the first configuration that matches the target type
and build platform is selected automatically.
More information about the Digitalmars-d-learn
mailing list