trunk/scripts/src/osd/sdl.lua
| r245343 | r245344 | |
| 23 | 23 | "SDL_ttf", |
| 24 | 24 | } |
| 25 | 25 | end |
| 26 | if _OPTIONS["NO_OPENGL"]~="1" and _OPTIONS["USE_DISPATCH_GL"]~="1" then |
| 27 | links { |
| 28 | "GL" |
| 29 | } |
| 30 | end |
| 26 | 31 | linkoptions { |
| 27 | 32 | string.gsub(os.outputof("pkg-config --libs fontconfig"), '[\r\n]+', ' '), |
| 28 | 33 | } |
| 29 | 34 | end |
| 30 | 35 | |
| 31 | 36 | if _OPTIONS["targetos"]=="windows" then |
| 37 | if _OPTIONS["NO_OPENGL"]~="1" and _OPTIONS["USE_DISPATCH_GL"]~="1" then |
| 38 | links { |
| 39 | "opengl32" |
| 40 | } |
| 41 | end |
| 32 | 42 | configuration { "mingw*" } |
| 33 | 43 | linkoptions{ |
| 34 | 44 | "-municode", |
| r245343 | r245344 | |
| 44 | 54 | configuration { "vs*" } |
| 45 | 55 | links { |
| 46 | 56 | "SDL2", |
| 47 | | "opengl32", |
| 48 | 57 | } |
| 49 | 58 | configuration {} |
| 50 | 59 | |
| r245343 | r245344 | |
| 104 | 113 | |
| 105 | 114 | |
| 106 | 115 | newoption { |
| 116 | trigger = "NO_OPENGL", |
| 117 | description = "Disable use of OpenGL", |
| 118 | allowed = { |
| 119 | { "0", "Enable OpenGL" }, |
| 120 | { "1", "Disable OpenGL" }, |
| 121 | }, |
| 122 | } |
| 123 | |
| 124 | if not _OPTIONS["NO_OPENGL"] then |
| 125 | if _OPTIONS["targetos"]=="os2" then |
| 126 | _OPTIONS["NO_OPENGL"] = "1" |
| 127 | else |
| 128 | _OPTIONS["NO_OPENGL"] = "0" |
| 129 | end |
| 130 | end |
| 131 | |
| 132 | newoption { |
| 133 | trigger = "USE_DISPATCH_GL", |
| 134 | description = "Use GL-dispatching", |
| 135 | allowed = { |
| 136 | { "0", "Link to OpenGL library" }, |
| 137 | { "1", "Use GL-dispatching" }, |
| 138 | }, |
| 139 | } |
| 140 | |
| 141 | if not _OPTIONS["USE_DISPATCH_GL"] then |
| 142 | if USE_BGFX == 1 then |
| 143 | _OPTIONS["USE_DISPATCH_GL"] = "0" |
| 144 | else |
| 145 | _OPTIONS["USE_DISPATCH_GL"] = "1" |
| 146 | end |
| 147 | end |
| 148 | |
| 149 | newoption { |
| 107 | 150 | trigger = "NO_X11", |
| 108 | 151 | description = "Disable use of X11", |
| 109 | 152 | allowed = { |
| r245343 | r245344 | |
| 365 | 408 | MAME_DIR .. "src/osd/sdl/watchdog.c", |
| 366 | 409 | MAME_DIR .. "src/osd/modules/lib/osdobj_common.c", |
| 367 | 410 | MAME_DIR .. "src/osd/modules/render/drawsdl.c", |
| 368 | | MAME_DIR .. "src/osd/modules/render/drawogl.c", |
| 369 | 411 | MAME_DIR .. "src/osd/modules/debugger/none.c", |
| 370 | 412 | MAME_DIR .. "src/osd/modules/debugger/debugint.c", |
| 371 | 413 | MAME_DIR .. "src/osd/modules/debugger/debugwin.c", |
| 372 | 414 | MAME_DIR .. "src/osd/modules/debugger/debugqt.c", |
| 373 | | MAME_DIR .. "src/osd/modules/opengl/gl_shader_tool.c", |
| 374 | | MAME_DIR .. "src/osd/modules/opengl/gl_shader_mgr.c", |
| 375 | 415 | MAME_DIR .. "src/osd/modules/font/font_sdl.c", |
| 376 | 416 | MAME_DIR .. "src/osd/modules/font/font_windows.c", |
| 377 | 417 | MAME_DIR .. "src/osd/modules/font/font_osx.c", |
| r245343 | r245344 | |
| 386 | 426 | MAME_DIR .. "src/osd/modules/sound/sdl_sound.c", |
| 387 | 427 | MAME_DIR .. "src/osd/modules/sound/none.c", |
| 388 | 428 | } |
| 429 | if _OPTIONS["NO_OPENGL"]~="1" then |
| 430 | files { |
| 431 | MAME_DIR .. "src/osd/modules/render/drawogl.c", |
| 432 | MAME_DIR .. "src/osd/modules/opengl/gl_shader_tool.c", |
| 433 | MAME_DIR .. "src/osd/modules/opengl/gl_shader_mgr.c", |
| 434 | } |
| 435 | end |
| 389 | 436 | if _OPTIONS["SDL_LIBVER"]=="sdl2" then |
| 390 | 437 | files { |
| 391 | 438 | MAME_DIR .. "src/osd/modules/render/draw13.c", |