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

Function CB_AddHeadFiles

tools/targets/codeblocks.py:42–53  ·  view source on GitHub ↗
(program, elem, project_path)

Source from the content-addressed store, hash-verified

40fs_encoding = sys.getfilesystemencoding()
41
42def CB_AddHeadFiles(program, elem, project_path):
43 utils.source_ext = []
44 utils.source_ext = ["h"]
45 for item in program:
46 utils.walk_children(item)
47 utils.source_list.sort()
48 # print utils.source_list
49
50 for f in utils.source_list:
51 path = _make_path_relative(project_path, f)
52 Unit = SubElement(elem, 'Unit')
53 Unit.set('filename', path.decode(fs_encoding))
54
55def CB_AddCFiles(ProjectFiles, parent, gname, files, project_path):
56 for f in files:

Callers 1

CBProjectFunction · 0.85

Calls 2

_make_path_relativeFunction · 0.90
sortMethod · 0.80

Tested by

no test coverage detected