summaryrefslogtreecommitdiff
path: root/package/qtbase/files
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-11-19 09:01:05 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-11-19 09:01:15 +0100
commit5555a534f787bf54db2aa145f7b7fa64891a52cd (patch)
tree2817b9a491c0c71e5dc8398aee1d4dcae4d41665 /package/qtbase/files
parent236f8675d3607ea58763381615c854fa43f0b5f0 (diff)
qtbase: add new package, use device method like buildroot for cross-compile
Diffstat (limited to 'package/qtbase/files')
-rw-r--r--package/qtbase/files/qmake.conf25
-rw-r--r--package/qtbase/files/qplatformdefs.h1
2 files changed, 26 insertions, 0 deletions
diff --git a/package/qtbase/files/qmake.conf b/package/qtbase/files/qmake.conf
new file mode 100644
index 000000000..2d083572a
--- /dev/null
+++ b/package/qtbase/files/qmake.conf
@@ -0,0 +1,25 @@
+# Qt5 has a mechanism to support "device" profiles, so that people can
+# specify the compiler, compiler flags and so on for a specific device.
+
+# We leverage this mechanism in the OpenADK packaging of qt5 to
+# simplify cross-compilation: we have our own "device" definition, which
+# allows us to easily pass the cross-compiler paths and flags from our
+# qt5.mk.
+
+include(../common/linux_device_pre.conf)
+
+# modifications to g++-unix.conf
+QMAKE_CC = $${CROSS_COMPILE}gcc
+QMAKE_CXX = $${CROSS_COMPILE}g++
+
+# modifications to gcc-base.conf
+QMAKE_CFLAGS += $${ADK_COMPILER_CFLAGS}
+QMAKE_CXXFLAGS += $${ADK_COMPILER_CXXFLAGS}
+QMAKE_LFLAGS = $${ADK_COMPILER_LDFLAGS}
+CONFIG += nostrip
+
+QMAKE_LIBS += -lrt -lpthread -ldl
+QMAKE_CFLAGS_ISYSTEM =
+
+include(../common/linux_device_post.conf)
+load(qt_config)
diff --git a/package/qtbase/files/qplatformdefs.h b/package/qtbase/files/qplatformdefs.h
new file mode 100644
index 000000000..99e9a2792
--- /dev/null
+++ b/package/qtbase/files/qplatformdefs.h
@@ -0,0 +1 @@
+#include "../../linux-g++/qplatformdefs.h"