diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2019-09-24 11:42:15 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2019-10-21 11:28:55 +0000 |
commit | 1c2db890275f3db54242a8866c2ea50a496efb04 (patch) | |
tree | 4b0227a24c9621c98677d13f7104207996aee2f3 /cmake/ModuleDescription.json.in | |
parent | f8c1909320313c8a9c03661d8fe77728bde6556a (diff) |
Write out a module description file
Write out a file with some JSON data to describe a module.
This file contains information on how that module has been built.
Change-Id: I8a604692663cbb7b76b96b97124130e30b822e4b
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'cmake/ModuleDescription.json.in')
-rw-r--r-- | cmake/ModuleDescription.json.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/ModuleDescription.json.in b/cmake/ModuleDescription.json.in new file mode 100644 index 0000000000..e29f3f176d --- /dev/null +++ b/cmake/ModuleDescription.json.in @@ -0,0 +1,11 @@ +{ + "module_name": "${target}", + "version": "${CMAKE_PROJECT_VERSION}", + "built_with": { + "compiler_id": "${CMAKE_CXX_COMPILER_ID}", + "compiler_target": "${CMAKE_CXX_COMPILER_TARGET}", + "compiler_version": "${CMAKE_CXX_COMPILER_VERSION}", + "cross_compiled": ${cross_compilation}, + "target_system": "${CMAKE_SYSTEM_NAME}" + } +} |