2011-01-06 00:05:38 +00:00
|
|
|
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'
|
2013-05-30 23:35:09 -06:00
|
|
|
vars = Variables()
|
|
|
|
vars.Add('CC')
|
|
|
|
vars.Add('CXX')
|
2011-01-06 00:05:38 +00:00
|
|
|
|
2014-07-16 22:31:17 +02:00
|
|
|
env = Environment(CPPPATH = ['.', '../common', '../libgambatte/include'],
|
2011-01-06 00:05:38 +00:00
|
|
|
CFLAGS = global_cflags + global_defines,
|
2012-12-09 16:43:04 +00:00
|
|
|
CXXFLAGS = global_cxxflags + global_defines,
|
2013-05-30 23:35:09 -06:00
|
|
|
LIBS = 'm',
|
|
|
|
variables = vars)
|
2011-01-06 00:05:38 +00:00
|
|
|
|
|
|
|
sourceFiles = Split('''
|
|
|
|
testrunner.cpp
|
|
|
|
../libgambatte/libgambatte.a
|
|
|
|
''')
|
|
|
|
|
|
|
|
conf = env.Configure()
|
|
|
|
conf.CheckLib('z')
|
2011-07-23 17:02:32 +00:00
|
|
|
conf.CheckLib('png')
|
2011-01-06 00:05:38 +00:00
|
|
|
conf.Finish()
|
|
|
|
|
|
|
|
env.Program('testrunner', sourceFiles)
|