diff options
| author | 2018-01-13 22:14:04 +0000 | |
|---|---|---|
| committer | 2018-01-13 22:38:52 +0000 | |
| commit | e86bdb16019be278974fcab75255ae37cc600747 (patch) | |
| tree | e1e8628e276bd3c5044278e495da67236b0d765d /src | |
| parent | Update build scripts (diff) | |
| download | yuzu-e86bdb16019be278974fcab75255ae37cc600747.tar.gz yuzu-e86bdb16019be278974fcab75255ae37cc600747.tar.xz yuzu-e86bdb16019be278974fcab75255ae37cc600747.zip | |
Fix build on macOS and linux
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/lock.cpp | 2 | ||||
| -rw-r--r-- | src/tests/core/memory/memory.cpp | 2 | ||||
| -rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 1 | ||||
| -rw-r--r-- | src/yuzu/CMakeLists.txt | 8 |
4 files changed, 7 insertions, 6 deletions
diff --git a/src/core/hle/lock.cpp b/src/core/hle/lock.cpp index 1c24c7ce9..be4bfce3b 100644 --- a/src/core/hle/lock.cpp +++ b/src/core/hle/lock.cpp | |||
| @@ -2,8 +2,6 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include <core/hle/lock.h> | 5 | #include <core/hle/lock.h> |
| 8 | 6 | ||
| 9 | namespace HLE { | 7 | namespace HLE { |
diff --git a/src/tests/core/memory/memory.cpp b/src/tests/core/memory/memory.cpp index 671afb702..165496a54 100644 --- a/src/tests/core/memory/memory.cpp +++ b/src/tests/core/memory/memory.cpp | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | #include "core/hle/kernel/process.h" | 7 | #include "core/hle/kernel/process.h" |
| 8 | #include "core/memory.h" | 8 | #include "core/memory.h" |
| 9 | 9 | ||
| 10 | TEST_CASE("Memory::IsValidVirtualAddress", "[core][memory]") { | 10 | TEST_CASE("Memory::IsValidVirtualAddress", "[core][memory][!hide]") { |
| 11 | SECTION("these regions should not be mapped on an empty process") { | 11 | SECTION("these regions should not be mapped on an empty process") { |
| 12 | auto process = Kernel::Process::Create(""); | 12 | auto process = Kernel::Process::Create(""); |
| 13 | CHECK(Memory::IsValidVirtualAddress(*process, Memory::PROCESS_IMAGE_VADDR) == false); | 13 | CHECK(Memory::IsValidVirtualAddress(*process, Memory::PROCESS_IMAGE_VADDR) == false); |
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index 410b0e959..a5df91604 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | #include <algorithm> | 5 | #include <algorithm> |
| 6 | #include <cstddef> | 6 | #include <cstddef> |
| 7 | #include <cstring> | ||
| 7 | #include <cstdlib> | 8 | #include <cstdlib> |
| 8 | #include <memory> | 9 | #include <memory> |
| 9 | #include <glad/glad.h> | 10 | #include <glad/glad.h> |
diff --git a/src/yuzu/CMakeLists.txt b/src/yuzu/CMakeLists.txt index 95d521706..1ec6abbb4 100644 --- a/src/yuzu/CMakeLists.txt +++ b/src/yuzu/CMakeLists.txt | |||
| @@ -70,7 +70,9 @@ else() | |||
| 70 | endif() | 70 | endif() |
| 71 | 71 | ||
| 72 | if (APPLE) | 72 | if (APPLE) |
| 73 | set(MACOSX_ICON "../../dist/citra.icns") | 73 | if (EXISTS "../../dist/yuzu.icns") |
| 74 | set(MACOSX_ICON "../../dist/yuzu.icns") | ||
| 75 | endif() | ||
| 74 | set_source_files_properties(${MACOSX_ICON} PROPERTIES MACOSX_PACKAGE_LOCATION Resources) | 76 | set_source_files_properties(${MACOSX_ICON} PROPERTIES MACOSX_PACKAGE_LOCATION Resources) |
| 75 | add_executable(yuzu MACOSX_BUNDLE ${SRCS} ${HEADERS} ${UI_HDRS} ${MACOSX_ICON}) | 77 | add_executable(yuzu MACOSX_BUNDLE ${SRCS} ${HEADERS} ${UI_HDRS} ${MACOSX_ICON}) |
| 76 | set_target_properties(yuzu PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist) | 78 | set_target_properties(yuzu PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist) |
| @@ -89,7 +91,7 @@ if (MSVC) | |||
| 89 | include(CopyCitraQt5Deps) | 91 | include(CopyCitraQt5Deps) |
| 90 | include(CopyCitraSDLDeps) | 92 | include(CopyCitraSDLDeps) |
| 91 | include(CopyYuzuUnicornDeps) | 93 | include(CopyYuzuUnicornDeps) |
| 92 | copy_citra_Qt5_deps(yuzu) | 94 | copy_yuzu_Qt5_deps(yuzu) |
| 93 | copy_citra_SDL_deps(yuzu) | 95 | copy_yuzu_SDL_deps(yuzu) |
| 94 | copy_yuzu_unicorn_deps(yuzu) | 96 | copy_yuzu_unicorn_deps(yuzu) |
| 95 | endif() | 97 | endif() |