mirror of
https://github.com/holub/mame
synced 2025-04-19 15:11:37 +03:00
Update scripts for compile with latest BGFX (nw)
This commit is contained in:
parent
7acef62424
commit
a4ea92de24
@ -1269,16 +1269,6 @@ configuration { "vs2010" }
|
||||
"/wd4481", -- warning C4481: nonstandard extension used: override specifier 'override'
|
||||
}
|
||||
|
||||
configuration { "x32", "vs*" }
|
||||
libdirs {
|
||||
MAME_DIR .. "3rdparty/dxsdk/lib/x86",
|
||||
}
|
||||
|
||||
configuration { "x64", "vs*" }
|
||||
libdirs {
|
||||
MAME_DIR .. "3rdparty/dxsdk/lib/x64",
|
||||
}
|
||||
|
||||
configuration { "winphone8* or winstore8*" }
|
||||
removelinks {
|
||||
"DelayImp",
|
||||
|
@ -576,17 +576,20 @@ project "bgfx"
|
||||
MAME_DIR .. "3rdparty/bgfx/3rdparty",
|
||||
MAME_DIR .. "3rdparty/bx/include",
|
||||
MAME_DIR .. "3rdparty/bgfx/3rdparty/khronos",
|
||||
MAME_DIR .. "3rdparty/bgfx/3rdparty/dxsdk/include",
|
||||
}
|
||||
|
||||
configuration { "vs*" }
|
||||
includedirs {
|
||||
MAME_DIR .. "3rdparty/dxsdk/Include",
|
||||
MAME_DIR .. "3rdparty/bx/include/compat/msvc",
|
||||
}
|
||||
configuration { "mingw*" }
|
||||
includedirs {
|
||||
MAME_DIR .. "3rdparty/bx/include/compat/mingw",
|
||||
}
|
||||
defines {
|
||||
"nullptr=NULL" -- not used but needed for C++11 code
|
||||
}
|
||||
|
||||
configuration { "osx*" }
|
||||
includedirs {
|
||||
@ -631,6 +634,9 @@ project "bgfx"
|
||||
MAME_DIR .. "3rdparty/bgfx/src/renderer_null.cpp",
|
||||
MAME_DIR .. "3rdparty/bgfx/src/renderer_vk.cpp",
|
||||
MAME_DIR .. "3rdparty/bgfx/src/renderdoc.cpp",
|
||||
MAME_DIR .. "3rdparty/bgfx/src/shader_dxbc.cpp",
|
||||
MAME_DIR .. "3rdparty/bgfx/src/shader_dx9bc.cpp",
|
||||
MAME_DIR .. "3rdparty/bgfx/src/shader_spirv.cpp",
|
||||
MAME_DIR .. "3rdparty/bgfx/src/vertexdecl.cpp",
|
||||
MAME_DIR .. "3rdparty/bgfx/examples/common/bgfx_utils.cpp",
|
||||
MAME_DIR .. "3rdparty/bgfx/examples/common/bounds.cpp",
|
||||
|
@ -37,6 +37,7 @@ function maintargetosdoptions(_target,_subtarget)
|
||||
links {
|
||||
"comctl32",
|
||||
"comdlg32",
|
||||
"psapi",
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -241,7 +241,7 @@ int renderer_bgfx::draw(int update)
|
||||
#endif
|
||||
// This dummy draw call is here to make sure that view 0 is cleared
|
||||
// if no other draw calls are submitted to view 0.
|
||||
bgfx::submit(0);
|
||||
bgfx::touch(0);
|
||||
|
||||
window().m_primlist->acquire_lock();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user