diff -r e70b65bc70b9 -r 89782d5fc91b AMBuildScript --- a/AMBuildScript Mon Dec 30 17:50:59 2013 -0500 +++ b/AMBuildScript Mon Dec 30 17:51:00 2013 -0500 @@ -68,6 +68,7 @@ self.mysql_root = None self.spcomp = None self.smx_files = {} + self.versionlib = None def detectProductVersion(self): builder.AddConfigureFile('product.version') @@ -245,8 +246,10 @@ cfg.defines += [ 'SOURCEMOD_BUILD', 'SM_GENERATED_BUILD', + 'SM_USE_VERSIONLIB', ] cfg.includes += [os.path.join(builder.buildPath, 'includes')] + cfg.includes += [os.path.join(builder.sourcePath, 'versionlib')] def LibraryBuilder(self, compiler, name): binary = compiler.Library(name) @@ -261,6 +264,7 @@ '-compatibility_version', '1.0.0', '-current_version', self.productVersion ] + binary.compiler.linkflags += [self.versionlib] binary.compiler.sourcedeps += SM.generated_headers return binary @@ -272,6 +276,7 @@ 'BINARY_NAME="{0}"'.format(binary.outputFile), 'SM_GENERATED_BUILD' ] + binary.compiler.linkflags += [self.versionlib] binary.compiler.sourcedeps += SM.generated_headers return binary @@ -432,6 +437,10 @@ 'tools/buildbot/Versioning', { 'SM': SM } ) +SM.versionlib = builder.RunScript( + 'versionlib/AMBuilder', + { 'SM': SM } +) builder.RunBuildScripts( [