forked from platformio/platformio-core
Restore PLATFORMIO macros with the current version
This commit is contained in:
@ -4,6 +4,11 @@ Release History
|
|||||||
PlatformIO 2.0
|
PlatformIO 2.0
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
2.4.1 (2015-12-??)
|
||||||
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
* Restored ``PLATFORMIO`` macros with the current version
|
||||||
|
|
||||||
2.4.0 (2015-12-01)
|
2.4.0 (2015-12-01)
|
||||||
~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
VERSION = (2, 4, 0)
|
VERSION = (2, 4, "1.dev0")
|
||||||
__version__ = ".".join([str(s) for s in VERSION])
|
__version__ = ".".join([str(s) for s in VERSION])
|
||||||
|
|
||||||
__title__ = "platformio"
|
__title__ = "platformio"
|
||||||
|
@ -114,12 +114,6 @@ DefaultEnvironment(
|
|||||||
|
|
||||||
env = DefaultEnvironment()
|
env = DefaultEnvironment()
|
||||||
|
|
||||||
# Append PlatformIO version
|
|
||||||
env.Append(
|
|
||||||
CPPDEFINES=["PLATFORMIO={0:02d}{1:02d}{2:02d}".format(
|
|
||||||
*util.pioversion_to_intstr())]
|
|
||||||
)
|
|
||||||
|
|
||||||
if "BOARD" in env:
|
if "BOARD" in env:
|
||||||
try:
|
try:
|
||||||
env.Replace(BOARD_OPTIONS=util.get_boards(env.subst("$BOARD")))
|
env.Replace(BOARD_OPTIONS=util.get_boards(env.subst("$BOARD")))
|
||||||
|
@ -23,6 +23,8 @@ from SCons.Script import (COMMAND_LINE_TARGETS, DefaultEnvironment, Exit,
|
|||||||
SConscript)
|
SConscript)
|
||||||
from SCons.Util import case_sensitive_suffixes
|
from SCons.Util import case_sensitive_suffixes
|
||||||
|
|
||||||
|
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([
|
||||||
@ -71,6 +73,11 @@ def BuildProgram(env):
|
|||||||
getenv("PLATFORMIO_SRC_BUILD_FLAGS"),
|
getenv("PLATFORMIO_SRC_BUILD_FLAGS"),
|
||||||
])
|
])
|
||||||
|
|
||||||
|
env.Append(
|
||||||
|
CPPDEFINES=["PLATFORMIO={0:02d}{1:02d}{2:02d}".format(
|
||||||
|
*pioversion_to_intstr())]
|
||||||
|
)
|
||||||
|
|
||||||
return env.Program(
|
return env.Program(
|
||||||
join("$BUILD_DIR", env.subst("$PROGNAME")),
|
join("$BUILD_DIR", env.subst("$PROGNAME")),
|
||||||
env.LookupSources(
|
env.LookupSources(
|
||||||
|
Reference in New Issue
Block a user