meshtastic-firmware/bin/platformio-custom.py

20 wiersze
439 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-04-16 02:59:46 +00:00
verStr = readProps(prefsLoc)
print("Using meshtastic platform-custom.py, firmare version " + verStr)
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=[
2020-12-27 04:53:23 +00:00
"-DAPP_VERSION=" + verStr
2021-04-16 02:35:10 +00:00
])