summaryrefslogtreecommitdiff
path: root/src/citra_qt
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2017-05-28 01:01:00 -0700
committerGravatar GitHub2017-05-28 01:01:00 -0700
commit4caa2bad9d57c97aa749d3a44f6be6f593bb798b (patch)
treeba001a9832ee8965963d17fd4e93e9222e1153de /src/citra_qt
parentMerge pull request #2732 from yuriks/add-fmt (diff)
parentCMake: Correct inter-module dependencies and library visibility (diff)
downloadyuzu-4caa2bad9d57c97aa749d3a44f6be6f593bb798b.tar.gz
yuzu-4caa2bad9d57c97aa749d3a44f6be6f593bb798b.tar.xz
yuzu-4caa2bad9d57c97aa749d3a44f6be6f593bb798b.zip
Merge pull request #2733 from yuriks/cmake-cleanup
Dependencies and build system cleanup
Diffstat (limited to 'src/citra_qt')
-rw-r--r--src/citra_qt/CMakeLists.txt6
-rw-r--r--src/citra_qt/bootmanager.cpp6
-rw-r--r--src/citra_qt/main.cpp1
3 files changed, 5 insertions, 8 deletions
diff --git a/src/citra_qt/CMakeLists.txt b/src/citra_qt/CMakeLists.txt
index 4e837668e..809e0b938 100644
--- a/src/citra_qt/CMakeLists.txt
+++ b/src/citra_qt/CMakeLists.txt
@@ -91,9 +91,9 @@ if (APPLE)
91else() 91else()
92 add_executable(citra-qt ${SRCS} ${HEADERS} ${UI_HDRS}) 92 add_executable(citra-qt ${SRCS} ${HEADERS} ${UI_HDRS})
93endif() 93endif()
94target_link_libraries(citra-qt core video_core audio_core common input_common) 94target_link_libraries(citra-qt PRIVATE audio_core common core input_common video_core)
95target_link_libraries(citra-qt ${OPENGL_gl_LIBRARY} ${CITRA_QT_LIBS}) 95target_link_libraries(citra-qt PRIVATE ${OPENGL_gl_LIBRARY} ${CITRA_QT_LIBS} glad)
96target_link_libraries(citra-qt ${PLATFORM_LIBRARIES} Threads::Threads) 96target_link_libraries(citra-qt PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads)
97 97
98if(UNIX AND NOT APPLE) 98if(UNIX AND NOT APPLE)
99 install(TARGETS citra-qt RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") 99 install(TARGETS citra-qt RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
diff --git a/src/citra_qt/bootmanager.cpp b/src/citra_qt/bootmanager.cpp
index bae576d6a..06b62f44c 100644
--- a/src/citra_qt/bootmanager.cpp
+++ b/src/citra_qt/bootmanager.cpp
@@ -12,12 +12,11 @@
12#include "common/microprofile.h" 12#include "common/microprofile.h"
13#include "common/scm_rev.h" 13#include "common/scm_rev.h"
14#include "common/string_util.h" 14#include "common/string_util.h"
15#include "core/3ds.h"
15#include "core/core.h" 16#include "core/core.h"
16#include "core/settings.h" 17#include "core/settings.h"
17#include "input_common/keyboard.h" 18#include "input_common/keyboard.h"
18#include "input_common/main.h" 19#include "input_common/main.h"
19#include "video_core/debug_utils/debug_utils.h"
20#include "video_core/video_core.h"
21 20
22EmuThread::EmuThread(GRenderWindow* render_window) 21EmuThread::EmuThread(GRenderWindow* render_window)
23 : exec_step(false), running(false), stop_run(false), render_window(render_window) {} 22 : exec_step(false), running(false), stop_run(false), render_window(render_window) {}
@@ -266,8 +265,7 @@ void GRenderWindow::InitRenderTarget() {
266 child = new GGLWidgetInternal(fmt, this); 265 child = new GGLWidgetInternal(fmt, this);
267 QBoxLayout* layout = new QHBoxLayout(this); 266 QBoxLayout* layout = new QHBoxLayout(this);
268 267
269 resize(VideoCore::kScreenTopWidth, 268 resize(Core::kScreenTopWidth, Core::kScreenTopHeight + Core::kScreenBottomHeight);
270 VideoCore::kScreenTopHeight + VideoCore::kScreenBottomHeight);
271 layout->addWidget(child); 269 layout->addWidget(child);
272 layout->setMargin(0); 270 layout->setMargin(0);
273 setLayout(layout); 271 setLayout(layout);
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp
index d7fad555f..eb2c7d613 100644
--- a/src/citra_qt/main.cpp
+++ b/src/citra_qt/main.cpp
@@ -43,7 +43,6 @@
43#include "core/gdbstub/gdbstub.h" 43#include "core/gdbstub/gdbstub.h"
44#include "core/loader/loader.h" 44#include "core/loader/loader.h"
45#include "core/settings.h" 45#include "core/settings.h"
46#include "video_core/video_core.h"
47 46
48#ifdef QT_STATICPLUGIN 47#ifdef QT_STATICPLUGIN
49Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin); 48Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin);