[Qbs] Deprecation error message from qbs 2.6.1

Jochen Becher jochen_becher at gmx.de
Wed Jul 9 10:28:10 CEST 2025


Removing the initial value of the property additionalSystemLibs does
not help. Still the same warning.

I will ignore this warning for now and continue with the migration to
QtC 17.

Regards, Jochen


Am Freitag, dem 04.07.2025 um 15:29 +0000 schrieb Christian Kandeler:
> 
> In this particular case, it's purely a temporary annoyance with no
> actual relevance, as the "fallback value" is empty.
> I suppose you could just remove the RHS; qbs should be able to deal
> with an undefined value for cpp.dynamicLibraries.
> Either way, the message will be gone in 3.0.
> 
> 
> Christian
> 
> 
> Confidential
> ________________________________________
> From: Qbs <qbs-bounces at qt-project.org> on behalf of Jochen Becher via
> Qbs <qbs at qt-project.org>
> Sent: Friday, July 4, 2025 4:55 PM
> To: qbs at qt-project.org
> Subject: [Qbs] Deprecation error message from qbs 2.6.1
> 
> Hi,
> 
> I get a "Using list properties as fallback values is deprecated"
> error
> from the following code. What is the suggested way to do this?
> 
> 
>     property stringList additionalSystemLibs : []
>     Properties {
>         condition: qbs.targetOS.contains("windows")
>         additionalSystemLibs: [ "version", "shlwapi", "wbemuuid",
> "ole32", "oleaut32", "kernel32", "netapi32" ]
>     }
> 
>     cpp.dynamicLibraries: additionalSystemLibs
> 
>     Export {
>         Depends { name: "cpp" }
>         cpp.dynamicLibraries: exportingProduct.additionalSystemLibs
>         cpp.includePaths: path + "/include"
>     }
> 
> Regards, Jochen
> _______________________________________________
> Qbs mailing list
> Qbs at qt-project.org
> https://lists.qt-project.org/listinfo/qbs



More information about the Qbs mailing list