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

Figure out how to build examples as ExternalProjects in a prefix build setup so it can be used in the CI

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.2.0 Beta3
    • Build System: CMake
    • None
    • 4e70ab5ee (dev), 432083949 (tqtc/lts-6.2), abe3e465b (tqtc/lts-6.2), 72de1af9e (tqtc/lts-6.2), 15cfb9392 (dev), 4a71a001a (tqtc/lts-6.5), 68b2e1db0 (dev), 43d0c5ed6 (dev), 20bd9fad1 (dev), 31c5d50e8 (dev), c668dd404 (dev), cc537d927 (dev), 40fa36db2 (dev)

      Currently if Qt is configured as a prefix build, examples are built in-tree as part of the main Qt build, rather than as ExternalProjects.

      We should figure out how to build examples as ExternalProjects in prefix builds so that we can use that in the CI (which uses prefix builds) so that we have more robust build testing of our examples without the pollution of the main Qt build (e.g already found Qt packages).

      Some details at

      https://codereview.qt-project.org/c/qt/qtbase/+/334565/16#message-047a2ba634d2540c2357d7ad913c7f752c793554

      https://codereview.qt-project.org/c/qt/qtbase/+/334565/16#message-9b7be35fc48218cbc73c29d03ff99312b7532477

      From a quick 5 second brainstorming, we might not need to "make install" Qt before the example projects are configured as a big standalone project each spawning an ExternalProject, we might be able to use CMake's export(EXPORT) to create Config and Targets file referencing targets in the build tree, and set the ExternalProject CMAKE_PREFIX_PATH to the location containing those files.

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

            alexandru.croitor Alexandru Croitor
            alexandru.croitor Alexandru Croitor
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are 2 open Gerrit changes