[Qbs] Deprecation error message from qbs 2.6.1

Christian Kandeler Christian.Kandeler at qt.io
Fri Jul 4 17:29:40 CEST 2025


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