WEBOS: Add WEBOS define
Using SDL_INIT_VIDEO flag for WebOS because without it the application won't start.
This commit is contained in:
parent
f8a73665d3
commit
72d206dc73
2 changed files with 6 additions and 0 deletions
|
@ -214,6 +214,11 @@ void OSystem_SDL::initSDL() {
|
|||
if (ConfMan.hasKey("disable_sdl_parachute"))
|
||||
sdlFlags |= SDL_INIT_NOPARACHUTE;
|
||||
|
||||
#ifdef WEBOS
|
||||
// WebOS needs this flag or otherwise the application won't start
|
||||
sdlFlags |= SDL_INIT_VIDEO;
|
||||
#endif
|
||||
|
||||
// Initialize SDL (SDL Subsystems are initiliazed in the corresponding sdl managers)
|
||||
if (SDL_Init(sdlFlags) == -1)
|
||||
error("Could not initialize SDL: %s", SDL_GetError());
|
||||
|
|
1
configure
vendored
1
configure
vendored
|
@ -1670,6 +1670,7 @@ case $_host_os in
|
|||
webos)
|
||||
CXXFLAGS="$CXXFLAGS --sysroot=$WEBOS_PDK/arm-gcc/sysroot"
|
||||
CXXFLAGS="$CXXFLAGS -I$WEBOS_PDK/include/SDL"
|
||||
CXXFLAGS="$CXXFLAGS -DWEBOS"
|
||||
LDFLAGS="$LDFLAGS -L$WEBOS_PDK/device/lib"
|
||||
LDFLAGS="$LDFLAGS -Wl,--allow-shlib-undefined"
|
||||
LIBS="$LIBS -lSDL -lpdl"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue