Squashed 'lib/lufa/' content from commit 385d40300
git-subtree-dir: lib/lufa git-subtree-split: 385d4030035dbaf41591309dbde47653bd03841b
This commit is contained in:
commit
60b30c0363
1455 changed files with 394541 additions and 0 deletions
38
LUFA/StudioIntegration/VSIX/generate_caches.py
Normal file
38
LUFA/StudioIntegration/VSIX/generate_caches.py
Normal file
|
@ -0,0 +1,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]))
|
Loading…
Add table
Add a link
Reference in a new issue