dub: excluding some source files from build

Andre Pany andre at s-e-a-p.de
Fri Apr 5 16:08:20 UTC 2019


On Friday, 5 April 2019 at 15:47:06 UTC, 0xFFFFFFFF wrote:
> On Friday, 5 April 2019 at 15:43:58 UTC, Dennis wrote:
>> On Friday, 5 April 2019 at 15:37:17 UTC, 0xFFFFFFFF wrote:
>>> I tried "excludeSourceFiles" : ["tmp.d"], but it seems not to 
>>> work.
>>
>>
>> You need to include the folder as well:
>> "excludeSourceFiles" : ["source/tmp.d"]
>
> Thanks, but I've done that also it seem not to work.
>
> DUB version 1.14.0, built on Mar  2 2019.

I use this feature for multiple projects on all major platforms. 
In general it should work. Could you post a more complete example 
then it would be easy to help you. (Dub.json, folder structure)

Kind regards
Andre


More information about the Digitalmars-d mailing list