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

Add build step in applications for linked static libraries due to their prl information add add them as PRE_TARGETDEP

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • 5.1.0 Beta 1
    • 5.0.1
    • Build tools: qmake
    • None
    • be1116fe909a60341f714d5ce0765798a08722e7

    Description

      Building a complex project source tree is quite simple and "cmake" like possible with the SUBDIRS directive. Works if i e.g. build on top dir and all libs and depending projects are build

      But now i want to build a single app in the project tree (first checkout)
      1) qmake on top of the project tree
      2) cd into subdirectory of this program and run make

      Expected behaviour: all dependent libs are build and linked
      Real behaviour: build fails due to libraries are not build, but all information is available:

      • prl contains lib name
      • prl contains build dir
      • prl contains config flags.

      Suggestion: just add to the prl a "how is the lib build" line.
      Automatically create build instructions from the prls of the lib i link against.

      So the application does know how to build the libs if not present. no complete build instruction necessary,
      just a simple
      cd to lib dir and make

      The prl of the libs are found correctly and added to the makefile as dependency

      Attachments

        For Gerrit Dashboard: QTBUG-29486
        # Subject Branch Project Status CR V

        Activity

          People

            buddenha Oswald Buddenhagen
            j.kreuzberger Joerg Kreuzberger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes