meshtastic-firmware/bin/platformio-custom.py

21 wiersze
505 B
Python
Czysty Zwykły widok Historia

2021-04-16 02:35:10 +00:00
import subprocess
import configparser
2021-04-16 02:35:10 +00:00
import traceback
import sys
2021-04-16 02:59:46 +00:00
from readprops import readProps
2021-04-16 02:35:10 +00:00
Import("projenv")
2020-12-10 05:17:43 +00:00
prefsLoc = projenv["PROJECT_DIR"] + "/version.properties"
2021-05-03 01:50:06 +00:00
verObj = readProps(prefsLoc)
print("Using meshtastic platform-custom.py, firmare version " + verObj['long'])
2021-04-16 02:59:46 +00:00
# print("path is" + ','.join(sys.path))
# General options that are passed to the C and C++ compilers
projenv.Append(CCFLAGS=[
2021-05-03 01:50:06 +00:00
"-DAPP_VERSION=" + verObj['long'],
"-DAPP_VERSION_SHORT=" + verObj['short']
2021-04-16 02:35:10 +00:00
])