wl_library(wui_sound_options
  SRCS
    sound_options.cc
    sound_options.h
  DEPENDS
    base_i18n
    graphic_styles
    sound
    ui_basic
)

wl_library(wui_chat_ui
  SRCS
    chat_overlay.cc
    chat_overlay.h
    game_chat_menu.cc
    game_chat_menu.h
    game_chat_panel.cc
    game_chat_panel.h
    chat_msg_layout.h
    chat_msg_layout.cc
  USES_SDL2
  DEPENDS
    base_exceptions
    base_i18n
    chat
    graphic
    graphic_color
    graphic_fonthandler
    graphic_playercolor
    graphic_text
    graphic_text_layout
    logic
    sound
    ui_basic
    widelands_options
    wui
)

wl_library(wui_economy_options
  SRCS
    economy_options_window.cc
    economy_options_window.h
  DEPENDS
    economy
    graphic
    logic
    logic_commands
    logic_filesystem_constants
    logic_map_objects
    notifications
    io_profile
    ui_basic
    wui_waresdisplay
)

wl_library(wui_mapview_pixelconstants
  SRCS
    mapviewpixelconstants.h
    mapviewpixelconstants.cc
)

wl_library(wui_mapview_pixelfunctions
  SRCS
    mapviewpixelfunctions.cc
    mapviewpixelfunctions.h
  DEPENDS
    base_geometry
    logic_map
    logic_widelands_geometry
    wui_mapview_pixelconstants
)

wl_library(wui_common_suggested_teams
  SRCS
    suggested_teams_box.cc
    suggested_teams_box.h
  DEPENDS
    base_i18n
    graphic
    graphic_playercolor
    logic_constants
    ui_basic
)

wl_library(wui_common_gamedetails
  SRCS
    gamedetails.cc
    gamedetails.h
    load_or_save_game.cc
    load_or_save_game.h
    savegametable.cc
    savegametable.h
    savegamedeleter.cc
    savegamedeleter.h
    savegamedata.cc
    savegamedata.h
    savegameloader.cc
    savegameloader.h
  DEPENDS
    base_i18n
    base_log
    base_time_string
    game_io
    graphic
    graphic_image_io
    graphic_surface
    graphic_text_layout
    io_filesystem
    logic
    logic_constants
    logic_filesystem_constants
    logic_game_controller
    ui_basic
)

wl_library(wui_common_mapdetails
  SRCS
    mapauthordata.h
    mapdetails.cc
    mapdetails.h
    mapdata.cc
    mapdata.h
    maptable.cc
    maptable.h
    map_tags.cc
    map_tags.h
  DEPENDS
    base_exceptions
    base_i18n
    base_log
    graphic
    graphic_text_layout
    io_filesystem
    logic_game_settings
    logic_map
    ui_basic
    wui_common_suggested_teams
)

wl_library(wui_quicknavigation
  SRCS
    quicknavigation.cc
    quicknavigation.h
  DEPENDS
    wui_mapview
)

wl_library(wui_mapview
  SRCS
    mapview.cc
    mapview.h
  USES_SDL2
  DEPENDS
    base_geometry
    base_macros
    base_math
    graphic
    graphic_fields_to_draw
    graphic_game_renderer
    logic_map
    logic_map_objects
    logic_widelands_geometry
    ui_basic
    widelands_ball_of_mud
    widelands_options
    wui_mapview_pixelfunctions
)

wl_library(wui_waresdisplay
  SRCS
    waresdisplay.cc
    waresdisplay.h
  USES_SDL2
  DEPENDS
    base_exceptions
    base_i18n
    graphic
    graphic_fonthandler
    graphic_text_layout
    logic
    logic_map_objects
    ui_basic
)


wl_library(wui_game_tips
  SRCS
    game_tips.cc
    game_tips.h
  USES_SDL2
  DEPENDS
    base_i18n
    graphic
    graphic_fonthandler
    graphic_text_layout
    scripting_lua_table
    scripting_lua_interface
    ui_basic
)


