trunk/scripts/src/osd/sdl.lua
r245344 | r245345 | |
1 | 1 | function maintargetosdoptions(_target) |
| 2 | if _OPTIONS["USE_DISPATCH_GL"]~="1" and _OPTIONS["MESA_INSTALL_ROOT"] then |
| 3 | libdirs { |
| 4 | path.join(_OPTIONS["MESA_INSTALL_ROOT"],"lib"), |
| 5 | } |
| 6 | linkoptions { |
| 7 | "-Wl,-rpath=" .. path.join(_OPTIONS["MESA_INSTALL_ROOT"],"lib"), |
| 8 | } |
| 9 | end |
| 10 | |
2 | 11 | if _OPTIONS["NO_X11"]~="1" then |
3 | 12 | links { |
4 | 13 | "X11", |
r245344 | r245345 | |
131 | 140 | |
132 | 141 | newoption { |
133 | 142 | trigger = "USE_DISPATCH_GL", |
134 | | description = "Use GL-dispatching", |
| 143 | description = "Use GL-dispatching (takes precedence over MESA_INSTALL_ROOT)", |
135 | 144 | allowed = { |
136 | 145 | { "0", "Link to OpenGL library" }, |
137 | 146 | { "1", "Use GL-dispatching" }, |
r245344 | r245345 | |
147 | 156 | end |
148 | 157 | |
149 | 158 | newoption { |
| 159 | trigger = "MESA_INSTALL_ROOT", |
| 160 | description = "link against specific GL-Library - also adds rpath to executable", |
| 161 | } |
| 162 | |
| 163 | newoption { |
150 | 164 | trigger = "NO_X11", |
151 | 165 | description = "Disable use of X11", |
152 | 166 | allowed = { |
r245344 | r245345 | |
263 | 277 | end |
264 | 278 | |
265 | 279 | if _OPTIONS["NO_X11"]~="1" then |
266 | | linkoptions { |
267 | | "-L/usr/X11/lib", |
268 | | "-L/usr/X11R6/lib", |
269 | | "-L/usr/openwin/lib", |
| 280 | libdirs { |
| 281 | "/usr/X11/lib", |
| 282 | "/usr/X11R6/lib", |
| 283 | "/usr/openwin/lib", |
270 | 284 | } |
271 | 285 | if _OPTIONS["SDL_LIBVER"]=="sdl" then |
272 | 286 | links { |