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
- relates to
-
QBS-1146 Qbs should support dynamic item creation
-
- Closed
-