首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >qbs不调用qdoc。

qbs不调用qdoc。
EN

Stack Overflow用户
提问于 2017-07-28 09:27:42
回答 1查看 93关注 0票数 0

问题是,我提供了一个简单的qdocconf文件和我的项目,但是,qbs不调用qdoc,而qdocconf位于项目的file属性中。

Project.qbs

代码语言:javascript
复制
import qbs

Project {
    name: "LoggingMessageHandler"

    Product {
        files: [
            "config.qdocconf",
            "messagehandler.cpp",
        ]
        name: "LoggingMessageHandler"
        type: project.staticBuild ? "staticlibrary" : "dynamiclibrary"

        Depends { name: "cpp" }
        Depends { name: "Qt.core" }

        cpp.cxxLanguageVersion: "c++11"
        cpp.defines: [
            "QT_DEPRECATED_WARNINGS",
            "QT_DISABLE_DEPRECATED_BEFORE=0x060000"
        ]

        Export {
            Depends { name: "cpp" }
            Depends { name: "Qt.core" }
            cpp.includePaths: [product.sourceDirectory]
        }

        Group {
            overrideTags: false
            files: "*.qdocconf"
            fileTags: "qdocconf-main"
        }

        Group {
            name: "install include"
            overrideTags: false
            files: [
                "messagehandler.h",
                "LoggingMessageHandler"
            ]
            qbs.install: project.installInclude
            qbs.installDir: "/include"
        }

    }

}

config.qdocconf:

代码语言:javascript
复制
project = LoggingMessageHandler
description = A set of QMessageHandler function to be used with the Qt Logging framework.

depends += qtcore

outputdir = ./doc
headerdirs = .
sourcedirs = .
exampledirs = .

项目dir层次结构:

PS: project.installInclude是从更高的项目文件中设置的开关。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-07-28 11:02:27

您没有告诉qbs您希望构建文档。向产品类型添加相关标签,如"qch“。有关qdoc相关的文件标记,请参见https://doc.qt.io/qbs/qt-modules.html#core-file-tags。关于产品类型的一般角色,请参见https://doc.qt.io/qbs/rule-item.html#rules-and-product-types

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45369781

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档