CMakeLists.txt 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. set(MODULE_NAME "libvideoframework")
  2. set(MODULE_PREFIX "LIB_VIDEOFRAMEWORK_FUNC")
  3. add_definitions(-D__STDC_CONSTANT_MACROS)
  4. if(RVC_DEBUG_MODE)
  5. set(SPBASE_LIB spbased)
  6. else()
  7. set(SPBASE_LIB spbase)
  8. endif(RVC_DEBUG_MODE)
  9. if(MSVC)
  10. set(${VIDEONOUSE}_SRCS
  11. videorender.h
  12. videoview.h
  13. videorender.c
  14. videoview.c
  15. )
  16. else()
  17. set(${VIDEONOUSE}_SRCS
  18. )
  19. endif(MSVC)
  20. if(MSVC)
  21. set(${VIDEOPLATFORM}_SRCS
  22. videocap.h
  23. videoplayer.h
  24. videocap.cpp
  25. videoplayer.c
  26. congestion_control/common/platform/windows/mscc.c
  27. )
  28. else()
  29. set(${VIDEOPLATFORM}_SRCS
  30. congestion_control/common/platform/linux/posix.c
  31. )
  32. endif(MSVC)
  33. set(${MODULE_PREFIX}_SRCS
  34. adaptive_jitter_buffer/video_jbuff_api.cpp
  35. adaptive_jitter_buffer/video_jbuff_decoding_state.cpp
  36. adaptive_jitter_buffer/video_jbuff_frame.cpp
  37. adaptive_jitter_buffer/video_jbuff_framelist.cpp
  38. adaptive_jitter_buffer/video_jbuff_jitterbuffer.cpp
  39. adaptive_jitter_buffer/video_jbuff_log.c
  40. adaptive_jitter_buffer/video_jbuff_packet.cpp
  41. congestion_control/cc/razor_api.c
  42. congestion_control/cc/razor_log.c
  43. congestion_control/cc/receiver_congestion_controller.c
  44. congestion_control/cc/sender_congestion_controller.c
  45. congestion_control/common/cf_crc32.c
  46. congestion_control/common/cf_hex.c
  47. congestion_control/common/cf_list.c
  48. congestion_control/common/cf_skiplist.c
  49. congestion_control/common/cf_stream.c
  50. congestion_control/common/cf_unwrapper.c
  51. congestion_control/estimator/ack_bitrate_estimator.c
  52. congestion_control/estimator/aimd_rate_control.c
  53. congestion_control/estimator/bitrate_controller.c
  54. congestion_control/estimator/cc_feedback_adapter.c
  55. congestion_control/estimator/cc_loss_stat.c
  56. congestion_control/estimator/delay_base_bwe.c
  57. congestion_control/estimator/estimator_common.c
  58. congestion_control/estimator/inter_arrival.c
  59. congestion_control/estimator/kalman_filter.c
  60. congestion_control/estimator/overuse_detector.c
  61. congestion_control/estimator/rate_stat.c
  62. congestion_control/estimator/remote_bitrate_estimator.c
  63. congestion_control/estimator/remote_estimator_proxy.c
  64. congestion_control/estimator/sender_bandwidth_estimator.c
  65. congestion_control/estimator/sender_history.c
  66. congestion_control/estimator/trendline.c
  67. congestion_control/pacing/alr_detector.c
  68. congestion_control/pacing/interval_budget.c
  69. congestion_control/pacing/pacer_queue.c
  70. congestion_control/pacing/pace_sender.c
  71. congestion_control/sim_transport/sim_external.c
  72. congestion_control/sim_transport/sim_receiver.c
  73. congestion_control/sim_transport/sim_sender.c
  74. congestion_control/sim_transport/sim_session.c
  75. h264_packetizer/h264_packetizer.c
  76. rtp_header_extension/rtp_header_extensions.cpp
  77. rtp_header_extension/rtp_header_extension_api.cpp
  78. rtp_header_extension/rtp_header_extension_map.cpp
  79. rtp_header_extension/rtp_header_extension_packet.cpp
  80. rtp_header_extension/rtp_header_extension_parser.cpp
  81. videoclock.c
  82. videortp.c
  83. video_coding/base/exp_filter.cpp
  84. video_coding/base/rate_statistics.cpp
  85. video_coding/base/video_coding_log.c
  86. video_coding/frame_dropper.cpp
  87. video_coding/h264/bit_buffer.cpp
  88. video_coding/h264/h264_bitstream_parser.cpp
  89. video_coding/h264/h264_common.cpp
  90. video_coding/h264/pps_parser.cpp
  91. video_coding/h264/sps_parser.cpp
  92. video_coding/video_decoder.c
  93. video_coding/video_encoder.cpp
  94. video_coding/video_encoder_api.cpp
  95. video_coding/video_stream_encoder.cpp
  96. video_common/videocommon.c
  97. video_common/videodebugfile.c
  98. video_common/videoutil.c
  99. video_common/video_encoded_image.cpp
  100. video_statics/video_stats.c
  101. ${${VIDEOPLATFORM}_SRCS}
  102. )
  103. add_library(${MODULE_NAME} STATIC ${${MODULE_PREFIX}_SRCS})
  104. target_include_directories(${MODULE_NAME} PRIVATE
  105. ${RVC_FRAMEWORK_INCLUDES_DIR}
  106. ${CONAN_INCLUDE_DIRS_FFMPEG}
  107. ${CMAKE_CURRENT_SOURCE_DIR}
  108. ${OTHER_LIB_PLATFORM_BASE_DIR}/libvideohorflip
  109. ${OTHER_LIB_PLATFORM_BASE_DIR}/rvcmediacommon
  110. ${CONAN_INCLUDE_DIRS_LIBYUV}
  111. )
  112. target_link_directories(${MODULE_NAME} PRIVATE
  113. ${CONAN_LIB_DIRS_FFMPEG}
  114. ${CONAN_LIB_DIRS_LIBYUV}
  115. )
  116. target_link_libraries(${MODULE_NAME} PRIVATE
  117. ${CONAN_LIBS_FFMPEG}
  118. ${SPBASE_LIB}
  119. ${CONAN_PKG_LIBS_LIBYUV}
  120. )
  121. target_compile_definitions(${MODULE_NAME} PUBLIC "_XKEYCHECK_H")
  122. if(MSVC)
  123. set(OTHER_CONAN_DEP_LIBS ${OTHER_CONAN_DEP_LIBS} ${CONAN_BIN_DIRS} PARENT_SCOPE)
  124. else()
  125. set(OTHER_CONAN_DEP_LIBS ${OTHER_CONAN_DEP_LIBS} ${CONAN_LIB_DIRS} PARENT_SCOPE)
  126. endif(MSVC)
  127. set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "other/")