dub icon indicating copy to clipboard operation
dub copied to clipboard

[feature request] exclude directories

Open rr0gi opened this issue 3 years ago • 1 comments

there is excludedSourceFiles, but it doesn't work to exclude the directory tree afaics, so it would be nice to have excludedDirectories. Motivation in particular is for the people who use sourcePaths "." to be able to have directories that d compiler will not look at (one particular issue is vendored in c++ code that happens to have files with .o.d extension that naturally trigger ldc parsing errors even though there is no d code in that directory at all).

rr0gi avatar Sep 23 '22 16:09 rr0gi

excludedSourceFiles supports glob matching (see https://docs.webfreak.org/dub-reference/build_settings/#excludedsourcefiles) so you can match *.o.d that should already fix your problem.

Would probably be nice to exclude full directories anyway, especially when with ImportC we could also be passing .c and .h files to the compiler.

WebFreak001 avatar Sep 24 '22 00:09 WebFreak001

deciding not to do this, as excludedSourceFiles with globs can cover this use-case.

WebFreak001 avatar Feb 13 '23 12:02 WebFreak001