qlibraryinfo: allow to set qt.conf from the outside using the environment

Allow to set a qt.conf from the outside using the environment. This allows
to inject new prefixes and other paths into qmake. This is needed when using
the same qmake binary to build qt/x11 and qt/embedded

Upstream-Status: Pending

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
qkbdtty_qws: fix build with old kernel headers

This issue is that with C++ compiler process an old version of kernel
header file, coincidently that file has a variable named 'new':

* 'embedded/qkbdtty_qws.cpp' include 'linux/vt.h';
* '/usr/include/linux/vt.h' has below code on SLED-11.x:
    + unsigned int new;

On mostly hosts it has been changed to: new -> newev.

Upstream-Status: Pending

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
webkit2: set OUTPUT_DIR value if empty

Without this do_configure was trying to create /include/WebCore/libdummy.prl in root of build host filesystem
now it's in proper place ${WORKDIR}/qt-everywhere-opensource-src-4.8.1/src/3rdparty/webkit/include/WebCore/libdummy.prl

First reported here:
http://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg24436.html

Upstream-Status: Pending

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
configure: qmake is already built in qt4-tools-native, so disable it

Upstream-Status: Inappropriate [configuration]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
configure: set LFLAGS to pick up zlib from staging

Upstream-Status: Pending

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
configure: Use OE_QMAKE_* values to specify Qt utility paths

Upstream-Status: Inappropriate [configuration]

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
dbus: Remove "const" usage that causes compile failure building nativesdk-qt4-tools

Patch has apparently been rejected upstream, not because it is invalid
but because the submitter did not submit a merge request for it, so the
validity of the patch upstream is uncertain. For further details see:
http://bugreports.qt.nokia.com/browse/QTBUG-17962

Upstream-Status: Denied [possible retry]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
qmake.pro: Allow building a separate qmake for the target

Upstream-Status: Inappropriate [config]

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
qmake: fix source file references in qmake.pri

Fix duplicate entries in SOURCES and HEADERS, and fix the source file
list for the split of qlocale.cpp.

Upstream-Status: Pending

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
configure: Hack to not use the pg_config of the host system which will add /usr/include

pg_config is a native binary so using that when cross compiling
will always fail.  The commented out fix would do, but for OE
our -platform and -xplatform is the same so we are actually not
really cross compiling. Just comment out the test, we are passing
the location to the postgres headers and if they are okay we
will pad.

Upstream-Status: Inappropriate [configuration]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
freetype host includes

Host include path should not be used in cross compiling case.

Ported from OE by: Yu Ke <ke.yu@intel.com>
Upstream-Status: Pending

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Add 2bpp support

Submitted upstream but rejected as being "out of scope":
http://bugreports.qt.nokia.com/browse/QTBUG-3468

Upstream-Status: Denied

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
configure: add "-crossarch" option

Upstream-Status: Pending

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
translations: fix phony translation linking error

  | .../usr/lib/crt1.o: In function `_start':
  | .../../sysdeps/i386/elf/start.S:115: undefined reference to `main'
  | collect2: ld returned 1 exit status

Upstream-Status: Pending

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
configure: add nostrip for debug packages

Qt is built in release mode and strip files by default.
Set CONFIG+=nostrip to avoid the stripping and
let dh_strip do it to generate debug packages.

Upstream-Status: Inappropriate [Configuration]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
configure: eval QMAKE_CXX

Allow expansion of $(...) references in QMAKE_CXX (currently its value
is $(OE_QMAKE_CXX)) in order to allow compiler version check to succeed
which allows WebKit to be enabled.

Upstream-Status: Pending

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>

Conflicts:
	configure
configure: ensure we identify the compiler as g++ in configure

Our PLATFORM in OE is ${TARGET_OS}-oe-g++, and previously the configure
script was interpreting from this that the compiler was "oe-g++" and
thus
g++ specific checks were not being run since this string did not match;
among other things this resulted in a compiler version check in the
QtWebKit build code not working, and hence the following error at build
time:

./wtf/NullPtr.h:48:1: error: identifier 'nullptr' will become a keyword
in C++0x [-Werror=c++0x-compat]

The easiest thing since our PLATFORM is entirely artificial is to just
force COMPILER to "g++" in the configure script if it is detected as
"oe-g++".

Upstream-Status: Inappropriate [configuration]

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
configure: make pulseaudio a configurable option

Allows disabling pulseaudio support within phonon at configure time.
(This is the Qt 4.8.0 version.)

Upstream-Status: Pending

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Fixes for gcc 4.7.0, particularly on qemux86

Origin: upstream, http://trac.webkit.org/changeset/93631
Origin: upstream, http://trac.webkit.org/changeset/113848

Bug: https://bugs.webkit.org/show_bug.cgi?id=62168
Bug: https://bugs.webkit.org/show_bug.cgi?id=83584

RP 2012/04/30

Upstream-Status: Backport

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
webkit: disable the -fuse-ld=gold flag

This option is a Debian/Ubuntu specific extension to the g++ and causes upstream GCC to throw an error.

Upstream-Status: Pending

Signed-off-by: Ken Werner <ken.werner@linaro.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>