4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 11:43:34 +08:00

在vs2010中将编译文件分组

This commit is contained in:
www220@tom.com 2015-04-07 18:27:51 +08:00
parent 8ab28da02c
commit 2eaaa2cb05

View File

@ -99,11 +99,14 @@ def VS_add_ItemGroup(parent, file_type, files, project_path):
name = fn.name
path = os.path.dirname(fn.abspath)
path = _make_path_relative(project_path, path)
objpath = path = _make_path_relative(project_path, path)
path = os.path.join(path, name)
File = SubElement(ItemGroup, item_tag)
File.set('Include', path.decode(fs_encoding))
if file_type == 'C' :
ObjName = SubElement(File, 'ObjectFileName')
ObjName.text = ''.join('$(IntDir)'+objpath+'\\')
def VS_add_HeadFiles(program, elem, project_path):
building.source_ext = []