Browse Source

fix room

Signed-off-by: crueter <crueter@eden-emu.dev>
pull/2994/head
crueter 3 months ago
parent
commit
484cda86b8
No known key found for this signature in database GPG Key ID: 425ACD2D4830EBC6
  1. 3
      src/dedicated_room/CMakeLists.txt
  2. 2
      src/yuzu_cmd/CMakeLists.txt
  3. 12
      src/yuzu_room_standalone/CMakeLists.txt

3
src/dedicated_room/CMakeLists.txt

@ -4,9 +4,6 @@
# SPDX-FileCopyrightText: 2017 Citra Emulator Project
# SPDX-License-Identifier: GPL-2.0-or-later
# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
# SPDX-License-Identifier: GPL-3.0-or-later
add_library(yuzu-room STATIC EXCLUDE_FROM_ALL
yuzu_room.cpp
yuzu_room.h

2
src/yuzu_cmd/CMakeLists.txt

@ -59,7 +59,7 @@ create_target_directory_groups(yuzu-cmd)
if (YUZU_STATIC_BUILD)
# yuzu-cmd requires us to explicitly link libpthread, libgcc, and libstdc++ as static
# At a guess, it's probably because Qt handles the Qt executable for us
# At a guess, it's probably because Qt handles the Qt executable for us, whereas this does not
target_link_options(yuzu-cmd PRIVATE -static -lpthread)
target_link_options(yuzu-cmd PRIVATE -static-libgcc -static-libstdc++)
endif()

12
src/yuzu_room_standalone/CMakeLists.txt

@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
# SPDX-License-Identifier: GPL-3.0-or-later
add_executable(yuzu_room_standalone
yuzu_room_standalone.cpp
)
@ -9,3 +12,12 @@ target_link_libraries(yuzu_room_standalone PRIVATE yuzu-room)
if(UNIX AND NOT APPLE)
install(TARGETS yuzu_room_standalone RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
endif()
if (YUZU_STATIC_BUILD)
# yuzu_room_standalone requires us to explicitly link libpthread, libgcc, and libstdc++ as static
# At a guess, it's probably because Qt handles the Qt executable for us, whereas this does not
target_link_options(yuzu_room_standalone PRIVATE -static -lpthread)
target_link_options(yuzu_room_standalone PRIVATE -static-libgcc -static-libstdc++)
endif()
create_target_directory_groups(yuzu_room_standalone)
Loading…
Cancel
Save