forked from platformio/platformio-core
Add support for “.*cc” extension // Resolve #939
This commit is contained in:
@ -13,8 +13,10 @@ PlatformIO 3.0
|
|||||||
* Handle dynamic ``SRC_FILTER`` environment variable from
|
* Handle dynamic ``SRC_FILTER`` environment variable from
|
||||||
`library.json extra script <http://docs.platformio.org/page/librarymanager/config.html#extrascript>`__
|
`library.json extra script <http://docs.platformio.org/page/librarymanager/config.html#extrascript>`__
|
||||||
* Improved auto-detecting of mbed-enabled media disks
|
* Improved auto-detecting of mbed-enabled media disks
|
||||||
* Update Git-submodules for development platforms and libraries which were
|
* Automatically update Git-submodules for development platforms and libraries
|
||||||
installed from repository
|
that were installed from repository
|
||||||
|
* Add support for ``.*cc`` extension
|
||||||
|
(`issue #939 <https://github.com/platformio/platformio-core/issues/939>`_)
|
||||||
|
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
@ -65,7 +65,8 @@ class LibBuilderFactory(object):
|
|||||||
# check source files
|
# check source files
|
||||||
for root, _, files in os.walk(path, followlinks=True):
|
for root, _, files in os.walk(path, followlinks=True):
|
||||||
for fname in files:
|
for fname in files:
|
||||||
if not env.IsFileWithExt(fname, ("c", "cpp", "h", "hpp")):
|
if not env.IsFileWithExt(
|
||||||
|
fname, piotool.SRC_BUILD_EXT + piotool.SRC_HEADER_EXT):
|
||||||
continue
|
continue
|
||||||
with open(join(root, fname)) as f:
|
with open(join(root, fname)) as f:
|
||||||
content = f.read()
|
content = f.read()
|
||||||
|
@ -27,7 +27,7 @@ from SCons.Util import case_sensitive_suffixes, is_Sequence
|
|||||||
|
|
||||||
from platformio.util import glob_escape, pioversion_to_intstr
|
from platformio.util import glob_escape, pioversion_to_intstr
|
||||||
|
|
||||||
SRC_BUILD_EXT = ["c", "cpp", "S", "spp", "SPP", "sx", "s", "asm", "ASM"]
|
SRC_BUILD_EXT = ["c", "cc", "cpp", "S", "spp", "SPP", "sx", "s", "asm", "ASM"]
|
||||||
SRC_HEADER_EXT = ["h", "hpp"]
|
SRC_HEADER_EXT = ["h", "hpp"]
|
||||||
SRC_FILTER_DEFAULT = ["+<*>", "-<.git%s>" % sep, "-<svn%s>" % sep]
|
SRC_FILTER_DEFAULT = ["+<*>", "-<.git%s>" % sep, "-<svn%s>" % sep]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user