[D3D12] Create the project and link D3D libraries
This commit is contained in:
parent
ba7dc6b2d7
commit
c2b2a9f376
|
@ -180,6 +180,10 @@ filter("platforms:Windows")
|
||||||
"comctl32",
|
"comctl32",
|
||||||
"shcore",
|
"shcore",
|
||||||
"shlwapi",
|
"shlwapi",
|
||||||
|
"d3d12",
|
||||||
|
"d3dcompiler",
|
||||||
|
"dxgi",
|
||||||
|
"dxguid",
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Create scratch/ path and dummy flags file if needed.
|
-- Create scratch/ path and dummy flags file if needed.
|
||||||
|
@ -219,6 +223,7 @@ solution("xenia")
|
||||||
platforms({"Linux"})
|
platforms({"Linux"})
|
||||||
elseif os.is("windows") then
|
elseif os.is("windows") then
|
||||||
platforms({"Windows"})
|
platforms({"Windows"})
|
||||||
|
systemversion("10.0.10240.0")
|
||||||
end
|
end
|
||||||
configurations({"Checked", "Debug", "Release"})
|
configurations({"Checked", "Debug", "Release"})
|
||||||
|
|
||||||
|
@ -256,6 +261,7 @@ solution("xenia")
|
||||||
|
|
||||||
if os.is("windows") then
|
if os.is("windows") then
|
||||||
include("src/xenia/apu/xaudio2")
|
include("src/xenia/apu/xaudio2")
|
||||||
|
include("src/xenia/gpu/d3d12")
|
||||||
include("src/xenia/hid/winkey")
|
include("src/xenia/hid/winkey")
|
||||||
include("src/xenia/hid/xinput")
|
include("src/xenia/hid/xinput")
|
||||||
end
|
end
|
||||||
|
|
|
@ -70,6 +70,7 @@ project("xenia-app")
|
||||||
filter("platforms:Windows")
|
filter("platforms:Windows")
|
||||||
links({
|
links({
|
||||||
"xenia-apu-xaudio2",
|
"xenia-apu-xaudio2",
|
||||||
|
"xenia-gpu-d3d12",
|
||||||
"xenia-hid-winkey",
|
"xenia-hid-winkey",
|
||||||
"xenia-hid-xinput",
|
"xenia-hid-xinput",
|
||||||
})
|
})
|
||||||
|
|
|
@ -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 hid {
|
||||||
namespace xinput {
|
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)
|
XInputInputDriver::XInputInputDriver(xe::ui::Window* window)
|
||||||
: InputDriver(window) {
|
: InputDriver(window) {
|
||||||
XInputEnable(TRUE);
|
XInputEnable(TRUE);
|
||||||
|
@ -27,6 +31,8 @@ XInputInputDriver::XInputInputDriver(xe::ui::Window* window)
|
||||||
|
|
||||||
XInputInputDriver::~XInputInputDriver() { XInputEnable(FALSE); }
|
XInputInputDriver::~XInputInputDriver() { XInputEnable(FALSE); }
|
||||||
|
|
||||||
|
#pragma warning(pop)
|
||||||
|
|
||||||
X_STATUS XInputInputDriver::Setup() { return X_STATUS_SUCCESS; }
|
X_STATUS XInputInputDriver::Setup() { return X_STATUS_SUCCESS; }
|
||||||
|
|
||||||
X_RESULT XInputInputDriver::GetCapabilities(uint32_t user_index, uint32_t flags,
|
X_RESULT XInputInputDriver::GetCapabilities(uint32_t user_index, uint32_t flags,
|
||||||
|
|
Loading…
Reference in New Issue