Per docs
PATH
is relative to src_dir
So excluding src
by doing -<src>
is not possible since all path exclusions / inclusions are seen as being inside src
already.
I’m sure if you would have the structure
src
source_orig
source_copy
And would do
src_filter = +<*> -<.git/> -<.svn/> -<example/> -<examples/> -<test/> -<tests/> -<source_orig/>
the filter would work to only compile the source_copy
folder.