1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-12-04 16:24:16 +01:00
HLMetaModOfficial/core-legacy/sourcehook/test/AMBuilder
2015-09-24 20:40:05 -07:00

34 lines
736 B
Python

# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
import os
binary = MMS.Program(builder, "test_sourcehook")
binary.compiler.cxxincludes += [
os.path.join(builder.sourcePath, 'core-legacy', 'sourcehook'),
]
if '-fno-rtti' in binary.compiler.cxxflags:
binary.compiler.cxxflags.remove('-fno-rtti')
if '-fno-exceptions' in binary.compiler.cxxflags:
binary.compiler.cxxflags.remove('-fno-exceptions')
binary.sources += [
'main.cpp',
'../sourcehook.cpp',
'test1.cpp',
'test2.cpp',
'test3.cpp',
'test4.cpp',
'testbail.cpp',
'testbail2.cpp',
'testlist.cpp',
'testmanual.cpp',
'testmulti.cpp',
'testrecall.cpp',
'testreentr.cpp',
'testref.cpp',
'testrefret.cpp',
'testvphooks.cpp',
]
builder.Add(binary)