mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2024-12-05 17:24:15 +01:00
34 lines
736 B
Python
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)
|