|
|
@ -10,11 +10,26 @@ import sys
|
|
|
|
import os
|
|
|
|
import os
|
|
|
|
sys.path.append("ProjectGenerator")
|
|
|
|
sys.path.append("ProjectGenerator")
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
|
|
|
|
try:
|
|
|
|
from asf_avrstudio5_interface import PythonFacade
|
|
|
|
from asf_avrstudio5_interface import PythonFacade
|
|
|
|
except ImportError:
|
|
|
|
except ImportError:
|
|
|
|
print "The ASF project generator is missing."
|
|
|
|
print "The ASF project generator is missing."
|
|
|
|
|
|
|
|
sys.exit()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
p = PythonFacade(os.path.abspath(__file__))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print "[Project Generator] Checking database sanity..."
|
|
|
|
|
|
|
|
sys.stdout.flush()
|
|
|
|
|
|
|
|
p.check_extension_database_sanity(sys.argv[1])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print "[Project Generator] Building cache files..."
|
|
|
|
|
|
|
|
sys.stdout.flush()
|
|
|
|
|
|
|
|
p.generate_extension_cache_files(sys.argv[1])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print "[Project Generator] Cache files created."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
p = PythonFacade(os.path.abspath(__file__))
|
|
|
|
if __name__ == "__main__":
|
|
|
|
p.check_extension_database_sanity(sys.argv[1])
|
|
|
|
sys.exit(main())
|
|
|
|
p.generate_extension_cache_files(sys.argv[1])
|
|
|
|
|