Skip to content

Commit

Permalink
Merge branch 'release'
Browse files Browse the repository at this point in the history
* release:
  Patch Qt for macOS so it can build against futimens
  Increase the deployment_target value in qtbase.conf
  • Loading branch information
dstoup committed May 10, 2021
2 parents a6eb61a + 4b12ee5 commit 623dd0e
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Patches/Qt/5.11.2/Patch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,13 @@ endif()
file(COPY ${Qt_patch}/qtbase/src/corelib/tools/qbytearraymatcher.h
DESTINATION ${Qt_source}/qtbase/src/corelib/tools/
)

# Fix a build issues on Mac.
# Can't use futimens on MacOS < 10.3 which is controlled by
# the QMAKE_MACOSX_DEPLOYMENT_TARGET value in qmake.conf
# not by the actual system version.
if (APPLE)
file(COPY ${Qt_patch}/qtbase/mkspecs/macx-clang/qmake.conf
DESTINATION ${Qt_source}/qtbase/mkspecs/macx-clang/
)
endif()
36 changes: 36 additions & 0 deletions Patches/Qt/5.11.2/qtbase/mkspecs/macx-clang/qmake.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#
# qmake configuration for Clang on OS X
#

QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.13

QMAKE_APPLE_DEVICE_ARCHS = x86_64

# Opt-in xcb QPA support with XQuartz:
#
# configure \
# -pkg-config \
# -fontconfig -system-freetype \
# -system-xcb -no-opengl
#
# 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.
#
# If you don't want to use pkg-config, you can add:
# -L/opt/X11/lib -I/opt/X11/include
# to the configure options.
#
# 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)
include(../common/clang-mac.conf)

load(qt_config)

0 comments on commit 623dd0e

Please sign in to comment.