blob: 530ef8a8df136a5306af0567a51d4eeee0f8223c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import SCons.Util
import Version
def generate(env) :
def createBuildVersion(env, target, version = None) :
buildVersion = """#pragma once
static const char* buildVersion = \"%(buildVersion)s\";\n
""" % { "buildVersion" : Version.getBuildVersion(version) }
env.WriteVal(target, env.Value(buildVersion))
env.AddMethod(createBuildVersion, "BuildVersion")
def exists(env) :
return true
|