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

bin/configure(.bat) to generate .json file containing supported options and features

    XMLWordPrintable

Details

    Description

      In order to "conanify" qtbase and all the rest of the modules the conanfile.py recipes need to support all the Qt's configurable options and features.

      It makes no sense to duplicate all configure options and features (-list-features).The conanfile.py recipes should read all those from a file and set the available recipe options dynamically.

      Proposing an option to configure(.bat):

      1. feel free to come up with a better name for the command line switch
        -formatted-options-and-features=output.json|.yaml

      The format should be such that the option/feature strings can be directly passed to configure(.bat) without any further formatting

      The possible values per option/feature should be also part of the generated output.

      Example usage in conanfile.py:

      options = 

      {"shared": [True, False, "default"],  # booleans and "default" string are accepted                      "feature_x": "ANY",  # any value is valid                         "feature_y": ["foo", "bar", None]}

        # it is allowed to pass None == not to be used

      Attachments

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              iknd Iikka Eklund
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes