1.2.2. Driver package

Start python section to spkgs/sdl_drivers.py[1 /1 ]
     1: #line 121 "./lpsrc/flx_sdl.pak"
     2: execfile("cpkgs"+os.sep+"target"+os.sep+"sdl.py")
     3: if HAVE_SDL:
     4:   DRIVERS = [
     5:     ('static','rtl/flx_arun','bin/flx_arun',[]),
     6:     ('dynamic','rtl/flx_arun','bin/flx_arun',[]),
     7:   ]
     8:   DRLIBS = [
     9:    'libflx_async',
    10:    'libfaio',
    11:    'libdemux',
    12:    'libflx_pthread',
    13:    'libflx',
    14:    'libflx_gc',
    15:    ]
    16: 
    17:   drivers = DRIVERS
    18:   drivers_require_libs = DRLIBS
    19:   pkg_requires = ['flx_rtl','flx_async','faio','demux','flx_pthread','sdl']
    20:   cflags = SDL_CFLAGS
    21:   dflags = SDL_LIBS
    22:   sflags = SDL_STATIC_LIBS
End python section to spkgs/sdl_drivers.py[1]
Start cpp section to tmp/sdl_opengl.cxx[1 /1 ]
     1: #line 145 "./lpsrc/flx_sdl.pak"
     2: // for testing whether we have SDL_opengl
     3: #include <SDL.h>            // overrides main
     4: #include <SDL_opengl.h>
     5: 
     6: int
     7: main(int argc, char** argv)
     8: {
     9:     if(SDL_Init(SDL_INIT_VIDEO) == -1
    10:         || SDL_SetVideoMode(640, 480, 32, SDL_ANYFORMAT | SDL_OPENGL) == NULL)
    11:     {
    12:         return 1;       // fail
    13:     }
    14: 
    15:     // random gl stuff to make sure we link
    16:     glMatrixMode(GL_PROJECTION);
    17:     glLoadIdentity();
    18: 
    19:     return 0;           // pass
    20: }
End cpp section to tmp/sdl_opengl.cxx[1]