[D3D12] Create the project and link D3D libraries
This commit is contained in:
@@ -70,6 +70,7 @@ project("xenia-app")
|
||||
filter("platforms:Windows")
|
||||
links({
|
||||
"xenia-apu-xaudio2",
|
||||
"xenia-gpu-d3d12",
|
||||
"xenia-hid-winkey",
|
||||
"xenia-hid-xinput",
|
||||
})
|
||||
|
||||
21
src/xenia/gpu/d3d12/premake5.lua
Normal file
21
src/xenia/gpu/d3d12/premake5.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
project_root = "../../../.."
|
||||
include(project_root.."/tools/build")
|
||||
|
||||
group("src")
|
||||
project("xenia-gpu-d3d12")
|
||||
uuid("c057eae4-e7bb-4113-9a69-1fe07b735c49")
|
||||
kind("StaticLib")
|
||||
language("C++")
|
||||
links({
|
||||
"xenia-base",
|
||||
"xenia-gpu",
|
||||
"xxhash",
|
||||
})
|
||||
defines({
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/gflags/src",
|
||||
})
|
||||
local_platform_files()
|
||||
files({
|
||||
})
|
||||
@@ -20,6 +20,10 @@ namespace xe {
|
||||
namespace hid {
|
||||
namespace xinput {
|
||||
|
||||
// TODO(Triang3l): Find why XInputEnable is deprecated on Windows 10.
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable : 4995)
|
||||
|
||||
XInputInputDriver::XInputInputDriver(xe::ui::Window* window)
|
||||
: InputDriver(window) {
|
||||
XInputEnable(TRUE);
|
||||
@@ -27,6 +31,8 @@ XInputInputDriver::XInputInputDriver(xe::ui::Window* window)
|
||||
|
||||
XInputInputDriver::~XInputInputDriver() { XInputEnable(FALSE); }
|
||||
|
||||
#pragma warning(pop)
|
||||
|
||||
X_STATUS XInputInputDriver::Setup() { return X_STATUS_SUCCESS; }
|
||||
|
||||
X_RESULT XInputInputDriver::GetCapabilities(uint32_t user_index, uint32_t flags,
|
||||
|
||||
Reference in New Issue
Block a user