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-boun...@qt-project.org> on behalf of Jochen Becher via Qbs 
<qbs@qt-project.org>
Sent: Friday, July 4, 2025 4:55 PM
To: qbs@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@qt-project.org
https://lists.qt-project.org/listinfo/qbs
_______________________________________________
Qbs mailing list
Qbs@qt-project.org
https://lists.qt-project.org/listinfo/qbs

Reply via email to