meshtastic-firmware/bin/platformio-custom.py

17 wiersze
478 B
Python
Czysty Zwykły widok Historia

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