|
|
@ -11,27 +11,27 @@ sys.path.append("ProjectGenerator")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def show_message(message):
|
|
|
|
def show_message(message):
|
|
|
|
print "[Project Generator] %s" % message
|
|
|
|
print("[Project Generator] %s" % message)
|
|
|
|
sys.stdout.flush()
|
|
|
|
sys.stdout.flush()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def main(lufa_root_path):
|
|
|
|
def main(lufa_root_path):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
from asf_avrstudio5_interface import PythonFacade
|
|
|
|
from asf_avrstudio5_interface import PythonFacade
|
|
|
|
except ImportError:
|
|
|
|
except ImportError:
|
|
|
|
print "Fatal Error: The ASF project generator is missing."
|
|
|
|
print("Fatal Error: The ASF project generator is missing.")
|
|
|
|
return 1
|
|
|
|
return 1
|
|
|
|
|
|
|
|
|
|
|
|
p = PythonFacade(lufa_root_path)
|
|
|
|
p = PythonFacade(lufa_root_path)
|
|
|
|
|
|
|
|
|
|
|
|
show_message("Checking database sanity...")
|
|
|
|
show_message("Checking database sanity...")
|
|
|
|
p.check_extension_database_sanity(lufa_root_path)
|
|
|
|
p.check_extension_database_sanity(lufa_root_path)
|
|
|
|
|
|
|
|
|
|
|
|
show_message("Building cache files...")
|
|
|
|
show_message("Building cache files...")
|
|
|
|
p.generate_extension_cache_files(lufa_root_path)
|
|
|
|
p.generate_extension_cache_files(lufa_root_path)
|
|
|
|
|
|
|
|
|
|
|
|
show_message("Cache files created.")
|
|
|
|
show_message("Cache files created.")
|
|
|
|
return 0
|
|
|
|
return 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
if __name__ == "__main__":
|
|
|
|