# 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)