mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
CMake: Fix building ARM64 on Windows
This commit is contained in:
@ -15,6 +15,10 @@
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "Common/MathUtil.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
namespace Arm64Gen
|
||||
{
|
||||
namespace
|
||||
|
@ -156,9 +156,11 @@ elseif(WIN32)
|
||||
PRIVATE
|
||||
kernel32.lib
|
||||
shlwapi.lib
|
||||
opengl32.lib
|
||||
winmm.lib
|
||||
)
|
||||
if (_M_X86_64)
|
||||
target_link_libraries(common PRIVATE opengl32.lib)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(ANDROID)
|
||||
|
@ -11,9 +11,13 @@
|
||||
#include "Common/CommonFuncs.h"
|
||||
#include "Common/Intrinsics.h"
|
||||
|
||||
#if defined(_M_ARM_64) && !defined(_MSC_VER)
|
||||
#ifdef _M_ARM_64
|
||||
#ifdef _MSC_VER
|
||||
#include <intrin.h>
|
||||
#else
|
||||
#include <arm_acle.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
namespace Common
|
||||
{
|
||||
|
@ -296,6 +296,14 @@ PRIVATE
|
||||
imgui
|
||||
)
|
||||
|
||||
if (WIN32)
|
||||
target_link_libraries(dolphin-emu
|
||||
PRIVATE
|
||||
gdi32.lib
|
||||
shell32.lib
|
||||
)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
target_sources(dolphin-emu PRIVATE DolphinQt.manifest DolphinQt.rc)
|
||||
|
||||
|
Reference in New Issue
Block a user