diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2020-05-19 18:44:02 +0300 |
---|---|---|
committer | Denis Shienkov <denis.shienkov@gmail.com> | 2020-05-26 08:38:33 +0000 |
commit | 25bbd9f0d6877a8f6b245708f6cfdfd5472ea0ff (patch) | |
tree | 8e8e09b5bd6684ffbacad32f3672504e35dbc115 /doc/reference | |
parent | 495d7767af801c6d7cda0d759b89a18f490359f2 (diff) |
Msvc: Handle windows module definition file
Module-definition (.def) file provide the linker with information about
exports, attributes, and other information about the program to be linked.
This file can be used instead of e.g. __declspec(dllexport) keywords
inside of a header files to export an appropriate symbols:
* https://docs.microsoft.com/en-us/cpp/build/reference/module-definition-dot-def-files?view=vs-2019
* https://docs.microsoft.com/en-us/cpp/build/reference/def-specify-module-definition-file?view=vs-2019
To make it supported, we have created the additional 'def' file tag,
and now we can add the required module-definition file to the
{Product|Group}'s 'files' property.
Fixes: QBS-571
Change-Id: I831d2e1b8f9f061a4414a5eaac85b71584f48c5d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'doc/reference')
-rw-r--r-- | doc/reference/modules/cpp-module.qdoc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/reference/modules/cpp-module.qdoc b/doc/reference/modules/cpp-module.qdoc index ff8c0172e..3c1744e09 100644 --- a/doc/reference/modules/cpp-module.qdoc +++ b/doc/reference/modules/cpp-module.qdoc @@ -144,6 +144,14 @@ and Objective-C++, respectively. There can be only one such file per product and language. \row + \li \c{"def"} + \li - + \li 1.17.0 + \li This tag is used for a module-definition file (.def) to be passed to the linker. + Such a file provides the linker with information about exports, attributes, + and other information about the program to be linked. This file tag only has + an effect with the MSVC toolchain. + \row \li \c{"dynamiclibrary"} \li n/a \li 1.0.1 |