2c97a9b3f5
Makes cross-compilation of Qt-enabled programs possible.
36 lines
1.4 KiB
Diff
36 lines
1.4 KiB
Diff
diff -uNr qt-everywhere-src-5.11.2/qtbase/mkspecs/termux/qmake.conf qt-everywhere-src-5.11.2.mod/qtbase/mkspecs/termux/qmake.conf
|
|
--- qt-everywhere-src-5.11.2/qtbase/mkspecs/termux/qmake.conf 1970-01-01 03:00:00.000000000 +0300
|
|
+++ qt-everywhere-src-5.11.2.mod/qtbase/mkspecs/termux/qmake.conf 2018-09-21 16:26:18.042253449 +0300
|
|
@@ -0,0 +1,31 @@
|
|
+QT_QPA_DEFAULT_PLATFORM = xcb
|
|
+
|
|
+MAKEFILE_GENERATOR = UNIX
|
|
+CONFIG += incremental
|
|
+QMAKE_INCREMENTAL_STYLE = sublib
|
|
+
|
|
+include(../common/linux.conf)
|
|
+include(../common/gcc-base-unix.conf)
|
|
+include(../common/clang.conf)
|
|
+
|
|
+QMAKE_CC = clang
|
|
+QMAKE_CXX = clang++
|
|
+QMAKE_LINK = $${QMAKE_CXX}
|
|
+QMAKE_LINK_SHLIB = $${QMAKE_CXX}
|
|
+QMAKE_AR = ar cqs
|
|
+QMAKE_NM = nm -P
|
|
+QMAKE_OBJCOPY = objcopy
|
|
+QMAKE_PKG_CONFIG = pkg-config
|
|
+QMAKE_STRIP = strip
|
|
+
|
|
+QMAKE_CFLAGS += -I/data/data/com.termux/files/usr/include -isystem /data/data/com.termux/files/usr/include/libandroid-support -Oz
|
|
+QMAKE_CXXFLAGS += -I/data/data/com.termux/files/usr/include -isystem /data/data/com.termux/files/usr/include/libandroid-support -Oz
|
|
+QMAKE_LFLAGS += -L/data/data/com.termux/files/usr/lib -landroid-support
|
|
+QMAKE_LFLAGS_SHLIB += -shared
|
|
+QMAKE_LFLAGS_PLUGIN += -shared
|
|
+
|
|
+## Should be -lpthread, but Termux does not provide
|
|
+## libpthread.so library.
|
|
+QMAKE_LIBS_THREAD =
|
|
+
|
|
+load(qt_config)
|