Hi,
I am trying to use the KDSoap tool with qbs.
The kdwsdl2cpp generates a class (source and header) and the header uses
the Q_OBJECT macro.

CppApplication {
        name: "test"
        cpp.includePaths: sourceDirectory
        files: [
            "main.cpp",
        ]
        Depends { name: "Qt"; submodules: ["core", "xml"] }
        Depends { name: "kdsoap" }
        Rule {
            multiplex: true
            Artifact { filePath: "wsdl.cpp"; fileTags: "cpp" }
            Artifact { filePath: "wsdl.h"; fileTags: "cpp" }
            prepare: {
                var file = product.sourceDirectory +
"/wsdl/WsAnnuaire.wsdl";
                var cmd = new Command("kdwsdl2cpp", ["-both", "wsdl",
file]);
                cmd.description = "generating " + outputs;
                cmd.workingDirectory = product.buildDirectory;
                return cmd;
            }
        }
    }

Adding the second artifact makes qbs call moc on the wsdl.h and generates
the qt.headers/wsdl.moc file.
But how can I add this file to the link?

Thanks
Raphael
_______________________________________________
Qbs mailing list
[email protected]
https://lists.qt-project.org/listinfo/qbs

Reply via email to