22e9ff9c16
This allows distinguishing between these tools and tools for the host, when cross compiling. While mac tools normally only are available on macOS, there are third party efforts to port them to other platforms. In these cases, it might be useful to use a prefix (either some sort of triplet prefix, or an absolute path) to distinguish between the host build platform compilers/tools and the ones for the cross target. The use of this variable matches the one used in a lot of other mkspecs, and shouldn't cause any issues for those who aren't setting it. Change-Id: Iaeba571d955ea79ed1249989fcc525eb1eaf1f5c Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
52 lines
1.4 KiB
Plaintext
52 lines
1.4 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_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
|