How to reduce application size with qmake and macdeployqt?
I set QT = core gui in the .pro project file and ran qmake and macdeployqt in the resulting application.
The problem is that the program bundles QtNetwork, QtScript, QtSvg, etc. I tried setting QT - = network script svg (and then doing clean, rm -rf * .app, qmake, make).
Total application is 32 MB.
.pro file:
TEMPLATE = app TARGET = throw DEPENDPATH += . INCLUDEPATH += . CONFIG += x86_64 release QT = core gui unix { CONFIG += link_pkgconfig PKGCONFIG += glib-2.0 } # Input SOURCES += main.cpp # Headers HEADERS += throw.h RESOURCES += throw.qrc ICON = throw.png mac { QMAKE_INFO_PLIST = Info.plist ICON = throw.icns }
source share