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

Function IARAddGroup

tools/targets/iar.py:51–70  ·  view source on GitHub ↗
(parent, name, files, project_path)

Source from the content-addressed store, hash-verified

49'''
50
51def IARAddGroup(parent, name, files, project_path):
52 group = SubElement(parent, 'group')
53 group_name = SubElement(group, 'name')
54 group_name.text = name
55
56 for f in files:
57 fn = f.rfile()
58 name = fn.name
59 path = os.path.dirname(fn.abspath)
60 basename = os.path.basename(path)
61 path = _make_path_relative(project_path, path)
62 path = os.path.join(path, name)
63
64 file = SubElement(group, 'file')
65 file_name = SubElement(file, 'name')
66
67 if os.path.isabs(path):
68 file_name.text = path # path.decode(fs_encoding)
69 else:
70 file_name.text = '$PROJ_DIR$\\' + path # ('$PROJ_DIR$\\' + path).decode(fs_encoding)
71
72def IARWorkspace(target):
73 # make an workspace

Callers 1

IARProjectFunction · 0.85

Calls 2

_make_path_relativeFunction · 0.90
joinMethod · 0.45

Tested by

no test coverage detected