qt5base-lts/mkspecs/features/mac/mac.prf
Alexandru Croitor 87eff0ea31 Fix resolution of QMAKE_INFO_PLIST for non-bundle artifacts
Change-Id: Id56cea1f09d7675fe60cdbd598e6f585a6b230d1
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
2017-10-23 13:50:45 +00:00

19 lines
557 B
Plaintext

# Embed plist file via linker if we're not building a bundle
!isEmpty(QMAKE_INFO_PLIST) {
add_plist = false
equals(TEMPLATE, lib) {
plugin:!plugin_bundle: \
add_plist = true
else: !plugin:!lib_bundle: \
add_plist = true
} else: equals(TEMPLATE, app) {
!app_bundle: \
add_plist = true
}
$$add_plist: \
QMAKE_LFLAGS += -Wl,-sectcreate,__TEXT,__info_plist,$$shell_quote( \
$$relative_path($$absolute_path($$QMAKE_INFO_PLIST, $$_PRO_FILE_PWD_), $$OUT_PWD))
}