Previous 199869 Revisions Next

r36832 Tuesday 31st March, 2015 at 14:21:59 UTC by Vasantha Crabb
Restore NO_OPENGL and USE_DISPATCH_GL
[/trunk]makefile
[scripts]genie.lua
[scripts/src/osd]sdl.lua sdl_cfg.lua

trunk/makefile
r245343r245344
328328endif
329329PARAMS += --USE_QT=$(USE_QT)
330330
331ifdef NO_OPENGL
332PARAMS += --NO_OPENGL='$(NO_OPENGL)'
333endif
334
335ifdef USE_DISPATCH_GL
336PARAMS += --USE_DISPATCH_GL='$(USE_DISPATCH_GL)'
337endif
338
331339ifdef NO_X11
332340PARAMS += --NO_X11='$(NO_X11)'
333341endif
trunk/scripts/genie.lua
r245343r245344
697697configuration { "linux-*" }
698698      links {
699699         "dl",
700         "GL",
701700      }
702701      defines
703702      {
r245343r245344
727726      }
728727if _OPTIONS["osd"]=="sdl" then
729728      links {
730         "opengl32",
731729         "SDL2",
732730         "imm32",
733731         "version",
trunk/scripts/src/osd/sdl.lua
r245343r245344
2323            "SDL_ttf",
2424         }
2525      end
26      if _OPTIONS["NO_OPENGL"]~="1" and _OPTIONS["USE_DISPATCH_GL"]~="1" then
27         links {
28            "GL"
29         }
30      end
2631      linkoptions {
2732         string.gsub(os.outputof("pkg-config --libs fontconfig"), '[\r\n]+', ' '),
2833      }
2934   end
3035
3136   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
3242      configuration { "mingw*" }
3343         linkoptions{
3444            "-municode",
r245343r245344
4454      configuration { "vs*" }   
4555         links {
4656            "SDL2",
47            "opengl32",
4857         }
4958      configuration {}
5059
r245343r245344
104113
105114
106115newoption {
116   trigger = "NO_OPENGL",
117   description = "Disable use of OpenGL",
118   allowed = {
119      { "0",  "Enable OpenGL"  },
120      { "1",  "Disable OpenGL" },
121   },
122}
123
124if 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
130end
131
132newoption {
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
141if 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
147end
148
149newoption {
107150   trigger = "NO_X11",
108151   description = "Disable use of X11",
109152   allowed = {
r245343r245344
365408      MAME_DIR .. "src/osd/sdl/watchdog.c",
366409      MAME_DIR .. "src/osd/modules/lib/osdobj_common.c",
367410      MAME_DIR .. "src/osd/modules/render/drawsdl.c",
368      MAME_DIR .. "src/osd/modules/render/drawogl.c",
369411      MAME_DIR .. "src/osd/modules/debugger/none.c",
370412      MAME_DIR .. "src/osd/modules/debugger/debugint.c",
371413      MAME_DIR .. "src/osd/modules/debugger/debugwin.c",
372414      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",
375415      MAME_DIR .. "src/osd/modules/font/font_sdl.c",
376416      MAME_DIR .. "src/osd/modules/font/font_windows.c",
377417      MAME_DIR .. "src/osd/modules/font/font_osx.c",
r245343r245344
386426      MAME_DIR .. "src/osd/modules/sound/sdl_sound.c",
387427      MAME_DIR .. "src/osd/modules/sound/none.c",
388428   }
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
389436   if _OPTIONS["SDL_LIBVER"]=="sdl2" then
390437      files {
391438         MAME_DIR .. "src/osd/modules/render/draw13.c",
trunk/scripts/src/osd/sdl_cfg.lua
r245343r245344
22   MAME_DIR .. "src/osd/sdl/sdlprefix.h"
33}
44
5if _OPTIONS["NO_OPENGL"]=="1" then
6   defines {
7      "USE_OPENGL=0",
8   }
9else
10   defines {
11      "USE_OPENGL=1",
12   }
13   if _OPTIONS["USE_DISPATCH_GL"]=="1" then
14      defines {
15         "USE_DISPATCH_GL=1",
16      }
17   end
18end
19
20
521if _OPTIONS["NO_X11"]=="1" then
622   defines {
723      "SDLMAME_NO_X11",
r245343r245344
94110      "SDLMAME_WIN32",
95111      "UNICODE",
96112      "_UNICODE",
97      "USE_OPENGL=1",
98113      "USE_QTDEBUG=" .. USE_QT,
99114      "SDLMAME_NET_PCAP",
100115      "main=utf8_main",
r245343r245344
114129
115130elseif _OPTIONS["targetos"]=="linux" then
116131   defines {
117      "USE_OPENGL=1",
118132      "USE_QTDEBUG=" .. USE_QT,
119133      "SDLMAME_NET_TAPTUN",
120134   }
r245343r245344
125139   defines {
126140      "SDLMAME_MACOSX",
127141      "SDLMAME_DARWIN",
128      "USE_OPENGL=1",
129142      "USE_QTDEBUG=0",
130143      "SDLMAME_NET_PCAP",
131144   }


Previous 199869 Revisions Next


© 1997-2024 The MAME Team