Add a functionality test for DirectFB to ensure it compiles.
authorThiago Macieira <thiago.macieira@intel.com>
Wed, 18 Apr 2012 13:56:26 +0000 (15:56 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 19 Apr 2012 09:07:25 +0000 (11:07 +0200)
commita0aad0b1b2e2222472ea5030b47785d402ebfac6
treec08a0a4a265e4da1b376fd10d15e7132643e3765
parent197aa9f67fadc7218c118dcafb4dc4154ce2502b
Add a functionality test for DirectFB to ensure it compiles.

Some versions of the DirectFB headers are unclean and will cause Qt
compilation failures. So blacklist those versions. Version 1.5.3
(present in Fedora 16) is known to be buggy and gets disabled by this
patch.

The compile error was:
  qurlquery.h:169:5: error: ‘typeof’ was not declared in this scope

(qplatformcursor_qpa.h includes qevent.h which includes qurl.h which
includes that)

The error comes from the Q_FOREACH expansion. Note that Q_FOREACH uses
__typeof__, so it's supposed to be safe, unless someone ill-advised
goes and defines the GCC "safe" macro (double underscores on both
sides) to something else.

Change-Id: Ida41ee3b3c2fcba86a7e12182e7055123166693b
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
config.tests/unix/directfb/directfb.cpp [new file with mode: 0644]
config.tests/unix/directfb/directfb.pro [new file with mode: 0644]
configure