Previous 199869 Revisions Next

r36831 Tuesday 31st March, 2015 at 14:21:59 UTC by Vasantha Crabb
Restore NO_USE_MIDI and some more OS support from the old SDL makefile
[/trunk]makefile
[scripts]genie.lua
[scripts/src/osd]sdl.lua sdl_cfg.lua
[src/mame/drivers]zn.c

trunk/makefile
r245342r245343
336336PARAMS += --NO_USE_XINPUT='$(NO_USE_XINPUT)'
337337endif
338338
339ifdef NO_USE_MIDI
340PARAMS += --NO_USE_MIDI='$(NO_USE_MIDI)'
341endif
342
339343ifdef SDL_LIBVER
340344PARAMS += --SDL_LIBVER='$(SDL_LIBVER)'
341345endif
trunk/scripts/genie.lua
r245342r245343
696696
697697configuration { "linux-*" }
698698      links {
699         "asound",
700699         "dl",
701700         "GL",
702701      }
r245342r245343
714713
715714configuration { "osx*" }
716715      links {
717         "CoreAudio.framework",
718         "CoreMIDI.framework",
719716         "pthread",
720717      }
721718      flags {
r245342r245343
896893   error("Unsupported value '" .. _OPTIONS["osd"] .. "' for OSD")
897894end
898895dofile(path.join("src", "osd", _OPTIONS["osd"] .. ".lua"))
899dofile(path.join("src", "lib.lua"))
900896
901group "3rdparty"
902897dofile(path.join("src", "3rdparty.lua"))
898dofile(path.join("src", "lib.lua"))
903899
904
905900group "core"
906901
907902dofile(path.join("src", "emu.lua"))
trunk/scripts/src/osd/sdl.lua
r245342r245343
5959         }
6060      end
6161   elseif _OPTIONS["targetos"]=="linux" then
62      if (USE_QT == 1) then
62      if USE_QT == 1 then
63         linkoptions {
64            "$(shell pkg-config --libs QtGui)",
65         }
6366         links {
6467            "QtGui",
6568            "QtCore",
6669         }
67
70      end
71      if _OPTIONS["NO_USE_MIDI"]~="1" then
6872         linkoptions {
69            "$(shell pkg-config --libs QtGui)",
73            string.gsub(os.outputof("pkg-config --libs alsa"), '[\r\n]+', ' '),
7074         }
7175      end
76   elseif _OPTIONS["targetos"]=="macosx" then
77      if _OPTIONS["NO_USE_MIDI"]~="1" then
78         links {
79            "CoreAudio.framework",
80            "CoreMIDI.framework",
81         }
82      end
83   elseif _OPTIONS["targetos"]=="haiku" then
84      links {
85         "network",
86         "bsd",
87      }
7288   end
7389   
7490   configuration { "mingw*" or "vs*" }
r245342r245343
8298   if not _OPTIONS["SDL_INSTALL_ROOT"] then
8399      return _OPTIONS["SDL_LIBVER"] .. "-config"
84100   else
85      return _OPTIONS["SDL_INSTALL_ROOT"] .. "/bin/" .. _OPTIONS["SDL_LIBVER"] .. "-config"
101      return path.join(_OPTIONS["SDL_INSTALL_ROOT"],"bin",_OPTIONS["SDL_LIBVER"]) .. "-config"
86102   end
87103end
88104
r245342r245343
118134end
119135
120136newoption {
137   trigger = "NO_USE_MIDI",
138   description = "Disable MIDI I/O",
139   allowed = {
140      { "0",  "Enable MIDI"  },
141      { "1",  "Disable MIDI" },
142   },
143}
144
145if not _OPTIONS["NO_USE_MIDI"] then
146   if _OPTIONS["targetos"]=="freebsd" or _OPTIONS["targetos"]=="openbsd" or _OPTIONS["targetos"]=="netbsd" or _OPTIONS["targetos"]=="solaris" or _OPTIONS["targetos"]=="haiku" or _OPTIONS["targetos"] == "emscripten" or _OPTIONS["targetos"] == "os2" then
147      _OPTIONS["NO_USE_MIDI"] = "1"
148   else
149      _OPTIONS["NO_USE_MIDI"] = "0"
150   end
151end
152
153newoption {
121154   trigger = "SDL_LIBVER",
122155   description = "Choose SDL version",
123156   allowed = {
r245342r245343
244277         end
245278      end
246279   end
280elseif BASE_TARGETOS=="os2" then
281   linkoptions {
282      string.gsub(os.outputof(sdlconfigcmd() .. " --libs"), '[\r\n]+', ' '),
283   }
284   links {
285      "pthread"
286   }
247287end
248288
249289configuration { "mingw*" }
trunk/scripts/src/osd/sdl_cfg.lua
r245342r245343
2828   }
2929end
3030
31if _OPTIONS["NO_USE_MIDI"]=="1" then
32   defines {
33      "NO_USE_MIDI",
34   }
35elseif _OPTIONS["targetos"]=="linux" then
36   buildoptions {
37      string.gsub(os.outputof("pkg-config --cflags alsa"), '[\r\n]+', ' '),
38   }
39end
40
3141if _OPTIONS["SDL_LIBVER"]=="sdl2" then
3242   defines {
3343      "SDLMAME_SDL2=1",
r245342r245343
108118      "USE_QTDEBUG=" .. USE_QT,
109119      "SDLMAME_NET_TAPTUN",
110120   }
111
112121   buildoptions {
113122      '$(shell pkg-config --cflags QtGui)',
114123   }
r245342r245343
120129      "USE_QTDEBUG=0",
121130      "SDLMAME_NET_PCAP",
122131   }
132elseif _OPTIONS["targetos"]=="freebsd" then
133   defines {
134      "NO_AFFINITY_NP",
135   }
136   buildoptions {
137      -- /usr/local/include is not considered a system include director on FreeBSD.  GL.h resides there and throws warnings
138      "-isystem /usr/local/include",
139   }
140elseif _OPTIONS["targetos"]=="solaris" then
141   defines {
142      "NO_AFFINITY_NP",
143   }
123144elseif _OPTIONS["targetos"]=="os2" then
124145   defines {
125146      "SDLMAME_OS2",
126147   }
148   buildoptions {
149      string.gsub(os.outputof(sdlconfigcmd() .. " --cflags"), '[\r\n]+', ' '),
150   }
127151end
trunk/src/mame/drivers/zn.c
r245342r245343
48414841GAME( 1999, sfex2pa,   sfex2p,   coh3002c, zn6b, driver_device, 0, ROT0, "Capcom / Arika", "Street Fighter EX2 Plus (Asia 990611)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
48424842GAME( 1999, sfex2ph,   sfex2p,   coh3002c, zn6b, driver_device, 0, ROT0, "Capcom / Arika", "Street Fighter EX2 Plus (Hispanic 990611)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
48434843GAME( 1999, sfex2pj,   sfex2p,   coh3002c, zn6b, driver_device, 0, ROT0, "Capcom / Arika", "Street Fighter EX2 Plus (Japan 990611)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
4844GAME( 1999, strider2,  cpzn2,    coh3002c, zn,   driver_device, 0, ROT0, "Capcom", "Strider 2 (USA 991213)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
4845GAME( 1999, strider2a, strider2, coh3002c, zn,   driver_device, 0, ROT0, "Capcom", "Strider 2 (Asia 991213)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
4846GAME( 1999, shiryu2,   strider2, coh3002c, zn,   driver_device, 0, ROT0, "Capcom", "Strider Hiryu 2 (Japan 991213)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
4844GAME( 1999, strider2,  cpzn2,    coh3002c, zn,   driver_device, 0, ROT0, "Capcom", "Strider 2 (USA 991213)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) // random hangs / crashes
4845GAME( 1999, strider2a, strider2, coh3002c, zn,   driver_device, 0, ROT0, "Capcom", "Strider 2 (Asia 991213)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING )
4846GAME( 1999, shiryu2,   strider2, coh3002c, zn,   driver_device, 0, ROT0, "Capcom", "Strider Hiryu 2 (Japan 991213)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING  )
48474847
48484848/* Atari */
48494849


Previous 199869 Revisions Next


© 1997-2024 The MAME Team