# Copyright (C) 2019 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

project = Test
productname = Qt
description = "A test project for QDoc build artifacts"

sources.fileextensions = "*.qml *.cpp *.qdoc"
headers.fileextensions = "*.h"

# Images
imagedirs = images

# Don't write host system-specific paths to index files
locationinfo = false

includepaths += -I./src

headers = src/testcpp.h
sources = src/testcpp.cpp \
          src/classlists.qdoc

macro.CMDFN = \\\\fn
macro.nothing = \\dontdocument ()
macro.testnoautolist = \\if defined(test_noautolist)\n\\noautolist\n\\endif

navigation.cppclassespage = "QDoc Test C++ Classes"

moduleheader = TestCPP

exampledirs = src/qml

headerdirs += src
sourcedirs += src/qml

examples.fileextensions = "*.qml *.cpp"

macro.begincomment      = "\\c{/*}"
macro.QDocTestVer       = "1.1"

navigation.qmltypespage     = "QDoc.Test QML Module"
navigation.qmltypestitle    = "Types"

manifestmeta.examplecategories = "Application Examples" \
                                 "Desktop" \
                                 "Mobile" \
                                 "Embedded"
defines += test_noautolist

outputformats = HTML DocBook

HTML.nosubdirs          = true
DocBook.nosubdirs       = true
HTML.outputsubdir       = noautolist
DocBook.outputsubdir    = noautolist-docbook

# TODO: DocBook generator has trouble handling shared comment nodes
# - allow two warnings related to these
warninglimit = 2
warninglimit.enabled = true
