MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / update_project_file

Function update_project_file

tools/release/buildbot.py:15–34  ·  view source on GitHub ↗
(project_dir)

Source from the content-addressed store, hash-verified

13 sys.exit(0)
14
15def 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
36def update_all_project_files(root_path):
37 # current path is dir

Callers 1

update_all_project_filesFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected