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

Function VS_AddHeadFilesGroup

tools/targets/vs.py:73–88  ·  view source on GitHub ↗
(program, elem, project_path)

Source from the content-addressed store, hash-verified

71 File.set('RelativePath', path)
72
73def VS_AddHeadFilesGroup(program, elem, project_path):
74 utils.source_ext = []
75 utils.source_ext = ["h"]
76 for item in program:
77 utils.walk_children(item)
78 utils.source_list.sort()
79 # print utils.source_list
80
81 for f in utils.source_list:
82 path = _make_path_relative(project_path, f)
83 File = SubElement(elem, 'File')
84 try:
85 path = path.decode(fs_encoding)
86 except:
87 path = path
88 File.set('RelativePath', path)
89
90def VSProject(target, script, program):
91 project_path = os.path.dirname(os.path.abspath(target))

Callers 1

VSProjectFunction · 0.85

Calls 2

_make_path_relativeFunction · 0.90
sortMethod · 0.80

Tested by

no test coverage detected