AMBuildScript
changeset 818 1516c9026fd0
parent 817 e04a06a9a8d7
child 819 506c71b4ff73
     1.1 --- a/AMBuildScript	Tue Feb 05 21:26:40 2013 +0000
     1.2 +++ b/AMBuildScript	Mon Mar 04 10:38:17 2013 -0500
     1.3 @@ -31,6 +31,8 @@
     1.4  		                              'name': 'EYE', 'platform': ['windows']}
     1.5  		self.possibleSdks['csgo'] =   {'sdk': 'HL2SDKCSGO',      'ext': '2.csgo', 'def': '12',
     1.6  		                              'name': 'CSGO', 'platform': ['windows', 'linux', 'darwin']}
     1.7 +		self.possibleSdks['dota'] =   {'sdk': 'HL2SDKDOTA',      'ext': '2.dota', 'def': '13',
     1.8 +		                              'name': 'DOTA', 'platform': ['windows']}
     1.9  		# self.possibleSdks['portal2'] =   {'sdk': 'HL2SDK-PORTAL2',      'ext': '2.portal2', 'def': '11',
    1.10  		#                               'name': 'PORTAL2', 'platform': ['windows']}
    1.11  		
    1.12 @@ -58,6 +60,7 @@
    1.13  				envvars['HL2SDK-SWARM'] = 'hl2sdk-swarm'
    1.14  				envvars['HL2SDK-BGT']   = 'hl2sdk-bgt'
    1.15  				envvars['HL2SDK-EYE']   = 'hl2sdk-eye'
    1.16 +				envvars['HL2SDK-DOTA']   = 'hl2sdk-dota'
    1.17  
    1.18  			# Finds if a dict with `key` set to `value` is present on the dict of dicts `dictionary`
    1.19  			def findDictByKey(dictionary, key, value):
    1.20 @@ -309,7 +312,7 @@
    1.21  					job.AddCommand(SymlinkCommand(link, target))
    1.22  		elif AMBuild.target['platform'] == 'windows':
    1.23  			libs = ['tier0', 'tier1', 'vstdlib']
    1.24 -			if sdk in ['swarm', 'csgo']:
    1.25 +			if sdk in ['swarm', 'csgo', 'dota']:
    1.26  				libs.append('interfaces')
    1.27  			for lib in libs:
    1.28  				libPath = os.path.join(sdkPath, 'lib', 'public', lib) + '.lib'
    1.29 @@ -319,7 +322,7 @@
    1.30  	def PostSetupHL2Job(self, job, builder, sdk):
    1.31  		if AMBuild.target['platform'] in ['linux', 'darwin']:
    1.32  			builder.AddObjectFiles(['tier1_i486.a'])
    1.33 -			if( sdk == 'csgo' ):
    1.34 +			if( sdk in ['csgo', 'dota'] ):
    1.35  				builder.AddObjectFiles(['interfaces_i486.a'])
    1.36  
    1.37  	def DefaultHL2Compiler(self, path, sdk, noLink = False):
    1.38 @@ -351,7 +354,7 @@
    1.39  
    1.40  		compiler['CDEFINES'].append('SOURCE_ENGINE=' + info['def'])
    1.41  
    1.42 -		if sdk in ['swarm', 'csgo']:
    1.43 +		if sdk in ['swarm', 'csgo', 'dota']:
    1.44  			if AMBuild.target['platform'] == 'windows':
    1.45  				compiler['CDEFINES'].extend(['COMPILER_MSVC', 'COMPILER_MSVC32'])
    1.46  			else: