2020-12-10 03:28:15 +00:00
|
|
|
|
2020-12-10 04:44:35 +00:00
|
|
|
Import("projenv")
|
2020-12-10 03:28:15 +00:00
|
|
|
|
2020-12-10 04:44:35 +00:00
|
|
|
import configparser
|
|
|
|
config = configparser.RawConfigParser()
|
|
|
|
config.read(projenv["PROJECT_DIR"] + "/version.properties")
|
2020-12-10 03:28:15 +00:00
|
|
|
version = dict(config.items('VERSION'))
|
|
|
|
verStr = "{}.{}.{}".format(version["major"], version["minor"], version["build"])
|
|
|
|
|
|
|
|
print(f"Using meshtastic platform-custom.py, firmare version {verStr}")
|
|
|
|
|
|
|
|
# General options that are passed to the C and C++ compilers
|
|
|
|
projenv.Append(CCFLAGS=[
|
|
|
|
f"-DAPP_VERSION={verStr}"
|
|
|
|
])
|