def METHOD_NAME(project):
    path = project.parent
    output = ["=" * 90, "Generating: {}".format(path)]
    options = " ".join("-D{}={}".format(k, v) for k,v in global_options.items())
    # Compile Linux examples under macOS with hosted-darwin target
    if "hosted-linux" in project.read_text():
        options += " -D:target=hosted-{}".format(platform.system().lower())
    rc, ro = run_command(path, "lbuild {} build".format(options))
    print("\n".join(output + [ro]))
    return None if rc else project