yuzu_room: Remove dependency on core
This commit is contained in:
		| @@ -2,8 +2,6 @@ | |||||||
| # SPDX-License-Identifier: GPL-2.0-or-later | # SPDX-License-Identifier: GPL-2.0-or-later | ||||||
|  |  | ||||||
| add_library(core STATIC | add_library(core STATIC | ||||||
|     announce_multiplayer_session.cpp |  | ||||||
|     announce_multiplayer_session.h |  | ||||||
|     arm/arm_interface.h |     arm/arm_interface.h | ||||||
|     arm/arm_interface.cpp |     arm/arm_interface.cpp | ||||||
|     arm/dynarmic/arm_dynarmic_32.cpp |     arm/dynarmic/arm_dynarmic_32.cpp | ||||||
|   | |||||||
| @@ -10,7 +10,7 @@ add_executable(yuzu-room | |||||||
|  |  | ||||||
| create_target_directory_groups(yuzu-room) | create_target_directory_groups(yuzu-room) | ||||||
|  |  | ||||||
| target_link_libraries(yuzu-room PRIVATE common core network) | target_link_libraries(yuzu-room PRIVATE common network) | ||||||
| if (ENABLE_WEB_SERVICE) | if (ENABLE_WEB_SERVICE) | ||||||
|     target_compile_definitions(yuzu-room PRIVATE -DENABLE_WEB_SERVICE) |     target_compile_definitions(yuzu-room PRIVATE -DENABLE_WEB_SERVICE) | ||||||
|     target_link_libraries(yuzu-room PRIVATE web_service) |     target_link_libraries(yuzu-room PRIVATE web_service) | ||||||
|   | |||||||
| @@ -27,8 +27,8 @@ | |||||||
| #include "common/scm_rev.h" | #include "common/scm_rev.h" | ||||||
| #include "common/settings.h" | #include "common/settings.h" | ||||||
| #include "common/string_util.h" | #include "common/string_util.h" | ||||||
| #include "core/announce_multiplayer_session.h" |  | ||||||
| #include "core/core.h" | #include "core/core.h" | ||||||
|  | #include "network/announce_multiplayer_session.h" | ||||||
| #include "network/network.h" | #include "network/network.h" | ||||||
| #include "network/room.h" | #include "network/room.h" | ||||||
| #include "network/verify_user.h" | #include "network/verify_user.h" | ||||||
|   | |||||||
| @@ -2,6 +2,8 @@ | |||||||
| # SPDX-License-Identifier: GPL-3.0-or-later | # SPDX-License-Identifier: GPL-3.0-or-later | ||||||
|  |  | ||||||
| add_library(network STATIC | add_library(network STATIC | ||||||
|  |     announce_multiplayer_session.cpp | ||||||
|  |     announce_multiplayer_session.h | ||||||
|     network.cpp |     network.cpp | ||||||
|     network.h |     network.h | ||||||
|     packet.cpp |     packet.cpp | ||||||
| @@ -17,3 +19,7 @@ add_library(network STATIC | |||||||
| create_target_directory_groups(network) | create_target_directory_groups(network) | ||||||
|  |  | ||||||
| target_link_libraries(network PRIVATE common enet Boost::boost) | target_link_libraries(network PRIVATE common enet Boost::boost) | ||||||
|  | if (ENABLE_WEB_SERVICE) | ||||||
|  |     target_compile_definitions(network PRIVATE -DENABLE_WEB_SERVICE) | ||||||
|  |     target_link_libraries(network PRIVATE web_service) | ||||||
|  | endif() | ||||||
|   | |||||||
| @@ -16,7 +16,7 @@ | |||||||
| #include <QUrl> | #include <QUrl> | ||||||
| #include <QtConcurrent/QtConcurrentRun> | #include <QtConcurrent/QtConcurrentRun> | ||||||
| #include "common/logging/log.h" | #include "common/logging/log.h" | ||||||
| #include "core/announce_multiplayer_session.h" | #include "network/announce_multiplayer_session.h" | ||||||
| #include "ui_chat_room.h" | #include "ui_chat_room.h" | ||||||
| #include "yuzu/game_list_p.h" | #include "yuzu/game_list_p.h" | ||||||
| #include "yuzu/multiplayer/chat_room.h" | #include "yuzu/multiplayer/chat_room.h" | ||||||
|   | |||||||
| @@ -10,7 +10,7 @@ | |||||||
| #include <QTime> | #include <QTime> | ||||||
| #include <QtConcurrent/QtConcurrentRun> | #include <QtConcurrent/QtConcurrentRun> | ||||||
| #include "common/logging/log.h" | #include "common/logging/log.h" | ||||||
| #include "core/announce_multiplayer_session.h" | #include "network/announce_multiplayer_session.h" | ||||||
| #include "ui_client_room.h" | #include "ui_client_room.h" | ||||||
| #include "yuzu/game_list_p.h" | #include "yuzu/game_list_p.h" | ||||||
| #include "yuzu/multiplayer/client_room.h" | #include "yuzu/multiplayer/client_room.h" | ||||||
|   | |||||||
| @@ -12,7 +12,7 @@ | |||||||
| #include <QtConcurrent/QtConcurrentRun> | #include <QtConcurrent/QtConcurrentRun> | ||||||
| #include "common/logging/log.h" | #include "common/logging/log.h" | ||||||
| #include "common/settings.h" | #include "common/settings.h" | ||||||
| #include "core/announce_multiplayer_session.h" | #include "network/announce_multiplayer_session.h" | ||||||
| #include "ui_host_room.h" | #include "ui_host_room.h" | ||||||
| #include "yuzu/game_list_p.h" | #include "yuzu/game_list_p.h" | ||||||
| #include "yuzu/main.h" | #include "yuzu/main.h" | ||||||
|   | |||||||
| @@ -9,7 +9,7 @@ | |||||||
| #include <QSortFilterProxyModel> | #include <QSortFilterProxyModel> | ||||||
| #include <QStandardItemModel> | #include <QStandardItemModel> | ||||||
| #include "common/announce_multiplayer_room.h" | #include "common/announce_multiplayer_room.h" | ||||||
| #include "core/announce_multiplayer_session.h" | #include "network/announce_multiplayer_session.h" | ||||||
| #include "network/network.h" | #include "network/network.h" | ||||||
| #include "yuzu/multiplayer/validation.h" | #include "yuzu/multiplayer/validation.h" | ||||||
|  |  | ||||||
|   | |||||||
| @@ -4,7 +4,7 @@ | |||||||
| #pragma once | #pragma once | ||||||
|  |  | ||||||
| #include <QWidget> | #include <QWidget> | ||||||
| #include "core/announce_multiplayer_session.h" | #include "network/announce_multiplayer_session.h" | ||||||
| #include "network/network.h" | #include "network/network.h" | ||||||
|  |  | ||||||
| class QStandardItemModel; | class QStandardItemModel; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user