wl_library(ui_fsmenu_options
  SRCS
    options.cc
    options.h
  DEPENDS
    base_exceptions
    base_i18n
    base_log
    graphic
    graphic_fonthandler
    graphic_text
    graphic_text_constants
    graphic_text_layout
    helper
    io_filesystem
    logic_filesystem_constants
    scripting_lua_interface
    scripting_lua_table
    ui_basic
    ui_fsmenu_base
    profile
    sound
    widelands_ball_of_mud
)

wl_library(ui_fsmenu_base
  SRCS
    base.cc
    base.h
  DEPENDS
    ui_basic
)

wl_library(ui_fsmenu_helpwindow
  SRCS
    helpwindow.cc
    helpwindow.h
  DEPENDS
    base_i18n
    graphic
    scripting_coroutine
    scripting_lua_table
    scripting_lua_interface
    ui_basic
)


wl_library(ui_fsmenu_main
  SRCS
    main.cc
    main.h
  DEPENDS
    base_i18n
    build_info
    ui_basic
    ui_fsmenu_main_menu
)

wl_library(ui_fsmenu_main_menu
  SRCS
    main_menu.cc
    main_menu.h
  DEPENDS
    ui_basic
    ui_fsmenu_base
)

wl_library(ui_fsmenu_loading_common
  SRCS
    load_map_or_game.cc
    load_map_or_game.h
    multiplayer.cc
    multiplayer.h
    singleplayer.cc
    singleplayer.h
  DEPENDS
    base_i18n
    graphic_text_constants
    io_filesystem
    profile
    network
    random
    ui_basic
    ui_fsmenu_base
    ui_fsmenu_main_menu
    wui_common_mapdetails
    wui
)

wl_library(ui_fsmenu_gameloading
  SRCS
    launch_game.cc
    launch_game.h
    launch_mpg.cc
    launch_mpg.h
    launch_spg.cc
    launch_spg.h
    loadgame.cc
    loadgame.h
  DEPENDS
    base_exceptions
    base_i18n
    graphic
    graphic_playercolor
    graphic_text_constants
    helper
    io_filesystem
    logic
    logic_game_controller
    logic_game_settings
    logic_tribe_basic_info
    map_io_map_loader
    profile
    scripting_lua_interface
    scripting_lua_table
    ui_basic
    ui_fsmenu_base
    ui_fsmenu_helpwindow
    ui_fsmenu_loading_common
    ui_fsmenu_maploading
    wui
    wui_chat_ui
    wui_common_gamedetails
    wui_common_suggested_teams
)

wl_library(ui_fsmenu_maploading
  SRCS
    campaign_select.cc
    campaign_select.h
    mapselect.cc
    mapselect.h
  DEPENDS
    base_exceptions
    base_i18n
    base_log
    graphic
    graphic_fonthandler
    graphic_text_constants
    io_filesystem
    logic_campaign_visibility
    logic_filesystem_constants
    logic_game_controller
    logic_game_settings
    map_io_map_loader
    profile
    ui_basic
    ui_fsmenu_base
    ui_fsmenu_loading_common
    wui_common_mapdetails
)

wl_library(ui_fsmenu_network
  SRCS
    internet_lobby.cc
    internet_lobby.h
    netsetup_lan.cc
    netsetup_lan.h
  DEPENDS
    base_i18n
    base_log
    base_macros
    graphic
    graphic_text_constants
    network
    profile
    random
    ui_basic
    ui_fsmenu_base
    wui_chat_ui
)

wl_library(ui_fsmenu_misc
  SRCS
    about.cc
    about.h
    intro.cc
    intro.h
  DEPENDS
    base_i18n
    ui_basic
    ui_fsmenu_base
)
