Add:ffmpeg source code.

This commit is contained in:
Fancy code 2024-06-05 20:44:57 +08:00
parent 701942f6bc
commit 7c9984033c
3 changed files with 20 additions and 1 deletions

View File

@ -20,3 +20,4 @@ add_subdirectory(httpserver.h-master/src)
add_subdirectory(cJSON-1.7.17)
add_subdirectory(libhv/libhv-1.3.2)
add_subdirectory(ffmpeg)

18
external/ffmpeg/CMakeLists.txt vendored Normal file
View File

@ -0,0 +1,18 @@
add_custom_target(
ffmpeg
# DEPENDS ${EXTERNAL_LIBS_OUTPUT_PATH}/libgo.a
# COMMAND mkdir ${GOAHEAD_UPLOAD_TMP_PATH}
# COMMAND cp ${EXTERNAL_SOURCE_PATH}/goahead-5.2.0/modify/http.c ${EXTERNAL_SOURCE_PATH}/goahead-5.2.0/GoAhead/src
# COMMAND touch ${EXTERNAL_SOURCE_PATH}/goahead-5.2.0/GoAhead/src/http.c
COMMAND test -f ${EXTERNAL_SOURCE_PATH}/ffmpeg/Makefile || tar -xf ffmpeg_6.1.1.orig.tar.xz
COMMAND cd ffmpeg-6.1.1 && ./configure --enable-cross-compile --target-os=linux --arch=arm64
--cc=gcc
--cxx=g++
--prefix=/home/xiaojiazhu/project/tmp
--disable-asm --enable-parsers --disable-decoders --enable-decoder=h264 --enable-decoder=aac
--disable-debug --enable-ffmpeg --enable-shared --enable-static --disable-stripping --disable-doc
COMMAND cd ffmpeg-6.1.1 && make
WORKING_DIRECTORY ${EXTERNAL_SOURCE_PATH}/ffmpeg/
)

BIN
external/ffmpeg/ffmpeg_6.1.1.orig.tar.xz vendored Executable file

Binary file not shown.