summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/mac/mac.prf
blob: 52f06ef77393ee1225e5bb8957ba7e96546b3566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

# 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($$QMAKE_INFO_PLIST)
}