osx - How do I make apps smaller with qmake and macdeployqt -
how make apps smaller qmake , macdeployqt?
i have set qt = core gui in projects .pro file , run qmake , macdeployqt on resulting app.
the problem program bundling qtnetwork, qtscript, qtsvg etc. i've tried setting qt -= network script svg (and make clean, rm -rf *.app, qmake, make).
in total app 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 }
this great article (re)building qt statically , dynamically reduce size considerably: building qt static (and dynamic) , making small gcc, microsoft visual studio, , intel compiler
while is talking qt in windows context, give insight how 1 go compiling minimal size.
Comments
Post a Comment