(project_dir)
| 13 | sys.exit(0) |
| 14 | |
| 15 | def update_project_file(project_dir): |
| 16 | if os.path.isfile(os.path.join(project_dir, 'template.Uv2')): |
| 17 | print('prepare MDK3 project file on ' + project_dir) |
| 18 | command = ' --target=mdk -s' |
| 19 | os.system('scons --directory=' + project_dir + command + ' > 1.txt') |
| 20 | |
| 21 | if os.path.isfile(os.path.join(project_dir, 'template.uvproj')): |
| 22 | print('prepare MDK4 project file on ' + project_dir) |
| 23 | command = ' --target=mdk4 -s' |
| 24 | os.system('scons --directory=' + project_dir + command + ' > 1.txt') |
| 25 | |
| 26 | if os.path.isfile(os.path.join(project_dir, 'template.uvprojx')): |
| 27 | print('prepare MDK5 project file on ' + project_dir) |
| 28 | command = ' --target=mdk5 -s' |
| 29 | os.system('scons --directory=' + project_dir + command + ' > 1.txt') |
| 30 | |
| 31 | if os.path.isfile(os.path.join(project_dir, 'template.ewp')): |
| 32 | print('prepare IAR project file on ' + project_dir) |
| 33 | command = ' --target=iar -s' |
| 34 | os.system('scons --directory=' + project_dir + command + ' > 1.txt') |
| 35 | |
| 36 | def update_all_project_files(root_path): |
| 37 | # current path is dir |
no test coverage detected