380e1e283f
Contributed by Anthony J. Bentley (anthonyjbentley at users.sf.net) git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@361 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
21 lines
607 B
Python
21 lines
607 B
Python
global_cflags = ARGUMENTS.get('CFLAGS', '-Wall -Wextra -O2 -g')
|
|
global_cxxflags = ARGUMENTS.get('CXXFLAGS', global_cflags + ' -fno-exceptions -fno-rtti')
|
|
global_defines = ' -DHAVE_STDINT_H'
|
|
|
|
env = Environment(CPPPATH = ['.', '../libgambatte/include'],
|
|
CFLAGS = global_cflags + global_defines,
|
|
CXXFLAGS = global_cxxflags + global_defines,
|
|
LIBS = 'm')
|
|
|
|
sourceFiles = Split('''
|
|
testrunner.cpp
|
|
../libgambatte/libgambatte.a
|
|
''')
|
|
|
|
conf = env.Configure()
|
|
conf.CheckLib('z')
|
|
conf.CheckLib('png')
|
|
conf.Finish()
|
|
|
|
env.Program('testrunner', sourceFiles)
|