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

Function CB_AddCFiles

tools/targets/codeblocks.py:55–67  ·  view source on GitHub ↗
(ProjectFiles, parent, gname, files, project_path)

Source from the content-addressed store, hash-verified

53 Unit.set('filename', path.decode(fs_encoding))
54
55def CB_AddCFiles(ProjectFiles, parent, gname, files, project_path):
56 for f in files:
57 fn = f.rfile()
58 name = fn.name
59 path = os.path.dirname(fn.abspath)
60
61 path = _make_path_relative(project_path, path)
62 path = os.path.join(path, name)
63
64 Unit = SubElement(parent, 'Unit')
65 Unit.set('filename', path.decode(fs_encoding))
66 Option = SubElement(Unit, 'Option')
67 Option.set('compilerVar', "CC")
68
69def CBProject(target, script, program):
70 project_path = os.path.dirname(os.path.abspath(target))

Callers 1

CBProjectFunction · 0.85

Calls 2

_make_path_relativeFunction · 0.90
joinMethod · 0.45

Tested by

no test coverage detected