upload
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

generate_caches.py 846B

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