mirror of
https://github.com/libretro/gambatte-libretro.git
synced 2024-11-23 16:00:06 +00:00
e1470f5279
- 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
51 lines
1.4 KiB
Python
51 lines
1.4 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', 'include', '../common'],
|
|
CFLAGS = global_cflags + global_defines,
|
|
CXXFLAGS = global_cxxflags + global_defines)
|
|
|
|
sourceFiles = Split('''
|
|
src/bitmap_font.cpp
|
|
src/cpu.cpp
|
|
src/gambatte.cpp
|
|
src/initstate.cpp
|
|
src/interrupter.cpp
|
|
src/interruptrequester.cpp
|
|
src/memory.cpp
|
|
src/sound.cpp
|
|
src/state_osd_elements.cpp
|
|
src/statesaver.cpp
|
|
src/tima.cpp
|
|
src/video.cpp
|
|
src/mem/cartridge.cpp
|
|
src/mem/memptrs.cpp
|
|
src/mem/rtc.cpp
|
|
src/sound/channel1.cpp
|
|
src/sound/channel2.cpp
|
|
src/sound/channel3.cpp
|
|
src/sound/channel4.cpp
|
|
src/sound/duty_unit.cpp
|
|
src/sound/envelope_unit.cpp
|
|
src/sound/length_counter.cpp
|
|
src/video/ly_counter.cpp
|
|
src/video/lyc_irq.cpp
|
|
src/video/next_m0_time.cpp
|
|
src/video/ppu.cpp
|
|
src/video/sprite_mapper.cpp
|
|
''')
|
|
|
|
conf = env.Configure()
|
|
|
|
if conf.CheckHeader('zlib.h') and conf.CheckLib('z'):
|
|
sourceFiles.append('src/file/unzip/unzip.c')
|
|
sourceFiles.append('src/file/unzip/ioapi.c')
|
|
sourceFiles.append('src/file/file_zip.cpp')
|
|
else:
|
|
sourceFiles.append('src/file/file.cpp')
|
|
|
|
conf.Finish()
|
|
|
|
env.Library('gambatte', sourceFiles)
|