lib_ffmpeg.cmake 883 B

12345678910111213141516171819202122232425262728293031323334
  1. # This file is part of Telegram Desktop,
  2. # the official desktop application for the Telegram messaging service.
  3. #
  4. # For license and copyright information please follow this link:
  5. # https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. add_library(lib_ffmpeg OBJECT)
  7. add_library(desktop-app::lib_ffmpeg ALIAS lib_ffmpeg)
  8. init_target(lib_ffmpeg)
  9. nice_target_sources(lib_ffmpeg ${src_loc}
  10. PRIVATE
  11. ffmpeg/ffmpeg_frame_generator.cpp
  12. ffmpeg/ffmpeg_frame_generator.h
  13. ffmpeg/ffmpeg_bytes_io_wrap.h
  14. ffmpeg/ffmpeg_utility.cpp
  15. ffmpeg/ffmpeg_utility.h
  16. )
  17. target_include_directories(lib_ffmpeg
  18. PUBLIC
  19. ${src_loc}
  20. )
  21. target_link_libraries(lib_ffmpeg
  22. PUBLIC
  23. desktop-app::lib_base
  24. desktop-app::lib_ui
  25. desktop-app::external_ffmpeg
  26. )
  27. if (DESKTOP_APP_SPECIAL_TARGET)
  28. target_compile_definitions(lib_ffmpeg PRIVATE LIB_FFMPEG_USE_QT_PRIVATE_API)
  29. endif()