Skip to content

Commit

Permalink
Merge pull request aldelaro5#90 from cristian64/cmake_gha_windows
Browse files Browse the repository at this point in the history
Switch to CMake in the GitHub Action for the Windows build.
  • Loading branch information
dreamsyntax authored Nov 5, 2023
2 parents 191f761 + d1cd564 commit 65b5015
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jobs:

- name: Build
run: |
msbuild Source\Dolphin-memory-engine.sln /p:Configuration=${{ matrix.configuration }} /p:Platform=x64 /p:Verbosity=normal
cmake Source -B .\Source\bin -A x64 "-DCMAKE_PREFIX_PATH=..\Externals\Qt\Qt6.5.1\x64"
cmake --build .\Source\bin --config ${{ matrix.configuration }} --parallel
shell: powershell

- name: Copy LICENSE, README
Expand Down
13 changes: 13 additions & 0 deletions Source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,18 @@ if(WIN32)
COMMAND ${CMAKE_COMMAND} -E copy_if_different
$<TARGET_FILE:Qt6::Gui>
$<TARGET_FILE_DIR:Dolphin-memory-engine>
TARGET Dolphin-memory-engine POST_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory
$<TARGET_FILE_DIR:Dolphin-memory-engine>/platforms
TARGET Dolphin-memory-engine POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
$<TARGET_FILE:Qt6::QWindowsIntegrationPlugin>
$<TARGET_FILE_DIR:Dolphin-memory-engine>/platforms
COMMAND ${CMAKE_COMMAND} -E make_directory
$<TARGET_FILE_DIR:Dolphin-memory-engine>/styles
TARGET Dolphin-memory-engine POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
$<TARGET_FILE:Qt6::QWindowsVistaStylePlugin>
$<TARGET_FILE_DIR:Dolphin-memory-engine>/styles
)
endif(WIN32)
2 changes: 1 addition & 1 deletion Source/DolphinProcess/IDolphinProcess.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class IDolphinProcess
{
return m_MEM2AddressStart;
};
u32 getMEM1ToMEM2Distance() const
u64 getMEM1ToMEM2Distance() const
{
if (!m_MEM2Present)
return 0;
Expand Down
10 changes: 7 additions & 3 deletions Source/DolphinProcess/Windows/WindowsDolphinProcess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ bool WindowsDolphinProcess::findPID()
{
do
{
if (std::string(entry.szExeFile) == "Dolphin.exe" ||
std::string(entry.szExeFile) == "DolphinQt2.exe" ||
std::string(entry.szExeFile) == "DolphinWx.exe")
#ifdef UNICODE
const std::wstring exeFile{entry.szExeFile};
if (exeFile == L"Dolphin.exe" || exeFile == L"DolphinQt2.exe" || exeFile == L"DolphinWx.exe")
#else
const std::string exeFile{entry.szExeFile};
if (exeFile == "Dolphin.exe" || exeFile == "DolphinQt2.exe" || exeFile == "DolphinWx.exe")
#endif
{
m_PID = entry.th32ProcessID;
break;
Expand Down

0 comments on commit 65b5015

Please sign in to comment.