summaryrefslogtreecommitdiffstats
path: root/mkspecs/macx-clang/qmake.conf
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs/macx-clang/qmake.conf')
-rw-r--r--mkspecs/macx-clang/qmake.conf19
1 files changed, 19 insertions, 0 deletions
diff --git a/mkspecs/macx-clang/qmake.conf b/mkspecs/macx-clang/qmake.conf
index e34c08954d..259595221f 100644
--- a/mkspecs/macx-clang/qmake.conf
+++ b/mkspecs/macx-clang/qmake.conf
@@ -6,6 +6,25 @@ QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.10
QMAKE_APPLE_DEVICE_ARCHS = x86_64
+# Opt-in xcb QPA support with XQuartz:
+#
+# configure \
+# -pkg-config \
+# -fontconfig -system-freetype \
+# -system-xcb -xkb -no-opengl \
+# -qt-xkbcommon -qt-xkbcommon-x11
+#
+# Ensure that pkg-config is properly configured, or that
+# PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig
+# is set in your build environment.
+#
+# Due to irreconcilable differences between Cocoa
+# and X11, OpenGL is currently not supported.
+
+QMAKE_LIBS_X11 = -lX11 -lXext -lm
+QMAKE_LIBDIR_X11 = /opt/X11/lib
+QMAKE_INCDIR_X11 = /opt/X11/include
+
include(../common/macx.conf)
include(../common/gcc-base-mac.conf)
include(../common/clang.conf)