CMakeLists.txt 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. set(MODULE_NAME "libvideoframework")
  2. set(MODULE_PREFIX "LIB_VIDEOFRAMEWORK_FUNC")
  3. if(RVC_DEBUG_MODE)
  4. set(SPBASE_LIB spbased)
  5. else()
  6. set(SPBASE_LIB spbase)
  7. endif(RVC_DEBUG_MODE)
  8. set(${MODULE_PREFIX}_SRCS
  9. adaptive_jitter_buffer/video_jbuff_api.h
  10. adaptive_jitter_buffer/video_jbuff_decoding_state.h
  11. adaptive_jitter_buffer/video_jbuff_defines.h
  12. adaptive_jitter_buffer/video_jbuff_frame.h
  13. adaptive_jitter_buffer/video_jbuff_framelist.h
  14. adaptive_jitter_buffer/video_jbuff_jitterbuffer.h
  15. adaptive_jitter_buffer/video_jbuff_log.h
  16. adaptive_jitter_buffer/video_jbuff_packet.h
  17. congestion_control/cc/razor_api.h
  18. congestion_control/cc/razor_callback.h
  19. congestion_control/cc/razor_log.h
  20. congestion_control/cc/receiver_congestion_controller.h
  21. congestion_control/cc/sender_congestion_controller.h
  22. congestion_control/common/cf_crc32.h
  23. congestion_control/common/cf_hex.h
  24. congestion_control/common/cf_list.h
  25. congestion_control/common/cf_platform.h
  26. congestion_control/common/cf_skiplist.h
  27. congestion_control/common/cf_stream.h
  28. congestion_control/common/cf_unwrapper.h
  29. congestion_control/estimator/ack_bitrate_estimator.h
  30. congestion_control/estimator/aimd_rate_control.h
  31. congestion_control/estimator/bitrate_controller.h
  32. congestion_control/estimator/cc_feedback_adapter.h
  33. congestion_control/estimator/cc_loss_stat.h
  34. congestion_control/estimator/delay_base_bwe.h
  35. congestion_control/estimator/estimator_common.h
  36. congestion_control/estimator/inter_arrival.h
  37. congestion_control/estimator/kalman_filter.h
  38. congestion_control/estimator/overuse_detector.h
  39. congestion_control/estimator/rate_stat.h
  40. congestion_control/estimator/remote_bitrate_estimator.h
  41. congestion_control/estimator/remote_estimator_proxy.h
  42. congestion_control/estimator/sender_bandwidth_estimator.h
  43. congestion_control/estimator/sender_history.h
  44. congestion_control/estimator/trendline.h
  45. congestion_control/pacing/alr_detector.h
  46. congestion_control/pacing/interval_budget.h
  47. congestion_control/pacing/pacer_queue.h
  48. congestion_control/pacing/pace_sender.h
  49. congestion_control/sim_transport/sim_external.h
  50. congestion_control/sim_transport/sim_internal.h
  51. congestion_control/sim_transport/sim_receiver.h
  52. congestion_control/sim_transport/sim_sender.h
  53. congestion_control/sim_transport/sim_session.h
  54. h264_packetizer/h264_packetizer.h
  55. rtp_header_extension/byte_io.h
  56. rtp_header_extension/rtp_header_extensions.h
  57. rtp_header_extension/rtp_header_extension_api.h
  58. rtp_header_extension/rtp_header_extension_defines.h
  59. rtp_header_extension/rtp_header_extension_map.h
  60. rtp_header_extension/rtp_header_extension_packet.h
  61. rtp_header_extension/rtp_header_extension_parser.h
  62. videocap.h
  63. videoclock.h
  64. videocommon.h
  65. videoframework.h
  66. videoplayer.h
  67. videorender.h
  68. videortp.h
  69. videoutil.h
  70. videoview.h
  71. video_coding/base/exp_filter.h
  72. video_coding/base/rate_statistics.h
  73. video_coding/base/video_coding_clock.h
  74. video_coding/base/video_coding_log.h
  75. video_coding/base/video_coding_type_defines.h
  76. video_coding/base/video_frame_type.h
  77. video_coding/frame_dropper.h
  78. video_coding/h264/bit_buffer.h
  79. video_coding/h264/h264_bitstream_parser.h
  80. video_coding/h264/h264_common.h
  81. video_coding/h264/pps_parser.h
  82. video_coding/h264/sps_parser.h
  83. video_coding/video_decoder.h
  84. video_coding/video_encoder.h
  85. video_coding/video_encoder_api.h
  86. video_coding/video_encoder_defines.h
  87. video_coding/video_stream_encoder.h
  88. video_common/ffmpeg_api_adapter.h
  89. video_common/ffmpeg_api_cpp_adapter.h
  90. video_common/videodebugfile.h
  91. video_common/video_encoded_image.h
  92. video_statics/video_stats.h
  93. adaptive_jitter_buffer/video_jbuff_api.cpp
  94. adaptive_jitter_buffer/video_jbuff_decoding_state.cpp
  95. adaptive_jitter_buffer/video_jbuff_frame.cpp
  96. adaptive_jitter_buffer/video_jbuff_framelist.cpp
  97. adaptive_jitter_buffer/video_jbuff_jitterbuffer.cpp
  98. adaptive_jitter_buffer/video_jbuff_log.c
  99. adaptive_jitter_buffer/video_jbuff_packet.cpp
  100. congestion_control/cc/razor_api.c
  101. congestion_control/cc/razor_log.c
  102. congestion_control/cc/receiver_congestion_controller.c
  103. congestion_control/cc/sender_congestion_controller.c
  104. congestion_control/common/cf_crc32.c
  105. congestion_control/common/cf_hex.c
  106. congestion_control/common/cf_list.c
  107. congestion_control/common/cf_skiplist.c
  108. congestion_control/common/cf_stream.c
  109. congestion_control/common/cf_unwrapper.c
  110. congestion_control/common/platform/windows/mscc.c
  111. congestion_control/estimator/ack_bitrate_estimator.c
  112. congestion_control/estimator/aimd_rate_control.c
  113. congestion_control/estimator/bitrate_controller.c
  114. congestion_control/estimator/cc_feedback_adapter.c
  115. congestion_control/estimator/cc_loss_stat.c
  116. congestion_control/estimator/delay_base_bwe.c
  117. congestion_control/estimator/estimator_common.c
  118. congestion_control/estimator/inter_arrival.c
  119. congestion_control/estimator/kalman_filter.c
  120. congestion_control/estimator/overuse_detector.c
  121. congestion_control/estimator/rate_stat.c
  122. congestion_control/estimator/remote_bitrate_estimator.c
  123. congestion_control/estimator/remote_estimator_proxy.c
  124. congestion_control/estimator/sender_bandwidth_estimator.c
  125. congestion_control/estimator/sender_history.c
  126. congestion_control/estimator/trendline.c
  127. congestion_control/pacing/alr_detector.c
  128. congestion_control/pacing/interval_budget.c
  129. congestion_control/pacing/pacer_queue.c
  130. congestion_control/pacing/pace_sender.c
  131. congestion_control/sim_transport/sim_external.c
  132. congestion_control/sim_transport/sim_receiver.c
  133. congestion_control/sim_transport/sim_sender.c
  134. congestion_control/sim_transport/sim_session.c
  135. h264_packetizer/h264_packetizer.c
  136. rtp_header_extension/rtp_header_extensions.cpp
  137. rtp_header_extension/rtp_header_extension_api.cpp
  138. rtp_header_extension/rtp_header_extension_map.cpp
  139. rtp_header_extension/rtp_header_extension_packet.cpp
  140. rtp_header_extension/rtp_header_extension_parser.cpp
  141. videocap.c
  142. videoclock.c
  143. videoplayer.c
  144. videorender.c
  145. videortp.c
  146. videoview.c
  147. video_coding/base/exp_filter.cpp
  148. video_coding/base/rate_statistics.cpp
  149. video_coding/base/video_coding_log.c
  150. video_coding/frame_dropper.cpp
  151. video_coding/h264/bit_buffer.cpp
  152. video_coding/h264/h264_bitstream_parser.cpp
  153. video_coding/h264/h264_common.cpp
  154. video_coding/h264/pps_parser.cpp
  155. video_coding/h264/sps_parser.cpp
  156. video_coding/video_decoder.c
  157. video_coding/video_encoder.cpp
  158. video_coding/video_encoder_api.cpp
  159. video_coding/video_stream_encoder.cpp
  160. video_common/videocommon.c
  161. video_common/videodebugfile.c
  162. video_common/videoutil.c
  163. video_common/video_encoded_image.cpp
  164. video_statics/video_stats.c
  165. precompile.h
  166. precompile.c
  167. )
  168. add_library(${MODULE_NAME} STATIC ${${MODULE_PREFIX}_SRCS})
  169. #add_precompiled_header(${MODULE_NAME} precompile.h SOURCE_CXX precompile.cpp FORCEINCLUDE)
  170. if(WIN32)
  171. conan_cmake_run(REQUIRES ffmpeg/4.1@LR04.02_ThirdParty/testing
  172. BASIC_SETUP CMAKE_TARGETS
  173. BUILD missing)
  174. else(WIN32)
  175. conan_cmake_run(REQUIRES ffmpeg/4.1@LR04.02_ThirdParty/testing
  176. BASIC_SETUP CMAKE_TARGETS
  177. BUILD missing)
  178. endif(WIN32)
  179. target_include_directories(${MODULE_NAME} PRIVATE
  180. ${RVC_COMMON_INCLUDE_DIR}
  181. ${CONAN_INCLUDE_DIRS_FFMPEG}
  182. ${CONAN_RVCFRAMEWORK_ROOT}/include
  183. ${RVC_TOOLKIT_INCLUDE_DIR}
  184. ${RVC_COMMON_INCLUDE_DIR}
  185. )
  186. message(STATUS "ffmpeg include dir is ${CONAN_INCLUDE_DIRS_FFMPEG}")
  187. message(STATUS "toolkit include dir is ${RVC_TOOLKIT_INCLUDE_DIR}")
  188. message(STATUS "framework root include dir is ${CONAN_RVCFRAMEWORK_ROOT}")
  189. message(STATUS "common include dir is ${RVC_COMMON_INCLUDE_DIR}")
  190. target_link_directories(${MODULE_NAME} PRIVATE
  191. ${CONAN_LIB_DIRS_FFMPEG}
  192. ${CONAN_LIB_DIRS_RVCFRAMEWORK}
  193. )
  194. target_link_libraries(${MODULE_NAME} PRIVATE ${${MODULE_PREFIX}_LIBS}
  195. ${CONAN_LIBS_FFMPEG}
  196. ${SPBASE_LIB}
  197. )
  198. target_compile_definitions(${MODULE_NAME} PUBLIC "_XKEYCHECK_H")