qt4-webos: store parts of builddir and srcdir for webkit-webos and webkit-supplemental

* webkit-supplemental needs some header files which are not installed by
  default and inside those there are other headers included from srcdir

  # but qt4-webos checkout has different layout (src/gui/painting/qwindowsurface_p instead of qt-build-tuna/include/QtGui/private/qwindowsurface_p.h)
  # $ find tmp-eglibc/work/armv7a-vfp-neon-webos-linux-gnueabi/webkit-supplemental-2.0.0-0.5-r1/ -name qwindowsurface_p.h
  # tmp-eglibc/work/armv7a-vfp-neon-webos-linux-gnueabi/webkit-supplemental-2.0.0-0.5-r1/qt4-webos/src/gui/painting/qwindowsurface_p.h
  #
  # $ find tmp-eglibc/work/tuna-webos-linux-gnueabi/qt4-webos-4.8.2.03-0.35-r11/ -name qwindowsurface_p.h
  # tmp-eglibc/work/tuna-webos-linux-gnueabi/qt4-webos-4.8.2.03-0.35-r11/git/src/gui/painting/qwindowsurface_p.h
  # tmp-eglibc/work/tuna-webos-linux-gnueabi/qt4-webos-4.8.2.03-0.35-r11/package/usr/src/debug/qt4-webos-4.8.2.03-0.35-r11/git/src/gui/painting/qwindowsurface_p.h
  # tmp-eglibc/work/tuna-webos-linux-gnueabi/qt4-webos-4.8.2.03-0.35-r11/packages-split/qt4-webos-dbg/usr/src/debug/qt4-webos-4.8.2.03-0.35-r11/git/src/gui/painting/qwin
  # tmp-eglibc/work/tuna-webos-linux-gnueabi/qt4-webos-4.8.2.03-0.35-r11/qt-build-tuna/include/QtGui/private/qwindowsurface_p.h
  #
  # $ cat tmp-eglibc/work/tuna-webos-linux-gnueabi/qt4-webos-4.8.2.03-1.00-r12/qt-build-tuna/include/QtGui/private/qwindowsurface_p.h
  # #include "../../../../git/src/gui/painting/qwindowsurface_p.h"

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
webkit-supplemental: don't use WORKDIR from qt4-webos build, but stored headers in sysroot

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
qt4-webos: make it MACHINE_ARCH

* qt4-webos is really machine-specific as of right so we have to specifiy it to keep package
  feeds sane. This is necessary unless qt4-webos moves out of the machine-specific corner and
  becomes as universal component available to use for all machines.

* even if we replace those python functions using MACHINE to define
  config with simple variable with arch overrides, we still export
  MACHINE to qt build
  export WEBOS_CONFIG="webos ${MACHINE}"
  so to make this recipe correctly TUNE_PKGARCH we have to change remove
  MACHINE usage from .pro files in repo and replace it with something
  more generic.

Open-webOS-DCO-1.0-Signed-off-by: Simon Busch <morphis@gravedo.de>
webkit-webos: make it MACHINE_ARCH

* we're depending on MACHINE specific qt4-webos so better to build it as MACHINE_ARCH
  then rebuild it after each MACHINE switch as TUNE_PKGARCH

* this is temporary solution, qt4-webos should be changed to be TUNE_PKGARCH
  but that needs some changes in qt repo too.

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
webkit-supplemental: make it MACHINE_ARCH

* we're depending on MACHINE specific qt4-webos so better to build it as MACHINE_ARCH
  then rebuild it after each MACHINE switch as TUNE_PKGARCH

* this is temporary solution, qt4-webos should be changed to be TUNE_PKGARCH
  but that needs some changes in qt repo too.

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
browser-adapter: make it MACHINE_ARCH

* we're depending on MACHINE specific qt4-webos so better to build it as MACHINE_ARCH
  then rebuild it after each MACHINE switch as TUNE_PKGARCH

