gambatte/gambatte_sdl/SConstruct
sinamas 9dc2f7ec48 - libgambatte: *
- tons of re (cgb _and_ dmg).

$ ./run_tests.sh
...
Ran 2755 tests.
0 failures.



git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@246 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2011-07-23 17:02:32 +00:00

42 lines
1.3 KiB
Python

global_cflags = ARGUMENTS.get('CFLAGS', '-Wall -Wextra -O2 -fomit-frame-pointer')
global_cxxflags = ARGUMENTS.get('CXXFLAGS', global_cflags + ' -fno-exceptions -fno-rtti')
global_defines = ' -DHAVE_STDINT_H'
env = Environment(CPPPATH = ['src', '../libgambatte/include', '../common'],
CFLAGS = global_cflags + global_defines,
CXXFLAGS = global_cxxflags + global_defines)
env.ParseConfig('sdl-config --cflags --libs')
sourceFiles = Split('''
src/gambatte_sdl.cpp
src/audiodata.cpp
src/blitterwrapper.cpp
src/parser.cpp
src/sdlblitter.cpp
src/str_to_sdlkey.cpp
src/syncfunc.cpp
../common/adaptivesleep.cpp
../common/resample/src/chainresampler.cpp
../common/resample/src/i0.cpp
../common/resample/src/makesinckernel.cpp
../common/resample/src/resamplerinfo.cpp
../common/resample/src/u48div.cpp
../common/rateest.cpp
../common/skipsched.cpp
../common/videolink/rgb32conv.cpp
../common/videolink/vfilterinfo.cpp
../common/videolink/vfilters/catrom2x.cpp
../common/videolink/vfilters/catrom3x.cpp
../common/videolink/vfilters/kreed2xsai.cpp
../common/videolink/vfilters/maxsthq2x.cpp
../common/videolink/vfilters/maxsthq3x.cpp
../libgambatte/libgambatte.a
''')
conf = env.Configure()
conf.CheckLib('z')
conf.Finish()
env.Program('gambatte_sdl', sourceFiles)