From 2eaaa2cb0562a619d47cecd521ecc9659f93920d Mon Sep 17 00:00:00 2001 From: "www220@tom.com" Date: Tue, 7 Apr 2015 18:27:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8vs2010=E4=B8=AD=E5=B0=86=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E6=96=87=E4=BB=B6=E5=88=86=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/vs2012.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/vs2012.py b/tools/vs2012.py index 14da3dcace..6badef8ad9 100644 --- a/tools/vs2012.py +++ b/tools/vs2012.py @@ -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 = []