diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-03 21:52:54 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-17 16:10:02 +0200 |
commit | b78a292a584f084cc15715c3a68693b008ef6682 (patch) | |
tree | 8c6c649c586d57b615b08e3e59241002e0d6c52d /recipes-qt/qt5/qtbase | |
parent | de250e3d0e437df09a8f23ad7fdb5fc39f17f7e8 (diff) | |
download | meta-qt5-b78a292a584f084cc15715c3a68693b008ef6682.tar.gz |
qtbase: replace g++.conf and linux.conf with qmake.conf
* g++.conf and linux.conf were outdated a lot, lacking new options like
QMAKE_COMPILER causing a lot of warning like:
Project WARNING: qmake spec does not announce the compiler family. Guessed gcc.
* Instead of replacing whole common files, use custom qmake.conf which
overwrites common setting after including it
Diffstat (limited to 'recipes-qt/qt5/qtbase')
-rw-r--r-- | recipes-qt/qt5/qtbase/qmake.conf | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtbase/qmake.conf b/recipes-qt/qt5/qtbase/qmake.conf new file mode 100644 index 00000000..d60288e3 --- /dev/null +++ b/recipes-qt/qt5/qtbase/qmake.conf | |||
@@ -0,0 +1,39 @@ | |||
1 | # | ||
2 | # qmake configuration for linux-g++ with modifications for building with OpenEmbedded | ||
3 | # | ||
4 | |||
5 | MAKEFILE_GENERATOR = UNIX | ||
6 | CONFIG += incremental gdb_dwarf_index | ||
7 | QMAKE_INCREMENTAL_STYLE = sublib | ||
8 | |||
9 | include(../common/linux.conf) | ||
10 | |||
11 | # QMAKE_<TOOL> (moc, uic, rcc) are gone, overwrite only ar and strip | ||
12 | QMAKE_AR = $(OE_QMAKE_AR) cqs | ||
13 | QMAKE_STRIP = $(OE_QMAKE_STRIP) | ||
14 | |||
15 | include(../common/gcc-base-unix.conf) | ||
16 | |||
17 | # *FLAGS from gcc-base.conf | ||
18 | QMAKE_CFLAGS += $(OE_QMAKE_CFLAGS) | ||
19 | QMAKE_CXXFLAGS += $(OE_QMAKE_CXXFLAGS) | ||
20 | QMAKE_LFLAGS += $(OE_QMAKE_LDFLAGS) | ||
21 | |||
22 | include(../common/g++-unix.conf) | ||
23 | |||
24 | # tc settings from g++-base.conf | ||
25 | QMAKE_COMPILER = $(OE_QMAKE_COMPILER) | ||
26 | QMAKE_CC = $(OE_QMAKE_CC) | ||
27 | QMAKE_CXX = $(OE_QMAKE_CXX) | ||
28 | |||
29 | QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += $(OE_QMAKE_CFLAGS) | ||
30 | |||
31 | QMAKE_LINK = $(OE_QMAKE_LINK) | ||
32 | QMAKE_LINK_SHLIB = $(OE_QMAKE_LINK) | ||
33 | QMAKE_LINK_C = $(OE_QMAKE_LINK) | ||
34 | QMAKE_LINK_C_SHLIB = $(OE_QMAKE_LINK) | ||
35 | |||
36 | # for the SDK | ||
37 | isEmpty(QMAKE_QT_CONFIG):QMAKE_QT_CONFIG = $(OE_QMAKE_QT_CONFIG) | ||
38 | |||
39 | load(qt_config) | ||