wl_library(wui
  SRCS
    actionconfirm.cc
    actionconfirm.h
    attack_box.cc
    attack_box.h
    building_statistics_menu.cc
    building_statistics_menu.h
    buildingwindow.cc
    buildingwindow.h
    constructionsitewindow.cc
    constructionsitewindow.h
    debugconsole.cc
    debugconsole.h
    dismantlesitewindow.cc
    dismantlesitewindow.h
    encyclopedia_window.cc
    encyclopedia_window.h
    fieldaction.cc
    fieldaction.h
    game_client_disconnected.cc
    game_client_disconnected.h
    game_debug_ui.cc
    game_debug_ui.h
    game_exit_confirm_box.cc
    game_exit_confirm_box.h
    game_main_menu_save_game.cc
    game_main_menu_save_game.h
    game_message_menu.cc
    game_message_menu.h
    game_objectives_menu.cc
    game_objectives_menu.h
    game_options_sound_menu.cc
    game_options_sound_menu.h
    game_summary.cc
    game_summary.h
    general_statistics_menu.cc
    general_statistics_menu.h
    helpwindow.cc
    helpwindow.h
    inputqueuedisplay.cc
    inputqueuedisplay.h
    interactive_base.cc
    interactive_base.h
    interactive_gamebase.cc
    interactive_gamebase.h
    interactive_player.cc
    interactive_player.h
    interactive_spectator.cc
    interactive_spectator.h
    itemwaresdisplay.cc
    itemwaresdisplay.h
    login_box.cc
    login_box.h
    logmessage.h
    militarysitewindow.cc
    militarysitewindow.h
    minimap.cc
    minimap.h
    multiplayersetupgroup.cc
    multiplayersetupgroup.h
    playerdescrgroup.cc
    playerdescrgroup.h
    plot_area.cc
    plot_area.h
    portdockwaresdisplay.cc
    portdockwaresdisplay.h
    productionsitewindow.cc
    productionsitewindow.h
    seafaring_statistics_menu.cc
    seafaring_statistics_menu.h
    shipwindow.cc
    shipwindow.h
    soldiercapacitycontrol.cc
    soldiercapacitycontrol.h
    soldierlist.cc
    soldierlist.h
    stock_menu.cc
    stock_menu.h
    story_message_box.cc
    story_message_box.h
    trainingsitewindow.cc
    trainingsitewindow.h
    tribal_encyclopedia.cc
    tribal_encyclopedia.h
    unique_window_handler.cc
    unique_window_handler.h
    ware_statistics_menu.cc
    ware_statistics_menu.h
    warehousewindow.cc
    warehousewindow.h
    watchwindow.cc
    watchwindow.h
  USES_SDL2
  DEPENDS
    ai
    base_exceptions
    base_geometry
    base_i18n
    base_log
    base_macros
    base_math
    base_time_string
    chat
    economy
    game_io
    graphic
    graphic_color
    graphic_fonthandler
    graphic_game_renderer
    graphic_minimap_renderer
    graphic_mouse_cursor
    graphic_playercolor
    graphic_surface
    graphic_text_layout
    graphic_toolbar_imageset
    io_filesystem
    io_profile
    logic
    logic_constants
    logic_commands
    logic_filesystem_constants
    logic_game_controller
    logic_game_settings
    logic_generic_save_handler
    logic_map
    logic_map_objects
    logic_objectives
    logic_tribe_basic_info
    logic_widelands_geometry
    map_io_map_loader
    network
    note_sound
    notifications
    scripting_coroutine
    scripting_lua_interface
    scripting_lua_table
    sound
    ui_basic
    widelands_options
    wui_chat_ui
    wui_common_gamedetails
    wui_economy_options
    wui_mapview
    wui_mapview_pixelfunctions
    wui_quicknavigation
    wui_sound_options
    wui_waresdisplay
)
