Update AMBuild for Nuclear Dawn.

This commit is contained in:
Dr!fter 2014-08-15 23:51:35 -04:00
parent 48b180ea92
commit 6c0a1b3dcb

View File

@ -272,7 +272,7 @@ class SM:
else: else:
staticLibs = os.path.join(sdkPath, 'lib', 'linux') staticLibs = os.path.join(sdkPath, 'lib', 'linux')
workFolder = os.path.join(AMBuild.outputFolder, job.workFolder) workFolder = os.path.join(AMBuild.outputFolder, job.workFolder)
if sdk in ['tf2', 'css', 'l4d2', 'hl2dm', 'dods']: if sdk in ['tf2', 'css', 'l4d2', 'hl2dm', 'dods', 'nd']:
libs = ['tier1_i486.a', 'mathlib_i486.a', 'libvstdlib_srv.so', 'libtier0_srv.so'] libs = ['tier1_i486.a', 'mathlib_i486.a', 'libvstdlib_srv.so', 'libtier0_srv.so']
for i in libs: for i in libs:
link = os.path.join(workFolder, i) link = os.path.join(workFolder, i)
@ -284,7 +284,7 @@ class SM:
job.AddCommand(command.DirectCommand(['cp', '-f', target, link])) job.AddCommand(command.DirectCommand(['cp', '-f', target, link]))
else: else:
job.AddCommand(SymlinkCommand(link, target)) job.AddCommand(SymlinkCommand(link, target))
elif sdk in ['l4d', 'csgo', 'nd']: elif sdk in ['l4d', 'csgo']:
libs = ['tier1_i486.a', 'mathlib_i486.a', 'libvstdlib.so', 'libtier0.so'] libs = ['tier1_i486.a', 'mathlib_i486.a', 'libvstdlib.so', 'libtier0.so']
if sdk == 'csgo': if sdk == 'csgo':
libs.append('interfaces_i486.a') libs.append('interfaces_i486.a')
@ -381,10 +381,10 @@ class SM:
if not noLink: if not noLink:
if AMBuild.target['platform'] == 'linux': if AMBuild.target['platform'] == 'linux':
compiler['POSTLINKFLAGS'][0:0] = ['-lm'] compiler['POSTLINKFLAGS'][0:0] = ['-lm']
if sdk in ['tf2', 'css', 'l4d2', 'hl2dm', 'dods']: if sdk in ['tf2', 'css', 'l4d2', 'hl2dm', 'dods', 'nd']:
compiler['POSTLINKFLAGS'][0:0] = ['libtier0_srv.so'] compiler['POSTLINKFLAGS'][0:0] = ['libtier0_srv.so']
compiler['POSTLINKFLAGS'][0:0] = ['libvstdlib_srv.so'] compiler['POSTLINKFLAGS'][0:0] = ['libvstdlib_srv.so']
elif sdk in ['l4d', 'csgo', 'nd']: elif sdk in ['l4d', 'csgo']:
compiler['POSTLINKFLAGS'][0:0] = ['libtier0.so'] compiler['POSTLINKFLAGS'][0:0] = ['libtier0.so']
compiler['POSTLINKFLAGS'][0:0] = ['libvstdlib.so'] compiler['POSTLINKFLAGS'][0:0] = ['libvstdlib.so']
else: else: