Skip to content

Commit

Permalink
rename mingw to win-mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
valord577 committed Oct 1, 2024
1 parent da7f54c commit 335da83
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ case ${TARGET_PLATFORM} in
"macosx" | "iphoneos" | "iphonesimulator")
source "${PROJ_ROOT}/env-apple.sh" ${TARGET_PLATFORM} ${TARGET_ARCH}
;;
"mingw")
"win-mingw")
source "${PROJ_ROOT}/env-mingw.sh" ${TARGET_ARCH}
;;
*)
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/ffmpeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ case ${PKG_PLATFORM} in
--extra-ldflags='-fuse-ld=${LD}' --nm='${NM}' --ar='${AR}' --ranlib='${RANLIB}' --strip='${STRIP}'"
fi
;;
"mingw")
"win-mingw")
CONFIGURE_COMMAND="${CONFIGURE_COMMAND} \
--enable-cross-compile --sysroot='${SYSROOT}' --target-os=mingw64 --arch=${PKG_ARCH} --host-cc='${CC}' \
--windres='${WINDRES}' --nm='${NM}' --ar='${AR}' --ranlib='${RANLIB}' --strip='${STRIP}'"
Expand Down
4 changes: 2 additions & 2 deletions scripts/mbedtls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ python3 ${SUBPROJ_SRC}/scripts/config.py unset MBEDTLS_SSL_SRV_C
python3 ${SUBPROJ_SRC}/scripts/config.py unset MBEDTLS_SSL_RENEGOTIATION

case ${PKG_PLATFORM} in
"mingw")
"win-mingw")
if [ "${PKG_ARCH}" == "x86_64" ]; then
python3 ${SUBPROJ_SRC}/scripts/config.py set MBEDTLS_SHA256_USE_A64_CRYPTO_IF_PRESENT
python3 ${SUBPROJ_SRC}/scripts/config.py set MBEDTLS_SHA512_USE_A64_CRYPTO_IF_PRESENT
Expand All @@ -49,7 +49,7 @@ case ${PKG_TYPE} in
"static")
PKG_TYPE_FLAG="-D USE_STATIC_MBEDTLS_LIBRARY:BOOL=1 -D USE_SHARED_MBEDTLS_LIBRARY:BOOL=0"
PKG_LIBRARY_DEPS="-lmbedtls -lmbedx509 -lmbedcrypto -lp256m -leverest"
if [ "${PKG_PLATFORM}" == "mingw" ]; then { PKG_LIBRARY_DEPS="${PKG_LIBRARY_DEPS} -lws2_32 -lbcrypt"; } fi
if [ "${PKG_PLATFORM}" == "win-mingw" ]; then { PKG_LIBRARY_DEPS="${PKG_LIBRARY_DEPS} -lws2_32 -lbcrypt"; } fi
;;
*)
printf "\e[1m\e[31m%s\e[0m\n" "Invalid PKG TYPE: '${PKG_TYPE}'."
Expand Down

0 comments on commit 335da83

Please sign in to comment.