LibMaps: Move MapWidget to new LibMaps library

This commit is contained in:
Bastiaan van der Plaat 2024-12-28 20:34:46 +01:00 committed by Nico Weber
parent 18cb48ae99
commit e0570a4060
8 changed files with 12 additions and 6 deletions

View file

@ -14,11 +14,10 @@ set(SOURCES
FavoritesModel.cpp
FavoritesPanelGML.cpp
FavoritesPanel.cpp
MapWidget.cpp
SearchPanelGML.cpp
SearchPanel.cpp
UsersMapWidget.cpp
)
serenity_app(Maps ICON app-maps)
target_link_libraries(Maps PRIVATE LibConfig LibCore LibDesktop LibGfx LibGUI LibMain LibProtocol LibURL)
target_link_libraries(Maps PRIVATE LibConfig LibCore LibDesktop LibGfx LibGUI LibMain LibMaps LibProtocol LibURL)

View file

@ -6,8 +6,8 @@
#pragma once
#include "MapWidget.h"
#include <LibGUI/Model.h>
#include <LibMaps/MapWidget.h>
namespace Maps {

View file

@ -6,12 +6,12 @@
#pragma once
#include "MapWidget.h"
#include <LibGUI/Button.h>
#include <LibGUI/Frame.h>
#include <LibGUI/ItemListModel.h>
#include <LibGUI/ListView.h>
#include <LibGUI/TextBox.h>
#include <LibMaps/MapWidget.h>
#include <LibProtocol/Request.h>
#include <LibProtocol/RequestClient.h>

View file

@ -6,7 +6,7 @@
#pragma once
#include "MapWidget.h"
#include <LibMaps/MapWidget.h>
namespace Maps {

View file

@ -41,6 +41,7 @@ add_subdirectory(LibLine)
add_subdirectory(LibLocale)
add_subdirectory(LibMain)
add_subdirectory(LibManual)
add_subdirectory(LibMaps)
add_subdirectory(LibMarkdown)
add_subdirectory(LibPartition)
add_subdirectory(LibPCIDB)

View file

@ -0,0 +1,6 @@
set(SOURCES
MapWidget.cpp
)
serenity_lib(LibMaps maps)
target_link_libraries(LibMaps PRIVATE LibConfig LibCore LibDesktop LibGfx LibGUI LibProtocol LibURL)

View file

@ -5,7 +5,6 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "MapWidget.h"
#include <Applications/MapsSettings/Defaults.h>
#include <LibConfig/Client.h>
#include <LibDesktop/Launcher.h>
@ -13,6 +12,7 @@
#include <LibGUI/Application.h>
#include <LibGUI/Clipboard.h>
#include <LibGfx/ImageFormats/ImageDecoder.h>
#include <LibMaps/MapWidget.h>
#include <LibProtocol/Request.h>
#include <LibURL/URL.h>