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_ffmpeg OBJECT)
|
2019-11-21 14:41:11 +00:00
|
|
|
add_library(desktop-app::lib_ffmpeg ALIAS lib_ffmpeg)
|
2019-11-08 12:02:15 +00:00
|
|
|
init_target(lib_ffmpeg)
|
|
|
|
|
2019-12-03 16:11:03 +00:00
|
|
|
nice_target_sources(lib_ffmpeg ${src_loc}
|
2019-11-08 12:02:15 +00:00
|
|
|
PRIVATE
|
|
|
|
ffmpeg/ffmpeg_utility.cpp
|
|
|
|
ffmpeg/ffmpeg_utility.h
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(lib_ffmpeg
|
|
|
|
PUBLIC
|
|
|
|
${src_loc}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(lib_ffmpeg
|
|
|
|
PUBLIC
|
2019-11-21 14:41:11 +00:00
|
|
|
desktop-app::lib_base
|
2019-12-03 16:11:03 +00:00
|
|
|
desktop-app::external_ffmpeg
|
2019-11-08 12:02:15 +00:00
|
|
|
)
|
2019-12-06 11:10:44 +00:00
|
|
|
|
|
|
|
if (DESKTOP_APP_SPECIAL_TARGET)
|
|
|
|
target_compile_definitions(lib_ffmpeg PRIVATE LIB_FFMPEG_USE_QT_PRIVATE_API)
|
|
|
|
endif()
|