1.1 --- a/AMBuildScript Mon Nov 18 12:57:33 2013 -0800
1.2 +++ b/AMBuildScript Sat Nov 23 19:10:27 2013 -0800
1.3 @@ -63,6 +63,7 @@
1.4 self.sdks = {}
1.5 self.binaries = []
1.6 self.generated_headers = None
1.7 + self.versionlib = None
1.8
1.9 def detectProductVersion(self):
1.10 builder.AddConfigureFile('product.version')
1.11 @@ -214,6 +215,7 @@
1.12 # Finish up.
1.13 cfg.defines += ['MMS_GENERATED_BUILD']
1.14 cfg.includes += [os.path.join(builder.buildPath, 'includes')]
1.15 + cfg.includes += [os.path.join(builder.sourcePath, 'versionlib')]
1.16 cfg.cxxincludes += [os.path.join(builder.sourcePath, 'public')]
1.17
1.18 def HL2Compiler(self, context, sdk):
1.19 @@ -276,6 +278,7 @@
1.20 '-compatibility_version', '1.0.0',
1.21 '-current_version', self.productVersion
1.22 ]
1.23 + binary.compiler.linkflags += [self.versionlib]
1.24 binary.compiler.sourcedeps += MMS.generated_headers
1.25 return binary
1.26
1.27 @@ -354,6 +357,10 @@
1.28 'support/buildbot/Versioning',
1.29 { 'MMS': MMS }
1.30 )
1.31 +MMS.versionlib = builder.RunScript(
1.32 + 'versionlib/AMBuildScript',
1.33 + { 'MMS': MMS }
1.34 +)
1.35
1.36 builder.RunBuildScripts(
1.37 [