trunk/scripts/src/osd/sdl.lua
| r245351 | r245352 | |
| 265 | 265 | end |
| 266 | 266 | |
| 267 | 267 | |
| 268 | | BASE_TARGETOS = "unix" |
| 269 | | SDLOS_TARGETOS = "unix" |
| 268 | BASE_TARGETOS = "unix" |
| 269 | SDLOS_TARGETOS = "unix" |
| 270 | 270 | SYNC_IMPLEMENTATION = "tc" |
| 271 | | if _OPTIONS["targetos"]=="openbsd" then |
| 271 | SDL_NETWORK = "" |
| 272 | if _OPTIONS["targetos"]=="linux" then |
| 273 | SDL_NETWORK = "taptun" |
| 274 | elseif _OPTIONS["targetos"]=="openbsd" then |
| 272 | 275 | SYNC_IMPLEMENTATION = "ntc" |
| 273 | 276 | elseif _OPTIONS["targetos"]=="netbsd" then |
| 274 | 277 | SYNC_IMPLEMENTATION = "ntc" |
| 278 | SDL_NETWORK = "pcap" |
| 275 | 279 | elseif _OPTIONS["targetos"]=="haiku" then |
| 276 | 280 | SYNC_IMPLEMENTATION = "ntc" |
| 277 | 281 | elseif _OPTIONS["targetos"]=="emscripten" then |
| 278 | 282 | SYNC_IMPLEMENTATION = "mini" |
| 279 | 283 | elseif _OPTIONS["targetos"]=="windows" then |
| 280 | | BASE_TARGETOS = "win32" |
| 281 | | SDLOS_TARGETOS = "win32" |
| 284 | BASE_TARGETOS = "win32" |
| 285 | SDLOS_TARGETOS = "win32" |
| 282 | 286 | SYNC_IMPLEMENTATION = "windows" |
| 287 | SDL_NETWORK = "pcap" |
| 283 | 288 | elseif _OPTIONS["targetos"]=="macosx" then |
| 284 | | SDLOS_TARGETOS = "macosx" |
| 289 | SDLOS_TARGETOS = "macosx" |
| 285 | 290 | SYNC_IMPLEMENTATION = "ntc" |
| 291 | SDL_NETWORK = "pcap" |
| 286 | 292 | elseif _OPTIONS["targetos"]=="os2" then |
| 287 | | BASE_TARGETOS = "os2" |
| 288 | | SDLOS_TARGETOS = "os2" |
| 293 | BASE_TARGETOS = "os2" |
| 294 | SDLOS_TARGETOS = "os2" |
| 289 | 295 | SYNC_IMPLEMENTATION = "os2" |
| 290 | 296 | end |
| 291 | 297 | |
trunk/scripts/src/osd/sdl_cfg.lua
| r245351 | r245352 | |
| 2 | 2 | MAME_DIR .. "src/osd/sdl/sdlprefix.h" |
| 3 | 3 | } |
| 4 | 4 | |
| 5 | if SDL_NETWORK~="" and not _OPTIONS["DONT_USE_NETWORK"] then |
| 6 | defines { |
| 7 | "SDLMAME_NET_" .. string.upper(SDL_NETWORK), |
| 8 | } |
| 9 | end |
| 10 | |
| 5 | 11 | if _OPTIONS["NO_OPENGL"]=="1" then |
| 6 | 12 | defines { |
| 7 | 13 | "USE_OPENGL=0", |
| r245351 | r245352 | |
| 119 | 125 | "UNICODE", |
| 120 | 126 | "_UNICODE", |
| 121 | 127 | "USE_QTDEBUG=" .. USE_QT, |
| 122 | | "SDLMAME_NET_PCAP", |
| 123 | 128 | "main=utf8_main", |
| 124 | 129 | } |
| 125 | 130 | configuration { "mingw*" } |
| r245351 | r245352 | |
| 138 | 143 | elseif _OPTIONS["targetos"]=="linux" then |
| 139 | 144 | defines { |
| 140 | 145 | "USE_QTDEBUG=" .. USE_QT, |
| 141 | | "SDLMAME_NET_TAPTUN", |
| 142 | 146 | } |
| 143 | 147 | buildoptions { |
| 144 | 148 | '$(shell pkg-config --cflags QtGui)', |
| r245351 | r245352 | |
| 148 | 152 | "SDLMAME_MACOSX", |
| 149 | 153 | "SDLMAME_DARWIN", |
| 150 | 154 | "USE_QTDEBUG=0", |
| 151 | | "SDLMAME_NET_PCAP", |
| 152 | 155 | } |
| 153 | 156 | elseif _OPTIONS["targetos"]=="freebsd" then |
| 154 | 157 | buildoptions { |