* this is temporary solution, qt4-webos should be changed to be TUNE_PKGARCH
  but that needs some changes in qt repo too.

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
browserserver: make it MACHINE_ARCH

* we're depending on MACHINE specific qt4-webos so better to build it as MACHINE_ARCH
  then rebuild it after each MACHINE switch as TUNE_PKGARCH

* this is temporary solution, qt4-webos should be changed to be TUNE_PKGARCH
  but that needs some changes in qt repo too.

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
luna-sysservice: make it MACHINE_ARCH

* we're depending on MACHINE specific qt4-webos so better to build it as MACHINE_ARCH
  then rebuild it after each MACHINE switch as TUNE_PKGARCH

* this is temporary solution, qt4-webos should be changed to be TUNE_PKGARCH
  but that needs some changes in qt repo too.

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
browser-adapter: fix unmatched quotes and variable names

* 0479fb1a1cc0d3fad2877fd74ff0291550d84d1f changed exported variables
  from STAGING_INC_DIR to STAGING_INCDIR and STAGING_LIB_DIR to STAGING_LIBDIR
  but browser-adapter Makefile still expects former, so revert that part.
  git/Makefile:INCLUDES := -I$(STAGING_INC_DIR) -I$(STAGING_INC_DIR)/Yap -I$(STAGING_INC_DIR)/BrowserServer
  git/Makefile:LIBS := -L$(STAGING_LIB_DIR) -lYap $(STAGING_LIB_DIR)/AdapterBase.a

* without this change it fails to find STAGING_INCDIR/Yap/YapClient.h

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
browser-adapter: fix installation of BrowserAdapter.so

* 0479fb1a1cc0d3fad2877fd74ff0291550d84d1f changed browser-adapter.bb to
  install BrowserAdapter.so with make, but with wrong patch:
  change to use
  oe_runmake INSTALL_DIR=${D} install
  instead of
  install -m 755 -p ${S}/release-${TARGET_ARCH}/BrowserAdapter.so ${D}${libdir}/BrowserPlugins
  breaks it, because INSTALL_DIR should be ${D}${prefix}

  Makefile:
    install: all
    @mkdir -p $(INSTALL_DIR)/lib/BrowserPlugins
    install -m 0755 $(BUILD_TYPE)-$(PLATFORM)/BrowserAdapter.so $(INSTALL_DIR)/lib/BrowserPlugins

  There was probably this warning:
  WARNING: QA Issue: browser-adapter: Files/directories were installed but not shipped
  /lib
  /lib/BrowserPlugins
  /lib/BrowserPlugins/BrowserAdapter.so
  /lib/BrowserPlugins/.debug
  /lib/BrowserPlugins/.debug/BrowserAdapter.so
  So BrowserAdapter.so was not packaged at all.

* fix INSTALL_DIR

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
webkit-supplemental: Fix not to install directly into sysroot

In spite of what appears the commit message of
0479fb1a1cc0d3fad2877fd74ff0291550d84d1f, this is the commit that stops
webkit-supplemental from installing directly into the sysroot.

- Arrange for qmake to generate install targets in the
  Makefile.WebKitSupplemental-s that copy to the correct location by
  setting STAGING_INCDIR and STAGING_LIBDIR appropriately in
  do_configure() and setting INSTALL_ROOT when invoking make in
  do_install().

- Move the plugins to their expected locations in do_install() until
  the *.pro-s are fixed.

Open-webOS-DCO-1.0-Signed-off-by: Herb Kuta <herb.kuta@palm.com>
Change-Id: I7e3f430136d8071b65f2211dcf6dcf366b67345c
webkit-webos: Fix syntax error in test for gold

Found by shr-project (http://preview.tinyurl.com/9nfbqej). Thanks for
catching something our build verifier missed!

Open-webOS-DCO-1.0-Signed-off-by: Herb Kuta <herb.kuta@palm.com>
Change-Id: I7894827f3001c5166297a2dad5f89ff5cff122f4