[Development] [Solved]Qt4.8.x, qdoc3 not available Qt env variables from *.qdocconf file

Denis Shienkov scapig2 at yandex.ru
Mon Dec 3 11:31:22 CET 2012


Oswald,

Thank you very much, it seems it works on Qt4.8.x.

After adding the lines:
...
QTDOC = $$[QT_INSTALL_DOCS]
QTDOC = $$replace(QTDOC, \\\\, /)
...
include(<path/to/my/prf>/serialport.prf) 
...
qtPrepareTool(QDOC, qdoc3)

qtdoc_var.name = QTDOC
qtdoc_var.value = $$QTDOC
qtAddToolEnv(QDOC, qtdoc_var)
...

Makefile will contains like:

docs:
	cd G:\Qt\Qt4.8.3 && (set QTDOC=G:/Qt/Qt4.8.3/doc) & .\bin\qdoc3.exe <path/to/my/qdocconf>my.qdocconf

Once again, thank you.

Best regards,
Denis


03.12.2012, 14:11, "Oswald Buddenhagen" <oswald.buddenhagen at digia.com>:
> On Fri, Nov 30, 2012 at 05:32:58PM +0400, Denis Shienkov wrote:
>
>>  defineTest(qtAddToolEnv) {
>>  }
>
> the function is fine and should work with qt4.
>
>>  qtPrepareTool(QDOC, qdoc3)
>
> yes ...
>
>>  #!!! Here I assume that this function should be exported to environment the path to Qt doc.
>>  # i.e. equal: set G:/Qt/Qt4.8.3/doc !!!
>>  qtAddToolEnv(QTDOC, $$QTDOC)
>
> this is entirely bogus.
>
> thevar.name = VARYOUWANT
> thevar.value = valueyouwant
> qtAddToolEnv(QDOC, thevar)
>
> don't forget that the value is likely to need separator fixing and
> quoting, which is quite a pain to do properly in qt4.
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development



More information about the Development mailing list