diff options
| author | 2017-05-28 01:01:00 -0700 | |
|---|---|---|
| committer | 2017-05-28 01:01:00 -0700 | |
| commit | 4caa2bad9d57c97aa749d3a44f6be6f593bb798b (patch) | |
| tree | ba001a9832ee8965963d17fd4e93e9222e1153de /src/citra_qt | |
| parent | Merge pull request #2732 from yuriks/add-fmt (diff) | |
| parent | CMake: Correct inter-module dependencies and library visibility (diff) | |
| download | yuzu-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.txt | 6 | ||||
| -rw-r--r-- | src/citra_qt/bootmanager.cpp | 6 | ||||
| -rw-r--r-- | src/citra_qt/main.cpp | 1 |
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) | |||
| 91 | else() | 91 | else() |
| 92 | add_executable(citra-qt ${SRCS} ${HEADERS} ${UI_HDRS}) | 92 | add_executable(citra-qt ${SRCS} ${HEADERS} ${UI_HDRS}) |
| 93 | endif() | 93 | endif() |
| 94 | target_link_libraries(citra-qt core video_core audio_core common input_common) | 94 | target_link_libraries(citra-qt PRIVATE audio_core common core input_common video_core) |
| 95 | target_link_libraries(citra-qt ${OPENGL_gl_LIBRARY} ${CITRA_QT_LIBS}) | 95 | target_link_libraries(citra-qt PRIVATE ${OPENGL_gl_LIBRARY} ${CITRA_QT_LIBS} glad) |
| 96 | target_link_libraries(citra-qt ${PLATFORM_LIBRARIES} Threads::Threads) | 96 | target_link_libraries(citra-qt PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads) |
| 97 | 97 | ||
| 98 | if(UNIX AND NOT APPLE) | 98 | if(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 | ||
| 22 | EmuThread::EmuThread(GRenderWindow* render_window) | 21 | EmuThread::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 |
| 49 | Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin); | 48 | Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin); |