core/AMBuilder
author Scott Ehlert <ds@alliedmods.net>
Thu Jul 01 02:43:22 2010 -0500 (2010-07-01)
changeset 722 78f730f91439
parent 704 6055e296b807
child 733 2365240861a2
permissions -rw-r--r--
Fixed problem on OBV where alternately loaded plugins (CreateInterface_MMS) could be incorrectly told they were on the OB engine (bug 4491, r=dvander).

This only happened when there was more than one plugin that loaded this way. And the first plugin to load had to fail on OBV first so that OB could be tried. It was being permanently set to OB for future plugin loads and this caused problems.
ds@704
     1
# vim: set ts=2 sw=2 tw=99 noet ft=python: 
ds@704
     2
import os
ds@704
     3
ds@704
     4
for i in MMS.sdkInfo:
ds@704
     5
	sdk = MMS.sdkInfo[i]
ds@704
     6
	if AMBuild.target['platform'] not in sdk['platform'] or i == 'ep1':
ds@704
     7
		continue
ds@704
     8
ds@704
     9
	name = 'metamod.' + sdk['ext']
ds@704
    10
ds@704
    11
	compiler = MMS.DefaultHL2Compiler('core', i)
ds@704
    12
ds@704
    13
	extension = AMBuild.AddJob(name)
ds@704
    14
	binary = Cpp.LibraryBuilder(name, AMBuild, extension, compiler)
ds@704
    15
	MMS.PreSetupHL2Job(extension, binary, i)
ds@704
    16
	files = [
ds@704
    17
		'metamod.cpp',
ds@704
    18
		'metamod_console.cpp',
ds@704
    19
		'metamod_oslink.cpp',
ds@704
    20
		'metamod_plugins.cpp',
ds@704
    21
		'metamod_util.cpp',
ds@704
    22
		'provider/console.cpp',
ds@704
    23
		'provider/provider_ep2.cpp',
ds@704
    24
		'sourcehook/sourcehook.cpp',
ds@704
    25
		'sourcehook/sourcehook_hookmangen.cpp',
ds@704
    26
		'gamedll_bridge.cpp',
ds@704
    27
		'vsp_bridge.cpp'
ds@704
    28
		]
ds@704
    29
	binary.AddSourceFiles('core', files)
ds@704
    30
	MMS.PostSetupHL2Job(extension, binary, i)
ds@704
    31
	MMS.AutoVersion('core', binary)
ds@704
    32
	binary.SendToJob()
ds@704
    33