From 9f480124421ab66c2d6729e5393aa3891aa21c7e Mon Sep 17 00:00:00 2001 From: Soren Jorvang Date: Sun, 23 Jan 2011 21:28:04 +0000 Subject: [PATCH] Inform SCons of the svnrev.h dependency so it isn't subject to a race with the creation of Build/foo/Source/Common/Src. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6899 8ced0084-cf51-0410-be5f-012b33b47a6e --- Languages/Languages.vcproj | 4 ++++ Source/Core/Common/Src/SConscript | 9 ++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Languages/Languages.vcproj b/Languages/Languages.vcproj index 9b94090816..9f68e63966 100644 --- a/Languages/Languages.vcproj +++ b/Languages/Languages.vcproj @@ -74,6 +74,10 @@ + + diff --git a/Source/Core/Common/Src/SConscript b/Source/Core/Common/Src/SConscript index 7c8433ed2d..5b13f5958d 100644 --- a/Source/Core/Common/Src/SConscript +++ b/Source/Core/Common/Src/SConscript @@ -3,10 +3,13 @@ Import('env') import os import sys -from SconsTests import utils -utils.GenerateRevFile(env['flavor'], Dir('#Source/Core/Common/Src').abspath + - os.sep + 'svnrev_template.h', 'svnrev.h') +def createVersion(env, target, source): + from SconsTests import utils + utils.GenerateRevFile(env['flavor'], source[0].path, target[0].path) + +env.Command('svnrev.h', 'svnrev_template.h', + [Delete('${TARGET.srcpath}'), createVersion]) files = [ "ABI.cpp",