buildinfo: Mark buildinfo.json as GENERATED file

This commit is contained in:
Paweł Bylica 2018-08-08 11:16:01 +02:00
parent e62eaa7ea5
commit 259d7ac174
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
2 changed files with 10 additions and 9 deletions

View File

@ -52,7 +52,7 @@ function(cable_add_buildinfo_library)
add_custom_command(
COMMENT "Updating ${name}:"
OUTPUT ${source_file}
OUTPUT ${source_file} ${output_dir}/buildinfo.json
COMMAND ${CMAKE_COMMAND}
-DOUTPUT_DIR=${output_dir}
-DPROJECT_NAME=${_PROJECT_NAME}
@ -67,6 +67,7 @@ function(cable_add_buildinfo_library)
DEPENDS
${cable_buildinfo_template_dir}/buildinfo.cmake
${cable_buildinfo_template_dir}/buildinfo.c.in
${cable_buildinfo_template_dir}/buildinfo.json.in
${name}-git
${output_dir}/gitinfo.txt
)

View File

@ -1,10 +1,10 @@
{
"name": "@PROJECT_NAME@",
"version": "@PROJECT_VERSION@",
"is_prerelease": @PROJECT_VERSION_IS_PRERELEASE@,
"commit": "@GIT_COMMIT_HASH@",
"branch": "@GIT_BRANCH@",
"repo": "@GIT_ORIGIN_URL@",
"system_name": "@SYSTEM_NAME@",
"system_processor": "@SYSTEM_PROCESSOR@"
"name": "@PROJECT_NAME@",
"version": "@PROJECT_VERSION@",
"is_prerelease": @PROJECT_VERSION_IS_PRERELEASE@,
"commit": "@GIT_COMMIT_HASH@",
"branch": "@GIT_BRANCH@",
"repo": "@GIT_ORIGIN_URL@",
"system_name": "@SYSTEM_NAME@",
"system_processor": "@SYSTEM_PROCESSOR@"
}