Skip to content

Commit

Permalink
add debug flag
Browse files Browse the repository at this point in the history
  • Loading branch information
valord577 committed May 13, 2024
1 parent 22b53b4 commit ad5116a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FFmpeg for Apple Platform
FFmpeg Build Scripts
======

1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ fi

function compile() {
(
set -x
export PROJ_ROOT="${PROJ_ROOT}"

export PKG_NAME="${1}"
Expand Down
2 changes: 1 addition & 1 deletion patchs/ffmpeg/01_use_custom_config.patch
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ index 00c3cee33f..12800dcb21 100755
+if [ "${GITHUB_ACTIONS}" == "true" ]; then
+ FFMPEG_CONFIGURATION="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID} (${GITHUB_SHA})"
+else
+ FFMPEG_CONFIGURATION="ffmpeg for apple - $(whoami)@$(uname -n) $(date -u '+%Y-%m-%dT%H:%M:%SZ%:z')"
+ FFMPEG_CONFIGURATION="ffmpeg - $(whoami)@$(uname -n) $(date -u '+%Y-%m-%dT%H:%M:%SZ%:z')"
+fi
+
cat > ffbuild/config.mak <<EOF
Expand Down
15 changes: 0 additions & 15 deletions scripts/sdl2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ set -e
case ${PKG_TYPE} in
"static")
PKG_TYPE_FLAG="-D BUILD_SHARED_LIBS:BOOL=0"
PKG_LIBRARY_DEPS="-lmbedtls -lmbedx509 -lmbedcrypto -lp256m -leverest"
;;
?)
printf "\e[1m\e[31m%s\e[0m\n" "Invalid PKG TYPE: '${PKG_TYPE}'."
Expand Down Expand Up @@ -50,20 +49,6 @@ printf "\e[1m\e[36m%s\e[0m\n" "${CMAKE_COMMAND}" && eval ${CMAKE_COMMAND}
cmake --build "${PKG_BULD_DIR}" -j ${PARALLEL_JOBS}
cmake --install "${PKG_BULD_DIR}" ${PKG_INST_STRIP}

# PKG_CONFIG_FILE="${PKG_INST_DIR}/lib/pkgconfig/mbedtls.pc"
# mkdir -p -- "$(dirname ${PKG_CONFIG_FILE})"
# cat > "${PKG_CONFIG_FILE}" <<- EOF
# prefix=\${pcfiledir}/../..
# libdir=\${prefix}/lib
# includedir=\${prefix}/include

# Name: mbedtls
# Description: An open source, portable, easy to use, readable and flexible TLS library
# Version: ${PKG_VERSION}
# Libs: -L\${libdir} ${PKG_LIBRARY_DEPS}
# Cflags: -I\${includedir}
# EOF

if command -v tree >/dev/null 2>&1 ; then
tree ${PKG_INST_DIR}
else
Expand Down

0 comments on commit ad5116a

Please sign in to comment.