Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-42830

Android: qmake creates install-target rules for static libs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.9.1
    • 5.3.2
    • Build tools: qmake
    • None
    • Android
    • 72d4f0750baae1bb296341bde166f020d29c7faa

    Description

      When building a TEMPLATE = lib project with CONFIG += staticlib, qmake generates an install-target rule in the makefile for copying the resulting .a file to $(INSTALL_ROOT)/.../$(TARGET), and the install rule makes use of this.

      I doubt there is a use case for this behavior for Android. The problem is that it leads to the static lib ending up in the APK when using the recommended deployment procedure or Qt Creator. But the static lib will never be needed in the deployed package. It just increases file size.

      For reference,

      • the Linux install-target rule has an addition $(RANLIB) step.
      • the MinGW makefile does not have an install-target rule.

      If this behaviour of qmake is to be kept, androiddeployqt and/or Qt Creator may need to be modified.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            buddenha Oswald Buddenhagen
            dg0yt Kai Pastor
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes