69bd238ad8
Qt couldn't be configured with -system-zlib on macOS, because qmake failed to find "/usr/lib/libz.dylib". The library path is something along the lines of "/Applications/Xcode.app/.../MacOSX10.14.sdk/usr/lib" which doesn't contain "libz.dylib". But it contains "libz.tbd", which is a YAML-file pointing to "/usr/lib/libz.dylib". One can pass the absolute path to this tbd file to the linker, which will then pick up "/usr/lib/libz.dylib". Introduce a new variable QMAKE_EXTENSIONS_AUX_SHLIB, which is a list of auxiliary extensions for shared libs, and add the "tbd" extension to it on macOS. Change-Id: I083b79a69d00232e35f9d6164ffa86cb473f1742 Fixes: QTBUG-72745 Fixes: QTBUG-72964 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
53 lines
1.5 KiB
Plaintext
53 lines
1.5 KiB
Plaintext
#
|
|
# qmake configuration common to OS X and iOS
|
|
#
|
|
|
|
!load(device_config): error(Could not successfully load device configuration)
|
|
|
|
QMAKE_PLATFORM += mac darwin
|
|
|
|
MAKEFILE_GENERATOR = UNIX
|
|
CONFIG += app_bundle incremental global_init_link_order lib_version_first sdk
|
|
QMAKE_INCREMENTAL_STYLE = sublib
|
|
|
|
include(unix.conf)
|
|
|
|
QMAKE_RESOURCE = /Developer/Tools/Rez
|
|
QMAKE_EXTENSION_SHLIB = dylib
|
|
QMAKE_EXTENSIONS_AUX_SHLIB = tbd
|
|
QMAKE_LIBDIR =
|
|
|
|
# sdk.prf will prefix the proper SDK sysroot
|
|
QMAKE_INCDIR_OPENGL = \
|
|
/System/Library/Frameworks/OpenGL.framework/Headers \
|
|
/System/Library/Frameworks/AGL.framework/Headers/
|
|
|
|
QMAKE_FIX_RPATH = install_name_tool -id
|
|
|
|
QMAKE_LFLAGS_RPATH = -Wl,-rpath,
|
|
QMAKE_LFLAGS_GCSECTIONS = -Wl,-dead_strip
|
|
|
|
QMAKE_LFLAGS_REL_RPATH =
|
|
QMAKE_REL_RPATH_BASE = @loader_path
|
|
|
|
QMAKE_LIBS_DYNLOAD =
|
|
QMAKE_LIBS_OPENGL = -framework OpenGL -framework AGL
|
|
QMAKE_LIBS_THREAD =
|
|
|
|
QMAKE_INCDIR_WAYLAND =
|
|
QMAKE_LIBS_WAYLAND_CLIENT = -lwayland-client
|
|
QMAKE_LIBS_WAYLAND_SERVER = -lwayland-server
|
|
QMAKE_LIBDIR_WAYLAND =
|
|
QMAKE_DEFINES_WAYLAND =
|
|
QMAKE_WAYLAND_SCANNER = wayland-scanner
|
|
|
|
QMAKE_ACTOOL = actool
|
|
|
|
QMAKE_DSYMUTIL = dsymutil
|
|
QMAKE_STRIP = $${CROSS_COMPILE}strip
|
|
QMAKE_STRIPFLAGS_LIB += -S -x
|
|
|
|
QMAKE_AR = $${CROSS_COMPILE}ar cq
|
|
QMAKE_RANLIB = $${CROSS_COMPILE}ranlib -s
|
|
QMAKE_NM = $${CROSS_COMPILE}nm -P
|