Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1119

Allow multiple products based on glob

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • None

    Description

      Currently qbs requires defining a product for each output and this has to be defined statically. It would be nice if this could be dynamically so that creating a file is enough to create a new executable/test.

      For example the following works in bazel:

      [cc_test(
      	name = src[len("test/"):-len(".cc")],
      	srcs = [ src ],
      	deps = [
      		"//external:gtest",
      		":testlib",
      	],
      ) for src in glob(["test/*_test.cc"])]
      

      Which creates a test target for every file in the directory. It would be great if the same could be acomplished in qbs.

      Attachments

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              kevincox Kevin Cox
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes