代码拉取完成,页面将自动刷新
同步操作将从 histreamer/histreamer_dev 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
include(FetchContent)
################################################################
# test_resource.git : depends and resource
FetchContent_Declare(resource
GIT_REPOSITORY https://gitee.com/histreamer/test_resource.git
GIT_TAG master
)
SET(RESOURCE_SRC ${CMAKE_BINARY_DIR}/_deps/resource-src)
if(NOT EXISTS ${RESOURCE_SRC})
message("-- Download resource and copy depends. Resource directory : " ${RESOURCE_SRC})
FetchContent_Populate(resource)
file(COPY ${resource_SOURCE_DIR}/depends/3rdparty DESTINATION ${TOP_DIR})
else()
message("-- Resource directory exists : " ${RESOURCE_SRC})
endif()
add_definitions(-DRESOURCE_DIR="${RESOURCE_SRC}/media")
if (AVS3DA_ENABLE)
add_definitions(-DAVS3DA_CODEC_DIR="${HISTREAMER_PLUGINS_DIR}/codec/avs3_audio_decoder/avs3_codec/avs3Decoder/")
if (NOT EXISTS ${RESOURCE_SRC}/media/AVS3DA AND EXISTS ${HISTREAMER_PLUGINS_DIR}/media/AVS3DA)
file(COPY ${HISTREAMER_PLUGINS_DIR}/media/AVS3DA DESTINATION ${RESOURCE_SRC}/media)
endif()
endif()
################################################################
# multimedia_histreamer.git : Create symbolic link of histreamer-res
FetchContent_Declare(histreamer
GIT_REPOSITORY https://gitee.com/openharmony/multimedia_histreamer.git
GIT_TAG master
)
macro(cmake_path_to_win_path InputPath ResultPath)
string(REPLACE "/" "\\" ${ResultPath} "${InputPath}")
endmacro()
set(HISTREAMER_SRC_PATH ${CMAKE_BINARY_DIR}/_deps/histreamer-src)
if(NOT EXISTS ${CMAKE_SOURCE_DIR}/histreamer)
message("-- Download histreamer ...")
FetchContent_Populate(histreamer)
if (CMAKE_HOST_UNIX)
execute_process(COMMAND ln -s ${HISTREAMER_SRC_PATH} ${CMAKE_SOURCE_DIR}/histreamer OUTPUT_VARIABLE output_result)
else()
cmake_path_to_win_path(${HISTREAMER_SRC_PATH} WIN_HISTREAMER_SRC_PATH)
cmake_path_to_win_path(${CMAKE_SOURCE_DIR}/histreamer WIN_HISTREAMER_LINK_PATH)
execute_process(COMMAND cmd.exe /c mklink /j ${WIN_HISTREAMER_LINK_PATH} ${WIN_HISTREAMER_SRC_PATH}
OUTPUT_VARIABLE output_result ERROR_VARIABLE error_result ENCODING UTF-8 )
endif()
message("-- Create histreamer symbolic link :")
message(" Info: " ${output_result})
else()
message("-- histreamer directory exists.")
endif()
add_subdirectory(histreamer)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。