
Import('env')
data_src = ['data/data_generic.cpp']
gfx_src = Split("""
    gfx/buffer.cpp
    gfx/color.cpp
    gfx/entity.cpp
    gfx/entity_camera.cpp
    gfx/entity_object.cpp
    gfx/entity_object_overlay.cpp
    gfx/font.cpp
    gfx/glyph.cpp
    gfx/height_map_ball.cpp
    gfx/image.cpp
    gfx/lod.cpp
    gfx/lod_icosahedron.cpp
    gfx/mesh.cpp
    gfx/mesh_animated.cpp
    gfx/mesh_ball.cpp
    gfx/mesh_icosahedron.cpp
    gfx/mesh_planet.cpp
    gfx/mesh_static.cpp
    gfx/shader.cpp
    gfx/surface.cpp
    gfx/surface_base.cpp
    gfx/surface_screen.cpp
    gfx/texture_2d.cpp
    gfx/texture_3d.cpp
    """)

ui_src = Split("""
    ui/ui_generic.cpp
    ui/fps_counter.cpp
    ui/text_area.cpp
    ui/text_box.cpp
    ui/text_row.cpp
    ui/text_word.cpp
    ui/ui_stack.cpp
    ui/ui_state.cpp""")

ob_src = Split("""
    ob_game.cpp ob_game_view.cpp ob_globals.cpp ob_height_map_planet.cpp ob_main.cpp ob_planet.cpp
    ob_visualization_2d.cpp ob_visualization_orbit.cpp ob_city.cpp
    """)

math_src = Split("""
    math/random.cpp
    """)

common_src = data_src + gfx_src + ui_src + math_src
import os
if os.name == 'posix' and os.uname()[0] == 'Darwin':
  common_src += ['SDLMain.m']

test_2d = env.Program('test2d', common_src + ['test_2d.cpp'])
test_3d = env.Program('test3d', common_src + ['test_3d.cpp'])
ob = env.Program('orbital', common_src + ob_src)
