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
This commit is contained in:
Soren Jorvang 2011-01-23 21:28:04 +00:00
parent 7cd7c2838b
commit 9f48012442
2 changed files with 10 additions and 3 deletions

View File

@ -74,6 +74,10 @@
<References>
</References>
<Files>
<File
RelativePath=".\da.po"
>
</File>
<File
RelativePath=".\de.po"
>

View File

@ -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",