blob: 671bed9d568fdc29079887c56ab9ba84eeb1d0ec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
"""
LUFA Library
Copyright (C) Dean Camera, 2017.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
"""
import sys
sys.path.append("ProjectGenerator")
def show_message(message):
print("[Project Generator] %s" % message)
sys.stdout.flush()
def main(lufa_root_path):
try:
from asf_avrstudio5_interface import PythonFacade
except ImportError:
print("Fatal Error: The ASF project generator is missing.")
return 1
p = PythonFacade(lufa_root_path)
show_message("Checking database sanity...")
p.check_extension_database_sanity(lufa_root_path)
show_message("Building cache files...")
p.generate_extension_cache_files(lufa_root_path)
show_message("Cache files created.")
return 0
if __name__ == "__main__":
sys.exit(main(sys.argv[1]))
|