2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 15:45:12 +00:00

Add changelog2appdata into cmake build

This commit is contained in:
Ilya Fedin
2020-11-20 00:21:05 +04:00
committed by John Preston
parent 64c791a9ce
commit cc35653c2c
2 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
# This file is part of Telegram Desktop,
# the official desktop application for the Telegram messaging service.
#
# For license and copyright information please follow this link:
# https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
function(generate_appdata_changelog target_name changelog_path appdata_path)
find_package(Python3 REQUIRED)
add_custom_target(${target_name}_appdata_changelog
${Python3_EXECUTABLE}
${submodules_loc}/build/changelog2appdata.py
-c "${changelog_path}"
-a "${appdata_path}"
-n 10
COMMENT "Generating AppData changelog (${target_name})"
DEPENDS
${submodules_loc}/build/changelog2appdata.py
${changelog_path}
${appdata_path}
VERBATIM
)
add_dependencies(${target_name} ${target_name}_appdata_changelog)
endfunction()