Enhance portability options

- Add HAS_PALM_QPA to differentiate between HAS_QPA (does not use old pre-QPA code)
  versus a QPA that implements the Palm specific QPA functions
- Fix usage of HAS_NYX and HAS_MEDIA_API
- Correct library name for serviceinstaller
- Only force set QT_QPA_PLATFORM var if it is not set in Luna upstart

Open-webOS-DCO-1.0-Signed-off-by: Eric Blade <eric.blade@palm.com>

Change-Id: I818e46f7a4ae2148415433965295ee35521b35fd
Implement changes to build luna-sysmgr with Qt5

Version specific code is wrapped in #if-statements so that this
should compile with both Qt4.8 and Qt5.

Open-webOS-DCO-1.0-Signed-off-by: Jaakko Putaala <jaakko.putaala@palm.com>

Change-Id: Ic63edbfa9c653d24c0f66e930ba6c9461a3bfba7
Fix a reversed condition in Qt5 conversion change

Open-webOS-DCO-1.0-Signed-off-by: Roger Stringer <roger.stringer@palm.com>

Change-Id: Iad1662cec9387d29c96b8c15977d525b3181cdf6
Fixes an INCLUDEPATH error in sysmgr.pro

INCLUDEPATH variable in sysmgr.pro had some entries that belong to desktop.pri.

Open-webOS-DCO-1.0-Signed-off-by: Jaakko Putaala <jaakko.putaala@palm.com>

Change-Id: I4287c22d07f51af13029e0e2d5d40fc3a2759414
Fix crashes found after Qt5 change

There were a few things that caused sysmgr to crash on startup:
- uninitialized pointer in DockModeMenuManager
- DockModeMenuManager::dockAppContainer() was called before the
  pointer it returns had been initialized
- static QFont initializations caused crashes in PageTabBar,
  LabeledButton, PixButton, Icon, HorizontalLabeledDivider
  and TextBox

Open-webOS-DCO-1.0-Signed-off-by: Teppo Pennanen <teppo.pennanen@palm.com>

Change-Id: Ib2f7c04cc77a61d59696b10122065c57fc5fe3d2
Fix crash on startup

LauncherObject class had a couple of uninitialized pointer member
variables which caused sysmgr to crash on startup sometimes.

Open-webOS-DCO-1.0-Signed-off-by: Teppo Pennanen <teppo.pennanen@palm.com>

Change-Id: I3dbe1c7490fc49fec7b1458f1146512473cd6f1d
HostArm: close framebuffer file descriptors on shutdown

Open-webOS-DCO-1.0-Signed-off-by: Simon Busch <morphis@gravedo.de>
HostArm: skip second framebuffer initialization correctly

On some platforms we don't have a second framebuffer so until now some statements in the
init method where never reached on these platforms.

Open-webOS-DCO-1.0-Signed-off-by: Simon Busch <morphis@gravedo.de>
HostArm: initialize number of fb1 buffers correctly to zero

Open-webOS-DCO-1.0-Signed-off-by: Simon Busch <morphis@gravedo.de>