mirror of
https://github.com/platformio/platformio-core.git
synced 2025-08-02 11:24:27 +02:00
More strictness to default src filter for builder
This commit is contained in:
@@ -335,8 +335,9 @@ be applied in theirs order.
|
|||||||
`GLOB Patterns <http://en.wikipedia.org/wiki/Glob_(programming)>`_ are allowed.
|
`GLOB Patterns <http://en.wikipedia.org/wiki/Glob_(programming)>`_ are allowed.
|
||||||
|
|
||||||
By default, ``src_filter`` is predefined to
|
By default, ``src_filter`` is predefined to
|
||||||
``+<*> -<.git/> -<svn/> -<example*/>``, which means "includes ALL files, then
|
``+<*> -<.git/> -<svn/> -<example/> -<examples/> -<test/> -<tests/>``,
|
||||||
exclude ``.git`` and ``svn`` repository folders and exclude ``examples`` folder.
|
which means "includes ALL files, then
|
||||||
|
exclude ``.git`` and ``svn`` repository folders, ``example`` ... folder.
|
||||||
|
|
||||||
This option can be set by global environment variable
|
This option can be set by global environment variable
|
||||||
:envvar:`PLATFORMIO_SRC_FILTER`.
|
:envvar:`PLATFORMIO_SRC_FILTER`.
|
||||||
|
@@ -27,7 +27,8 @@ from platformio.util import pioversion_to_intstr
|
|||||||
SRC_BUILD_EXT = ["c", "cpp", "S", "spp", "SPP", "sx", "s", "asm", "ASM"]
|
SRC_BUILD_EXT = ["c", "cpp", "S", "spp", "SPP", "sx", "s", "asm", "ASM"]
|
||||||
SRC_HEADER_EXT = ["h", "hpp"]
|
SRC_HEADER_EXT = ["h", "hpp"]
|
||||||
SRC_DEFAULT_FILTER = " ".join([
|
SRC_DEFAULT_FILTER = " ".join([
|
||||||
"+<*>", "-<.git%s>" % sep, "-<svn%s>" % sep, "-<example*%s>" % sep,
|
"+<*>", "-<.git%s>" % sep, "-<svn%s>" % sep,
|
||||||
|
"-<example%s>" % sep, "-<examples%s>" % sep,
|
||||||
"-<test%s>" % sep, "-<tests%s>" % sep
|
"-<test%s>" % sep, "-<tests%s>" % sep
|
||||||
])
|
])
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user