mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
[what] update cmake compilation configuration in windows
[why] support some other IDE like VScode or clion [how] 1. update CMakeLists.txt according to *.vcxproj 2. include some header like `windows.h` to support raw cmake compilation 3. exclude libcmt.lib
This commit is contained in:
parent
a56f74c8c0
commit
fa336edcb6
14 changed files with 26 additions and 3 deletions
|
@ -419,6 +419,7 @@ else()
|
|||
endif()
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -D_NDEBUG")
|
||||
set(CMAKE_EXE_LINKER_FLAGS /NODEFAULTLIB:"libcmt.lib")
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
|
@ -2360,7 +2361,6 @@ set(WindowsFiles
|
|||
Windows/Debugger/Debugger_MemoryDlg.h
|
||||
Windows/Debugger/Debugger_Lists.cpp
|
||||
Windows/Debugger/Debugger_Lists.h
|
||||
Windows/Debugger/Debugger_SymbolMap.h
|
||||
Windows/Debugger/Debugger_VFPUDlg.cpp
|
||||
Windows/Debugger/Debugger_VFPUDlg.h
|
||||
Windows/Debugger/WatchItemWindow.cpp
|
||||
|
@ -2408,6 +2408,13 @@ set(WindowsFiles
|
|||
Windows/W32Util/ShellUtil.h
|
||||
Windows/W32Util/TabControl.cpp
|
||||
Windows/W32Util/TabControl.h
|
||||
Windows/W32Util/IatHook.h
|
||||
Windows/W32Util/ContextMenu.h
|
||||
Windows/W32Util/ContextMenu.cpp
|
||||
Windows/W32Util/DarkMode.h
|
||||
Windows/W32Util/DarkMode.cpp
|
||||
Windows/W32Util/UAHMenuBar.h
|
||||
Windows/W32Util/UAHMenuBar.cpp
|
||||
Windows/WindowsHost.cpp
|
||||
Windows/WindowsHost.h
|
||||
Windows/MainWindow.cpp
|
||||
|
@ -2431,7 +2438,7 @@ set(WindowsFiles
|
|||
list(APPEND LinkCommon ${CoreLibName} ${CMAKE_THREAD_LIBS_INIT})
|
||||
|
||||
if(WIN32)
|
||||
list(APPEND LinkCommon kernel32 user32 gdi32 shell32 comctl32 dsound xinput d3d9 winmm dinput8 ole32 winspool ksuser mf mfplat mfreadwrite mfuuid shlwapi)
|
||||
list(APPEND LinkCommon kernel32 user32 gdi32 shell32 comctl32 dsound xinput d3d9 winmm dinput8 ole32 winspool ksuser mf uxtheme mfplat mfreadwrite mfuuid shlwapi)
|
||||
#setup_target_project(${TargetBin} Windows)
|
||||
list(APPEND NativeAppSource ${WindowsFiles})
|
||||
endif()
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include "Common/CommonWindows.h"
|
||||
#include "Common/StringUtils.h"
|
||||
|
||||
#include <windows.h>
|
||||
#include <windowsx.h>
|
||||
#include <commctrl.h>
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include "Windows/Debugger/Debugger_Lists.h"
|
||||
#include "Common/CommonWindows.h"
|
||||
#include <windowsx.h>
|
||||
#include <windows.h>
|
||||
#include <commctrl.h>
|
||||
#include "Windows/Debugger/BreakpointWindow.h"
|
||||
#include "Windows/Debugger/CtrlDisAsmView.h"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#include "Windows/stdafx.h"
|
||||
#include <windowsx.h>
|
||||
#include <windows.h>
|
||||
#include <commctrl.h>
|
||||
#include "..\resource.h"
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#include "Common/CommonWindows.h"
|
||||
#include <windowsx.h>
|
||||
#include <windows.h>
|
||||
#include <commctrl.h>
|
||||
#include "Windows/resource.h"
|
||||
#include "Common/Data/Encoding/Utf8.h"
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <vector>
|
||||
|
||||
#include "Common/CommonWindows.h"
|
||||
#include <windows.h>
|
||||
#include <commctrl.h>
|
||||
|
||||
#include "Common/Data/Convert/ColorConv.h"
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include "GPU/GPUState.h"
|
||||
#include "Core/Config.h"
|
||||
#include <windowsx.h>
|
||||
#include <windows.h>
|
||||
#include <commctrl.h>
|
||||
|
||||
enum { WM_GEDBG_LISTS_CHANGELIST = WM_USER+400, WM_GEDBG_LISTS_GOTOSTACKPC };
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
// Official git repository and contact information can be found at
|
||||
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
||||
|
||||
#include <windows.h>
|
||||
#include <commctrl.h>
|
||||
#include "Common/CommonFuncs.h"
|
||||
#include "Common/CommonTypes.h"
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
// Official git repository and contact information can be found at
|
||||
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
||||
|
||||
#include <windows.h>
|
||||
#include <commctrl.h>
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "Common/Data/Encoding/Utf8.h"
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
#include <Windowsx.h>
|
||||
#include <shellapi.h>
|
||||
#include <windows.h>
|
||||
#include <commctrl.h>
|
||||
#include <string>
|
||||
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
#define WIN32_LEAN_AND_MEAN
|
||||
#define NOMINMAX
|
||||
#include <Windows.h>
|
||||
#include <CommCtrl.h>
|
||||
#include <windows.h>
|
||||
#include <commctrl.h>
|
||||
#include <Uxtheme.h>
|
||||
#include <WindowsX.h>
|
||||
#include <Vssym32.h>
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <windows.h>
|
||||
#include <winnt.h>
|
||||
|
||||
template <typename T, typename T1, typename T2>
|
||||
constexpr T RVA2VA(T1 base, T2 rva)
|
||||
{
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include <WinUser.h>
|
||||
#include <shellapi.h>
|
||||
#include <windows.h>
|
||||
#include <commctrl.h>
|
||||
|
||||
#include "Misc.h"
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#include "DialogManager.h"
|
||||
#include "Windows/MainWindow.h"
|
||||
#include <windowsx.h>
|
||||
#include <windows.h>
|
||||
#include <commctrl.h>
|
||||
|
||||
const DWORD tabControlStyleMask = ~(WS_POPUP | WS_TILEDWINDOW);
|
||||
|
|
Loading…
Add table
Reference in a new issue