i got a problem while switching from qbs 1.5 to 1.8. I have 'BaseProduct' in 'src/qbs/imports/BaseProduct.qbs' and i have product derived from it in 'src/derived/DerivedProduct.qbs'
In BaseProduct i have something like:
Group { id: h name: 'h'; Properties { prefix: '**/'; files: ['*.h'] } } Group { id: cpp name: 'cpp'; Properties { prefix: '**/'; files: ['*.cpp'] } }
which automatically adds all sources from Derived.qbs directory to project. Worked in 1.5 but not in 1.8. If i add to prefix 'sourceDirectory + "/"' it almost works: files are added to subproject but additionally grouped under absolute paths like '/absolute/path/to/src/subproject'.
So project structure i got:
1.5 with "prefix: '**/'" [what i want to achive]
DerivedProduct - [cpp] - [subdir] - file_from_subdir.cpp - file_from_root_dir.cpp
1.8 with "prefix: '**/'" [cannot build project because there are not sources added to it]
- [cpp]
1.8 with "prefix: 'sourceDirectory + '/**/'" [can build project but ugly absolute paths in groups occurs]
DerivedProduct - [cpp] - [/absolute/path/to/src/subproject] - [subdir] - file_from_subdir.cpp - file_from_src_root_dir.cpp
So how can i achieve 'auto group sources' functionality of 1.5 in 1.8 without copy/pasting group items to each subproject and of course without absolute path subgroup?