init
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Close stale issues and PRs / stale (push) Successful in 13s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Close stale issues and PRs / stale (push) Successful in 13s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
This commit is contained in:
44
Telegram/cmake/td_scheme.cmake
Normal file
44
Telegram/cmake/td_scheme.cmake
Normal file
@@ -0,0 +1,44 @@
|
||||
# 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
|
||||
|
||||
add_library(td_scheme OBJECT)
|
||||
init_non_host_target(td_scheme)
|
||||
add_library(tdesktop::td_scheme ALIAS td_scheme)
|
||||
|
||||
include(cmake/generate_scheme.cmake)
|
||||
|
||||
set(scheme_files
|
||||
${src_loc}/mtproto/scheme/api.tl
|
||||
${src_loc}/mtproto/scheme/mtproto.tl
|
||||
)
|
||||
|
||||
generate_scheme(td_scheme ${src_loc}/codegen/scheme/codegen_scheme.py "${scheme_files}")
|
||||
|
||||
nice_target_sources(td_scheme ${src_loc}/mtproto/scheme
|
||||
PRIVATE
|
||||
api.tl
|
||||
mtproto.tl
|
||||
)
|
||||
|
||||
target_include_directories(td_scheme
|
||||
PUBLIC
|
||||
${src_loc}
|
||||
)
|
||||
|
||||
target_link_libraries(td_scheme
|
||||
PUBLIC
|
||||
desktop-app::lib_base
|
||||
desktop-app::lib_tl
|
||||
)
|
||||
|
||||
if (CMAKE_SYSTEM_PROCESSOR STREQUAL "mips64")
|
||||
# Sometimes final linking may fail with error "relocation truncated to fit"
|
||||
# due to large scheme size.
|
||||
target_compile_options(td_scheme
|
||||
PRIVATE
|
||||
-mxgot
|
||||
)
|
||||
endif()
|
||||
Reference in New Issue
Block a user