2019-11-21 11:56:17 +00:00
|
|
|
# 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
|
|
|
|
|
2019-11-08 12:02:15 +00:00
|
|
|
add_library(lib_scheme OBJECT)
|
|
|
|
init_target(lib_scheme)
|
2019-11-21 14:41:11 +00:00
|
|
|
add_library(tdesktop::lib_scheme ALIAS lib_scheme)
|
2019-11-08 12:02:15 +00:00
|
|
|
|
|
|
|
include(cmake/generate_scheme.cmake)
|
|
|
|
|
|
|
|
set(scheme_files
|
|
|
|
${res_loc}/tl/mtproto.tl
|
|
|
|
${res_loc}/tl/api.tl
|
|
|
|
)
|
|
|
|
|
|
|
|
generate_scheme(lib_scheme ${src_loc}/codegen/scheme/codegen_scheme.py "${scheme_files}")
|
|
|
|
|
2019-12-09 12:59:08 +00:00
|
|
|
nice_target_sources(lib_scheme ${res_loc}
|
|
|
|
PRIVATE
|
|
|
|
tl/mtproto.tl
|
|
|
|
tl/api.tl
|
|
|
|
)
|
|
|
|
|
2019-11-08 12:02:15 +00:00
|
|
|
target_include_directories(lib_scheme
|
|
|
|
PUBLIC
|
|
|
|
${src_loc}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(lib_scheme
|
|
|
|
PUBLIC
|
2019-11-21 14:41:11 +00:00
|
|
|
desktop-app::lib_base
|
|
|
|
desktop-app::lib_tl
|
2019-11-08 12:02:15 +00:00
|
|
|
)
|