Import('env')
from os.path import join, realpath

# private library flags
for item in env.get("CPPDEFINES", []):
    if isinstance(item, tuple) and item[0] == "PLATFORM":
        env.Append(CPPPATH=[realpath(join("platform", item[1]))])
        env.Replace(SRC_FILTER=["+<*>", "-<platform>", "+<%s>" % join("platform", item[1])])
        break
Import('env')
from os.path import join, realpath

# private library flags
for item in env.get("CPPDEFINES", []):
    if isinstance(item, tuple) and item[0] == "PLATFORM":
        env.Append(CPPPATH=[realpath(join("platform", item[1]))])
        env.Replace(SRC_FILTER=["+<*>", "-<platform>", "+<%s>" % join("platform", item[1])])
        break
# private library flags