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

Allow multiple products based on glob

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes