diff options
Diffstat (limited to 'scripts/src')
-rw-r--r-- | scripts/src/main.lua | 4 | ||||
-rw-r--r-- | scripts/src/osd.lua | 231 | ||||
-rw-r--r-- | scripts/src/osd/osdmini.lua | 93 | ||||
-rw-r--r-- | scripts/src/osd/osdmini_cfg.lua | 7 | ||||
-rw-r--r-- | scripts/src/osd/sdl.lua | 162 | ||||
-rw-r--r-- | scripts/src/osd/sdl_cfg.lua | 83 | ||||
-rw-r--r-- | scripts/src/osd/windows.lua | 131 | ||||
-rw-r--r-- | scripts/src/osd/windows_cfg.lua | 14 | ||||
-rw-r--r-- | scripts/src/osd_cfg.lua | 99 |
9 files changed, 492 insertions, 332 deletions
diff --git a/scripts/src/main.lua b/scripts/src/main.lua index 9b415f2870e..f7030d7ca82 100644 --- a/scripts/src/main.lua +++ b/scripts/src/main.lua @@ -75,7 +75,7 @@ function mainProject(_target, _subtarget) links{ "ocore_" .. _OPTIONS["osd"], } - dofile("src/osd_cfg.lua") + dofile("src/osd/" .. _OPTIONS["osd"] .. "_cfg.lua") includedirs { MAME_DIR .. "src/emu", @@ -112,4 +112,4 @@ function mainProject(_target, _subtarget) } debugdir (MAME_DIR) debugargs ("-window") -end
\ No newline at end of file +end diff --git a/scripts/src/osd.lua b/scripts/src/osd.lua deleted file mode 100644 index ed2c0bd7046..00000000000 --- a/scripts/src/osd.lua +++ /dev/null @@ -1,231 +0,0 @@ -project ("osd_" .. _OPTIONS["osd"]) - uuid (os.uuid("osd_" .. _OPTIONS["osd"])) - kind "StaticLib" - - removeflags { - "SingleOutputDir", - } - - options { - "ForceCPP", - } - - dofile("osd_cfg.lua") - - if _OPTIONS["osd"]=="windows" then - defines { - "DIRECTINPUT_VERSION=0x0800", - "DIRECT3D_VERSION=0x0900", - } - end - - includedirs { - MAME_DIR .. "src/emu", - MAME_DIR .. "src/osd", - MAME_DIR .. "src/lib", - MAME_DIR .. "src/lib/util", - MAME_DIR .. "src/osd/modules/render", - MAME_DIR .. "3rdparty", - MAME_DIR .. "3rdparty/winpcap/Include", - MAME_DIR .. "3rdparty/bgfx/include", - MAME_DIR .. "3rdparty/bx/include", - } - if _OPTIONS["osd"]=="osdmini" then - includedirs { - MAME_DIR .. "src/osd/sdl", - } - files { - MAME_DIR .. "src/osd/osdmini/minimain.c", - } - end - if _OPTIONS["osd"]=="sdl" then - includedirs { - MAME_DIR .. "src/osd/sdl", - } - if _OPTIONS["targetos"]=="windows" then - files { - MAME_DIR .. "src/osd/sdl/main.c", - } - end - if _OPTIONS["targetos"]=="macosx" then - files { - --MAME_DIR .. "src/osd/sdl/SDLMain_tmpl.m", - MAME_DIR .. "src/osd/modules/debugger/*.m", - MAME_DIR .. "src/osd/modules/debugger/osx/*.m", - MAME_DIR .. "src/osd/modules/debugger/osx/*.h", - } - end - files { - MAME_DIR .. "src/osd/sdl/sdlmain.*", - MAME_DIR .. "src/osd/sdl/input.*", - MAME_DIR .. "src/osd/sdl/video.*", - MAME_DIR .. "src/osd/sdl/window.*", - MAME_DIR .. "src/osd/sdl/output.*", - MAME_DIR .. "src/osd/sdl/watchdog.*", - MAME_DIR .. "src/osd/modules/render/drawsdl.*", - --ifeq ($(SDL_LIBVER),sdl2) - MAME_DIR .. "src/osd/modules/render/draw13.*", - --endif - MAME_DIR .. "src/osd/modules/debugger/none.*", - MAME_DIR .. "src/osd/modules/debugger/debugint.*", - MAME_DIR .. "src/osd/modules/debugger/debugwin.*", - MAME_DIR .. "src/osd/modules/debugger/debugqt.*", - - MAME_DIR .. "src/osd/modules/render/drawogl.*", - MAME_DIR .. "src/osd/modules/opengl/gl_shader_tool.*", - MAME_DIR .. "src/osd/modules/opengl/gl_shader_mgr.*", - } - if not (_OPTIONS["targetos"]=="macosx") then - files { - MAME_DIR .. "src/osd/modules/debugger/qt/*.*", - GEN_DIR .. "osd/modules/debugger/qt/*.*", - } - end - - if (USE_BGFX == 1) then - files { - MAME_DIR .. "src/osd/modules/render/drawbgfx.c", - } - end - end - if _OPTIONS["osd"]=="windows" then - includedirs { - MAME_DIR .. "src/osd/windows", - } - files { - MAME_DIR .. "src/osd/modules/render/drawd3d.c", - MAME_DIR .. "src/osd/modules/render/d3d/d3d9intf.c", - MAME_DIR .. "src/osd/modules/render/d3d/d3dhlsl.c", - MAME_DIR .. "src/osd/modules/render/drawdd.c", - MAME_DIR .. "src/osd/modules/render/drawgdi.c", - MAME_DIR .. "src/osd/modules/render/drawbgfx.c", - MAME_DIR .. "src/osd/modules/render/drawnone.c", - MAME_DIR .. "src/osd/windows/input.c", - MAME_DIR .. "src/osd/windows/output.c", - MAME_DIR .. "src/osd/windows/video.c", - MAME_DIR .. "src/osd/windows/window.c", - MAME_DIR .. "src/osd/windows/winmenu.c", - MAME_DIR .. "src/osd/windows/winmain.c", - MAME_DIR .. "src/osd/modules/debugger/none.*", - MAME_DIR .. "src/osd/modules/debugger/debugint.*", - MAME_DIR .. "src/osd/modules/debugger/debugwin.*", - MAME_DIR .. "src/osd/modules/debugger/debugqt.*", - MAME_DIR .. "src/osd/modules/debugger/win/*.*", - MAME_DIR .. "src/osd/modules/render/drawogl.*", - MAME_DIR .. "src/osd/modules/opengl/gl_shader_tool.*", - MAME_DIR .. "src/osd/modules/opengl/gl_shader_mgr.*", - } - end - files { - MAME_DIR .. "src/osd/modules/lib/osdobj_common.*", - MAME_DIR .. "src/osd/modules/font/font_sdl.*", - MAME_DIR .. "src/osd/modules/font/font_windows.*", - MAME_DIR .. "src/osd/modules/font/font_osx.*", - MAME_DIR .. "src/osd/modules/font/font_none.*", - MAME_DIR .. "src/osd/modules/netdev/taptun.*", - MAME_DIR .. "src/osd/modules/netdev/pcap.*", - MAME_DIR .. "src/osd/modules/netdev/none.*", - MAME_DIR .. "src/osd/modules/midi/portmidi.*", - MAME_DIR .. "src/osd/modules/midi/none.*", - MAME_DIR .. "src/osd/modules/sound/js_sound.*", - MAME_DIR .. "src/osd/modules/sound/direct_sound.*", - MAME_DIR .. "src/osd/modules/sound/sdl_sound.*", - MAME_DIR .. "src/osd/modules/sound/none.*", - } - -project ("ocore_" .. _OPTIONS["osd"]) - uuid (os.uuid("ocore_" .. _OPTIONS["osd"])) - kind "StaticLib" - - options { - "ForceCPP", - } - removeflags { - "SingleOutputDir", - } - - dofile("osd_cfg.lua") - - includedirs { - MAME_DIR .. "src/emu", - MAME_DIR .. "src/osd", - MAME_DIR .. "src/lib", - MAME_DIR .. "src/lib/util", - } - if _OPTIONS["targetos"]=="linux" then - BASE_TARGETOS = "unix" - SDLOS_TARGETOS = "unix" - SYNC_IMPLEMENTATION = "tc" - end - if _OPTIONS["targetos"]=="windows" then - BASE_TARGETOS = "win32" - SDLOS_TARGETOS = "win32" - SYNC_IMPLEMENTATION = "windows" - end - if _OPTIONS["targetos"]=="macosx" then - BASE_TARGETOS = "unix" - SDLOS_TARGETOS = "macosx" - SYNC_IMPLEMENTATION = "ntc" - end - files { - MAME_DIR .. "src/osd/modules/osdmodule.*", - } - if _OPTIONS["osd"]=="sdl" then - includedirs { - MAME_DIR .. "src/osd/sdl", - } - if _OPTIONS["targetos"]=="macosx" then - files { - MAME_DIR .. "src/osd/sdl/osxutils.m", - } - end - files { - MAME_DIR .. "src/osd/sdl/strconv.*", - MAME_DIR .. "src/osd/sdl/sdldir.*", - MAME_DIR .. "src/osd/sdl/sdlfile.*", - MAME_DIR .. "src/osd/sdl/sdlptty_" .. BASE_TARGETOS ..".*", - MAME_DIR .. "src/osd/sdl/sdlsocket.*", - MAME_DIR .. "src/osd/sdl/sdlos_" .. SDLOS_TARGETOS .. ".*", - MAME_DIR .. "src/osd/modules/lib/osdlib_" .. SDLOS_TARGETOS .. ".*", - MAME_DIR .. "src/osd/modules/sync/sync_" .. SYNC_IMPLEMENTATION .. ".*", - --ifdef NOASM - --MAME_DIR .. "src/osd/modules/sync/work_mini.*", - --else - MAME_DIR .. "src/osd/modules/sync/work_osd.*", - } - if _OPTIONS["targetos"]=="macosx" then - files { - MAME_DIR .. "src/osd/sdl/osxutils.m", - } - end - end - if _OPTIONS["osd"]=="windows" then - includedirs { - MAME_DIR .. "src/osd/windows", - MAME_DIR .. "src/lib/winpcap", - } - files { - MAME_DIR .. "src/osd/windows/main.c", - MAME_DIR .. "src/osd/windows/strconv.c", - MAME_DIR .. "src/osd/windows/windir.c", - MAME_DIR .. "src/osd/windows/winfile.c", - MAME_DIR .. "src/osd/modules/sync/sync_windows.c", - MAME_DIR .. "src/osd/windows/winutf8.c", - MAME_DIR .. "src/osd/windows/winutil.c", - MAME_DIR .. "src/osd/windows/winclip.c", - MAME_DIR .. "src/osd/windows/winsocket.c", - MAME_DIR .. "src/osd/modules/sync/work_osd.c", - MAME_DIR .. "src/osd/modules/lib/osdlib_win32.c", - MAME_DIR .. "src/osd/windows/winptty.c", - } - end - if _OPTIONS["osd"]=="osdmini" then - files { - MAME_DIR .. "src/osd/osdmini/minidir.*", - MAME_DIR .. "src/osd/osdmini/minifile.*", - MAME_DIR .. "src/osd/osdmini/minimisc.*", - MAME_DIR .. "src/osd/osdmini/minisync.*", - MAME_DIR .. "src/osd/osdmini/minitime.*", - MAME_DIR .. "src/osd/modules/sync/work_mini.*", - } - end diff --git a/scripts/src/osd/osdmini.lua b/scripts/src/osd/osdmini.lua new file mode 100644 index 00000000000..c3db9d211c6 --- /dev/null +++ b/scripts/src/osd/osdmini.lua @@ -0,0 +1,93 @@ +project ("osd_" .. _OPTIONS["osd"]) + uuid (os.uuid("osd_" .. _OPTIONS["osd"])) + kind "StaticLib" + + removeflags { + "SingleOutputDir", + } + + options { + "ForceCPP", + } + + dofile("osdmini_cfg.lua") + + includedirs { + MAME_DIR .. "src/emu", + MAME_DIR .. "src/osd", + MAME_DIR .. "src/lib", + MAME_DIR .. "src/lib/util", + MAME_DIR .. "src/osd/sdl", + MAME_DIR .. "src/osd/modules/render", + MAME_DIR .. "3rdparty", + MAME_DIR .. "3rdparty/winpcap/Include", + MAME_DIR .. "3rdparty/bgfx/include", + MAME_DIR .. "3rdparty/bx/include", + } + + files { + MAME_DIR .. "src/osd/osdmini/minimain.c", + MAME_DIR .. "src/osd/modules/lib/osdobj_common.*", + MAME_DIR .. "src/osd/modules/font/font_sdl.*", + MAME_DIR .. "src/osd/modules/font/font_windows.*", + MAME_DIR .. "src/osd/modules/font/font_osx.*", + MAME_DIR .. "src/osd/modules/font/font_none.*", + MAME_DIR .. "src/osd/modules/netdev/taptun.*", + MAME_DIR .. "src/osd/modules/netdev/pcap.*", + MAME_DIR .. "src/osd/modules/netdev/none.*", + MAME_DIR .. "src/osd/modules/midi/portmidi.*", + MAME_DIR .. "src/osd/modules/midi/none.*", + MAME_DIR .. "src/osd/modules/sound/js_sound.*", + MAME_DIR .. "src/osd/modules/sound/direct_sound.*", + MAME_DIR .. "src/osd/modules/sound/sdl_sound.*", + MAME_DIR .. "src/osd/modules/sound/none.*", + } + +project ("ocore_" .. _OPTIONS["osd"]) + uuid (os.uuid("ocore_" .. _OPTIONS["osd"])) + kind "StaticLib" + + options { + "ForceCPP", + } + + removeflags { + "SingleOutputDir", + } + + dofile("osdmini_cfg.lua") + + includedirs { + MAME_DIR .. "src/emu", + MAME_DIR .. "src/osd", + MAME_DIR .. "src/lib", + MAME_DIR .. "src/lib/util", + } + + if _OPTIONS["targetos"]=="linux" then + BASE_TARGETOS = "unix" + SDLOS_TARGETOS = "unix" + SYNC_IMPLEMENTATION = "tc" + end + + if _OPTIONS["targetos"]=="windows" then + BASE_TARGETOS = "win32" + SDLOS_TARGETOS = "win32" + SYNC_IMPLEMENTATION = "windows" + end + + if _OPTIONS["targetos"]=="macosx" then + BASE_TARGETOS = "unix" + SDLOS_TARGETOS = "macosx" + SYNC_IMPLEMENTATION = "ntc" + end + + files { + MAME_DIR .. "src/osd/modules/osdmodule.*", + MAME_DIR .. "src/osd/osdmini/minidir.*", + MAME_DIR .. "src/osd/osdmini/minifile.*", + MAME_DIR .. "src/osd/osdmini/minimisc.*", + MAME_DIR .. "src/osd/osdmini/minisync.*", + MAME_DIR .. "src/osd/osdmini/minitime.*", + MAME_DIR .. "src/osd/modules/sync/work_mini.*", + } diff --git a/scripts/src/osd/osdmini_cfg.lua b/scripts/src/osd/osdmini_cfg.lua new file mode 100644 index 00000000000..7b63824a3f3 --- /dev/null +++ b/scripts/src/osd/osdmini_cfg.lua @@ -0,0 +1,7 @@ +defines { + "OSD_MINI", + "USE_QTDEBUG", + "USE_SDL", + "SDLMAME_NOASM=1", + "USE_OPENGL=0", +} diff --git a/scripts/src/osd/sdl.lua b/scripts/src/osd/sdl.lua new file mode 100644 index 00000000000..fb7eae99383 --- /dev/null +++ b/scripts/src/osd/sdl.lua @@ -0,0 +1,162 @@ +project ("osd_" .. _OPTIONS["osd"]) + uuid (os.uuid("osd_" .. _OPTIONS["osd"])) + kind "StaticLib" + + removeflags { + "SingleOutputDir", + } + + options { + "ForceCPP", + } + + dofile("sdl_cfg.lua") + + includedirs { + MAME_DIR .. "src/emu", + MAME_DIR .. "src/osd", + MAME_DIR .. "src/lib", + MAME_DIR .. "src/lib/util", + MAME_DIR .. "src/osd/modules/render", + MAME_DIR .. "3rdparty", + MAME_DIR .. "3rdparty/winpcap/Include", + MAME_DIR .. "3rdparty/bgfx/include", + MAME_DIR .. "3rdparty/bx/include", + MAME_DIR .. "src/osd/sdl", + } + + if _OPTIONS["targetos"]=="windows" then + files { + MAME_DIR .. "src/osd/sdl/main.c", + } + end + + if _OPTIONS["targetos"]=="macosx" then + files { + --MAME_DIR .. "src/osd/sdl/SDLMain_tmpl.m", + MAME_DIR .. "src/osd/modules/debugger/*.m", + MAME_DIR .. "src/osd/modules/debugger/osx/*.m", + MAME_DIR .. "src/osd/modules/debugger/osx/*.h", + } + end + + files { + MAME_DIR .. "src/osd/sdl/sdlmain.*", + MAME_DIR .. "src/osd/sdl/input.*", + MAME_DIR .. "src/osd/sdl/video.*", + MAME_DIR .. "src/osd/sdl/window.*", + MAME_DIR .. "src/osd/sdl/output.*", + MAME_DIR .. "src/osd/sdl/watchdog.*", + MAME_DIR .. "src/osd/modules/render/drawsdl.*", + --ifeq ($(SDL_LIBVER),sdl2) + MAME_DIR .. "src/osd/modules/render/draw13.*", + --endif + MAME_DIR .. "src/osd/modules/debugger/none.*", + MAME_DIR .. "src/osd/modules/debugger/debugint.*", + MAME_DIR .. "src/osd/modules/debugger/debugwin.*", + MAME_DIR .. "src/osd/modules/debugger/debugqt.*", + MAME_DIR .. "src/osd/modules/render/drawogl.*", + MAME_DIR .. "src/osd/modules/opengl/gl_shader_tool.*", + MAME_DIR .. "src/osd/modules/opengl/gl_shader_mgr.*", + } + + if not (_OPTIONS["targetos"]=="macosx") then + files { + MAME_DIR .. "src/osd/modules/debugger/qt/*.*", + GEN_DIR .. "osd/modules/debugger/qt/*.*", + } + end + + if (USE_BGFX == 1) then + files { + MAME_DIR .. "src/osd/modules/render/drawbgfx.c", + } + end + + files { + MAME_DIR .. "src/osd/modules/lib/osdobj_common.*", + MAME_DIR .. "src/osd/modules/font/font_sdl.*", + MAME_DIR .. "src/osd/modules/font/font_windows.*", + MAME_DIR .. "src/osd/modules/font/font_osx.*", + MAME_DIR .. "src/osd/modules/font/font_none.*", + MAME_DIR .. "src/osd/modules/netdev/taptun.*", + MAME_DIR .. "src/osd/modules/netdev/pcap.*", + MAME_DIR .. "src/osd/modules/netdev/none.*", + MAME_DIR .. "src/osd/modules/midi/portmidi.*", + MAME_DIR .. "src/osd/modules/midi/none.*", + MAME_DIR .. "src/osd/modules/sound/js_sound.*", + MAME_DIR .. "src/osd/modules/sound/direct_sound.*", + MAME_DIR .. "src/osd/modules/sound/sdl_sound.*", + MAME_DIR .. "src/osd/modules/sound/none.*", + } + +project ("ocore_" .. _OPTIONS["osd"]) + uuid (os.uuid("ocore_" .. _OPTIONS["osd"])) + kind "StaticLib" + + options { + "ForceCPP", + } + + removeflags { + "SingleOutputDir", + } + + dofile("sdl_cfg.lua") + + includedirs { + MAME_DIR .. "src/emu", + MAME_DIR .. "src/osd", + MAME_DIR .. "src/lib", + MAME_DIR .. "src/lib/util", + MAME_DIR .. "src/osd/sdl", + } + + if _OPTIONS["targetos"]=="linux" then + BASE_TARGETOS = "unix" + SDLOS_TARGETOS = "unix" + SYNC_IMPLEMENTATION = "tc" + end + + if _OPTIONS["targetos"]=="windows" then + BASE_TARGETOS = "win32" + SDLOS_TARGETOS = "win32" + SYNC_IMPLEMENTATION = "windows" + end + + if _OPTIONS["targetos"]=="macosx" then + BASE_TARGETOS = "unix" + SDLOS_TARGETOS = "macosx" + SYNC_IMPLEMENTATION = "ntc" + end + + files { + MAME_DIR .. "src/osd/modules/osdmodule.*", + } + + if _OPTIONS["targetos"]=="macosx" then + files { + MAME_DIR .. "src/osd/sdl/osxutils.m", + } + end + + files { + MAME_DIR .. "src/osd/sdl/strconv.*", + MAME_DIR .. "src/osd/sdl/sdldir.*", + MAME_DIR .. "src/osd/sdl/sdlfile.*", + MAME_DIR .. "src/osd/sdl/sdlptty_" .. BASE_TARGETOS ..".*", + MAME_DIR .. "src/osd/sdl/sdlsocket.*", + MAME_DIR .. "src/osd/sdl/sdlos_" .. SDLOS_TARGETOS .. ".*", + MAME_DIR .. "src/osd/modules/lib/osdlib_" .. SDLOS_TARGETOS .. ".*", + MAME_DIR .. "src/osd/modules/sync/sync_" .. SYNC_IMPLEMENTATION .. ".*", + --ifdef NOASM + --MAME_DIR .. "src/osd/modules/sync/work_mini.*", + --else + MAME_DIR .. "src/osd/modules/sync/work_osd.*", + } + + if _OPTIONS["targetos"]=="macosx" then + files { + MAME_DIR .. "src/osd/sdl/osxutils.m", + } + end diff --git a/scripts/src/osd/sdl_cfg.lua b/scripts/src/osd/sdl_cfg.lua new file mode 100644 index 00000000000..b94c19d999d --- /dev/null +++ b/scripts/src/osd/sdl_cfg.lua @@ -0,0 +1,83 @@ +--forcedincludes { +-- MAME_DIR .. "src/osd/sdl/sdlprefix.h" +--} + +if _OPTIONS["targetos"]=="windows" then + defines { + "OSD_SDL", + "SDLMAME_WIN32", + "X64_WINDOWS_ABI", + "UNICODE", + "_UNICODE", + "SDLMAME_SDL2=1", + "USE_XINPUT=0", + "USE_OPENGL=1", + "USE_QTDEBUG=1", + } + + buildoptions { + "-I$(shell qmake -query QT_INSTALL_HEADERS)/QtCore", + "-I$(shell qmake -query QT_INSTALL_HEADERS)/QtGui", + "-I$(shell qmake -query QT_INSTALL_HEADERS)", + } + + linkoptions{ + "-L$(shell qmake -query QT_INSTALL_LIBS)", + } + + links { + "qtmain", + "QtGui4", + "QtCore4", + } +end + +if _OPTIONS["targetos"]=="linux" then + defines { + "OSD_SDL", + "SDLMAME_UNIX", + "SDLMAME_X11", + "SDLMAME_SDL2=1", + "USE_XINPUT=0", + "USE_OPENGL=1", + "USE_QTDEBUG=1", + } + + if (USE_BGFX == 1) then + defines { + "USE_BGFX" + } + end + + buildoptions { + '$(shell pkg-config --cflags QtGui)', + } + + links { + 'QtGui', + 'QtCore', + } + + --linkoptions { + -- '$(shell pkg-config --libs QtGui)', + --} +end + +if _OPTIONS["targetos"]=="macosx" then + defines { + "OSD_SDL", + "SDLMAME_UNIX", + "SDLMAME_MACOSX", + "SDLMAME_DARWIN", + "SDLMAME_SDL2=1", + "USE_XINPUT=0", + "USE_OPENGL=1", + "USE_QTDEBUG=0", + } + + if (USE_BGFX == 1) then + defines { + "USE_BGFX" + } + end +end diff --git a/scripts/src/osd/windows.lua b/scripts/src/osd/windows.lua new file mode 100644 index 00000000000..1cc64c2eae9 --- /dev/null +++ b/scripts/src/osd/windows.lua @@ -0,0 +1,131 @@ +project ("osd_" .. _OPTIONS["osd"]) + uuid (os.uuid("osd_" .. _OPTIONS["osd"])) + kind "StaticLib" + + removeflags { + "SingleOutputDir", + } + + options { + "ForceCPP", + } + + dofile("windows_cfg.lua") + + defines { + "DIRECTINPUT_VERSION=0x0800", + "DIRECT3D_VERSION=0x0900", + } + + includedirs { + MAME_DIR .. "src/emu", + MAME_DIR .. "src/osd", + MAME_DIR .. "src/lib", + MAME_DIR .. "src/lib/util", + MAME_DIR .. "src/osd/modules/render", + MAME_DIR .. "3rdparty", + MAME_DIR .. "3rdparty/winpcap/Include", + MAME_DIR .. "3rdparty/bgfx/include", + MAME_DIR .. "3rdparty/bx/include", + } + + includedirs { + MAME_DIR .. "src/osd/windows", + } + + files { + MAME_DIR .. "src/osd/modules/render/drawd3d.c", + MAME_DIR .. "src/osd/modules/render/d3d/d3d9intf.c", + MAME_DIR .. "src/osd/modules/render/d3d/d3dhlsl.c", + MAME_DIR .. "src/osd/modules/render/drawdd.c", + MAME_DIR .. "src/osd/modules/render/drawgdi.c", + MAME_DIR .. "src/osd/modules/render/drawbgfx.c", + MAME_DIR .. "src/osd/modules/render/drawnone.c", + MAME_DIR .. "src/osd/windows/input.c", + MAME_DIR .. "src/osd/windows/output.c", + MAME_DIR .. "src/osd/windows/video.c", + MAME_DIR .. "src/osd/windows/window.c", + MAME_DIR .. "src/osd/windows/winmenu.c", + MAME_DIR .. "src/osd/windows/winmain.c", + MAME_DIR .. "src/osd/modules/debugger/none.*", + MAME_DIR .. "src/osd/modules/debugger/debugint.*", + MAME_DIR .. "src/osd/modules/debugger/debugwin.*", + MAME_DIR .. "src/osd/modules/debugger/debugqt.*", + MAME_DIR .. "src/osd/modules/debugger/win/*.*", + MAME_DIR .. "src/osd/modules/render/drawogl.*", + MAME_DIR .. "src/osd/modules/opengl/gl_shader_tool.*", + MAME_DIR .. "src/osd/modules/opengl/gl_shader_mgr.*", + MAME_DIR .. "src/osd/modules/lib/osdobj_common.*", + MAME_DIR .. "src/osd/modules/font/font_sdl.*", + MAME_DIR .. "src/osd/modules/font/font_windows.*", + MAME_DIR .. "src/osd/modules/font/font_osx.*", + MAME_DIR .. "src/osd/modules/font/font_none.*", + MAME_DIR .. "src/osd/modules/netdev/taptun.*", + MAME_DIR .. "src/osd/modules/netdev/pcap.*", + MAME_DIR .. "src/osd/modules/netdev/none.*", + MAME_DIR .. "src/osd/modules/midi/portmidi.*", + MAME_DIR .. "src/osd/modules/midi/none.*", + MAME_DIR .. "src/osd/modules/sound/js_sound.*", + MAME_DIR .. "src/osd/modules/sound/direct_sound.*", + MAME_DIR .. "src/osd/modules/sound/sdl_sound.*", + MAME_DIR .. "src/osd/modules/sound/none.*", + } + +project ("ocore_" .. _OPTIONS["osd"]) + uuid (os.uuid("ocore_" .. _OPTIONS["osd"])) + kind "StaticLib" + + options { + "ForceCPP", + } + removeflags { + "SingleOutputDir", + } + + dofile("windows_cfg.lua") + + includedirs { + MAME_DIR .. "src/emu", + MAME_DIR .. "src/osd", + MAME_DIR .. "src/lib", + MAME_DIR .. "src/lib/util", + } + + --if _OPTIONS["targetos"]=="linux" then + -- BASE_TARGETOS = "unix" + -- SDLOS_TARGETOS = "unix" + -- SYNC_IMPLEMENTATION = "tc" + --end + + --if _OPTIONS["targetos"]=="windows" then + BASE_TARGETOS = "win32" + SDLOS_TARGETOS = "win32" + SYNC_IMPLEMENTATION = "windows" + --end + + --if _OPTIONS["targetos"]=="macosx" then + -- BASE_TARGETOS = "unix" + -- SDLOS_TARGETOS = "macosx" + -- SYNC_IMPLEMENTATION = "ntc" + --end + + includedirs { + MAME_DIR .. "src/osd/windows", + MAME_DIR .. "src/lib/winpcap", + } + + files { + MAME_DIR .. "src/osd/modules/osdmodule.*", + MAME_DIR .. "src/osd/windows/main.c", + MAME_DIR .. "src/osd/windows/strconv.c", + MAME_DIR .. "src/osd/windows/windir.c", + MAME_DIR .. "src/osd/windows/winfile.c", + MAME_DIR .. "src/osd/modules/sync/sync_windows.c", + MAME_DIR .. "src/osd/windows/winutf8.c", + MAME_DIR .. "src/osd/windows/winutil.c", + MAME_DIR .. "src/osd/windows/winclip.c", + MAME_DIR .. "src/osd/windows/winsocket.c", + MAME_DIR .. "src/osd/modules/sync/work_osd.c", + MAME_DIR .. "src/osd/modules/lib/osdlib_win32.c", + MAME_DIR .. "src/osd/windows/winptty.c", + } diff --git a/scripts/src/osd/windows_cfg.lua b/scripts/src/osd/windows_cfg.lua new file mode 100644 index 00000000000..7644c13164b --- /dev/null +++ b/scripts/src/osd/windows_cfg.lua @@ -0,0 +1,14 @@ +defines { + "UNICODE", + "_UNICODE", + "X64_WINDOWS_ABI", + "OSD_WINDOWS", + "USE_SDL=0", + "USE_QTDEBUG=0", + "USE_OPENGL=1", + "USE_DISPATCH_GL=1", + "DIRECTINPUT_VERSION=0x0800" +} +--forcedincludes { +-- MAME_DIR .. "src/osd/windows/winprefix.h" +--} diff --git a/scripts/src/osd_cfg.lua b/scripts/src/osd_cfg.lua deleted file mode 100644 index 5bdbfb8fdbb..00000000000 --- a/scripts/src/osd_cfg.lua +++ /dev/null @@ -1,99 +0,0 @@ -if _OPTIONS["osd"]=="windows" then - defines { - "UNICODE", - "_UNICODE", - "X64_WINDOWS_ABI", - "OSD_WINDOWS", - "USE_SDL=0", - "USE_QTDEBUG=0", - "USE_OPENGL=1", - "USE_DISPATCH_GL=1", - "DIRECTINPUT_VERSION=0x0800" - } - --forcedincludes { - -- MAME_DIR .. "src/osd/windows/winprefix.h" - --} -elseif _OPTIONS["osd"]=="sdl" then - --forcedincludes { - -- MAME_DIR .. "src/osd/sdl/sdlprefix.h" - --} - if _OPTIONS["targetos"]=="windows" then - defines { - "OSD_SDL", - "SDLMAME_WIN32", - "X64_WINDOWS_ABI", - "UNICODE", - "_UNICODE", - "SDLMAME_SDL2=1", - "USE_XINPUT=0", - "USE_OPENGL=1", - "USE_QTDEBUG=1", - } - buildoptions { - "-I$(shell qmake -query QT_INSTALL_HEADERS)/QtCore", - "-I$(shell qmake -query QT_INSTALL_HEADERS)/QtGui", - "-I$(shell qmake -query QT_INSTALL_HEADERS)", - } - - linkoptions{ - "-L$(shell qmake -query QT_INSTALL_LIBS)", - } - - links { - "qtmain", - "QtGui4", - "QtCore4", - } - end - if _OPTIONS["targetos"]=="linux" then - defines { - "OSD_SDL", - "SDLMAME_UNIX", - "SDLMAME_X11", - "SDLMAME_SDL2=1", - "USE_XINPUT=0", - "USE_OPENGL=1", - "USE_QTDEBUG=1", - } - if (USE_BGFX == 1) then - defines { - "USE_BGFX" - } - end - buildoptions { - '$(shell pkg-config --cflags QtGui)', - } - links { - 'QtGui', - 'QtCore', - } - --linkoptions { - -- '$(shell pkg-config --libs QtGui)', - --} - end - if _OPTIONS["targetos"]=="macosx" then - defines { - "OSD_SDL", - "SDLMAME_UNIX", - "SDLMAME_MACOSX", - "SDLMAME_DARWIN", - "SDLMAME_SDL2=1", - "USE_XINPUT=0", - "USE_OPENGL=1", - "USE_QTDEBUG=0", - } - if (USE_BGFX == 1) then - defines { - "USE_BGFX" - } - end - end -elseif _OPTIONS["osd"]=="osdmini" then - defines { - "OSD_MINI", - "USE_QTDEBUG", - "USE_SDL", - "SDLMAME_NOASM=1", - "USE_OPENGL=0", - } -end |