mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-09-12 17:45:49 +00:00
24 lines
475 B
Python
24 lines
475 B
Python
# Simple check for the configuration of an environment.
|
|
|
|
|
|
Import("env")
|
|
import os
|
|
|
|
# access to global construction environment
|
|
#print env
|
|
|
|
# Dump construction environment (for debug purpose)
|
|
#print env.Dump()
|
|
|
|
my_flags = env.ParseFlags(env['BUILD_FLAGS'])
|
|
|
|
|
|
# print the defines
|
|
print("CPPDEFINES: {}".format(my_flags.get("CPPDEFINES")))
|
|
print("LINKFLAGS: {}".format(my_flags.get("LINKFLAGS")))
|
|
#print(my_flags)
|
|
|
|
|
|
if (len(my_flags.get("CPPDEFINES")) == 0):
|
|
raise ValueError
|