[build] disable android SDL client build
This commit is contained in:
parent
4815b2a6ee
commit
7c625036ef
@ -76,8 +76,8 @@ common_parse_arguments $REMAINING
|
|||||||
|
|
||||||
if [ -z ${WITH_MEDIACODEC+x} ];
|
if [ -z ${WITH_MEDIACODEC+x} ];
|
||||||
then
|
then
|
||||||
common_run echo "WITH_MEDIACODEC unset, defining WITH_MEDIACODEC=1"
|
common_run echo "WITH_MEDIACODEC unset, defining WITH_MEDIACODEC=1"
|
||||||
WITH_MEDIACODEC=1
|
WITH_MEDIACODEC=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# clean up top
|
# clean up top
|
||||||
@ -99,79 +99,80 @@ CMAKE_CMD_ARGS="-DANDROID_NDK=$ANDROID_NDK \
|
|||||||
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake \
|
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake \
|
||||||
-DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE \
|
-DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE \
|
||||||
-DFREERDP_EXTERNAL_PATH=$BUILD_DST \
|
-DFREERDP_EXTERNAL_PATH=$BUILD_DST \
|
||||||
|
-DWITH_CLIENT_SDL=OFF \
|
||||||
-DCMAKE_MAKE_PROGRAM=make"
|
-DCMAKE_MAKE_PROGRAM=make"
|
||||||
|
|
||||||
BASE=$(pwd)
|
BASE=$(pwd)
|
||||||
for ARCH in $BUILD_ARCH
|
for ARCH in $BUILD_ARCH
|
||||||
do
|
do
|
||||||
# build dependencies.
|
# build dependencies.
|
||||||
if [ $WITH_OPENH264 -ne 0 ];
|
if [ $WITH_OPENH264 -ne 0 ];
|
||||||
then
|
then
|
||||||
if [ -z "$ANDROID_NDK_OPENH264" ]
|
if [ -z "$ANDROID_NDK_OPENH264" ]
|
||||||
then
|
then
|
||||||
echo
|
echo
|
||||||
echo "Warning: Missing openh264-ndk, using $ANDROID_NDK" >&2
|
echo "Warning: Missing openh264-ndk, using $ANDROID_NDK" >&2
|
||||||
echo
|
echo
|
||||||
ANDROID_NDK_OPENH264=$ANDROID_NDK
|
ANDROID_NDK_OPENH264=$ANDROID_NDK
|
||||||
fi
|
fi
|
||||||
if [ $BUILD_DEPS -ne 0 ];
|
if [ $BUILD_DEPS -ne 0 ];
|
||||||
then
|
then
|
||||||
common_run bash $SCRIPT_PATH/android-build-openh264.sh \
|
common_run bash $SCRIPT_PATH/android-build-openh264.sh \
|
||||||
--src $BUILD_SRC/openh264 --dst $BUILD_DST \
|
--src $BUILD_SRC/openh264 --dst $BUILD_DST \
|
||||||
--sdk "$ANDROID_SDK" \
|
--sdk "$ANDROID_SDK" \
|
||||||
--ndk "$ANDROID_NDK_OPENH264" \
|
--ndk "$ANDROID_NDK_OPENH264" \
|
||||||
--arch $ARCH \
|
--arch $ARCH \
|
||||||
--target $NDK_TARGET \
|
--target $NDK_TARGET \
|
||||||
--tag $OPENH264_TAG \
|
--tag $OPENH264_TAG \
|
||||||
--hash $OPENH264_HASH
|
--hash $OPENH264_HASH
|
||||||
fi
|
fi
|
||||||
CMAKE_CMD_ARGS="$CMAKE_CMD_ARGS -DWITH_OPENH264=ON"
|
CMAKE_CMD_ARGS="$CMAKE_CMD_ARGS -DWITH_OPENH264=ON"
|
||||||
else
|
else
|
||||||
CMAKE_CMD_ARGS="$CMAKE_CMD_ARGS -DWITH_OPENH264=OFF"
|
CMAKE_CMD_ARGS="$CMAKE_CMD_ARGS -DWITH_OPENH264=OFF"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $WITH_MEDIACODEC -ne 0 ];
|
if [ $WITH_MEDIACODEC -ne 0 ];
|
||||||
then
|
then
|
||||||
CMAKE_CMD_ARGS="$CMAKE_CMD_ARGS -DWITH_MEDIACODEC=ON"
|
CMAKE_CMD_ARGS="$CMAKE_CMD_ARGS -DWITH_MEDIACODEC=ON"
|
||||||
else
|
else
|
||||||
CMAKE_CMD_ARGS="$CMAKE_CMD_ARGS -DWITH_MEDIACODEC=OFF"
|
CMAKE_CMD_ARGS="$CMAKE_CMD_ARGS -DWITH_MEDIACODEC=OFF"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $WITH_FFMPEG -ne 0 ];
|
if [ $WITH_FFMPEG -ne 0 ];
|
||||||
then
|
then
|
||||||
if [ $BUILD_DEPS -ne 0 ];
|
if [ $BUILD_DEPS -ne 0 ];
|
||||||
then
|
then
|
||||||
common_run bash $SCRIPT_PATH/android-build-ffmpeg.sh \
|
common_run bash $SCRIPT_PATH/android-build-ffmpeg.sh \
|
||||||
--src $BUILD_SRC/ffmpeg --dst $BUILD_DST \
|
--src $BUILD_SRC/ffmpeg --dst $BUILD_DST \
|
||||||
--sdk "$ANDROID_SDK" \
|
--sdk "$ANDROID_SDK" \
|
||||||
--ndk "$ANDROID_NDK" \
|
--ndk "$ANDROID_NDK" \
|
||||||
--arch $ARCH \
|
--arch $ARCH \
|
||||||
--target $NDK_TARGET \
|
--target $NDK_TARGET \
|
||||||
--tag $FFMPEG_TAG \
|
--tag $FFMPEG_TAG \
|
||||||
--hash $FFMPEG_HASH
|
--hash $FFMPEG_HASH
|
||||||
fi
|
fi
|
||||||
CMAKE_CMD_ARGS="$CMAKE_CMD_ARGS -DWITH_FFMPEG=ON -DWITH_SWCALE=ON"
|
CMAKE_CMD_ARGS="$CMAKE_CMD_ARGS -DWITH_FFMPEG=ON -DWITH_SWCALE=ON"
|
||||||
else
|
else
|
||||||
CMAKE_CMD_ARGS="$CMAKE_CMD_ARGS -DWITH_FFMPEG=OFF"
|
CMAKE_CMD_ARGS="$CMAKE_CMD_ARGS -DWITH_FFMPEG=OFF"
|
||||||
fi
|
fi
|
||||||
if [ $WITH_OPENSSL -ne 0 ];
|
if [ $WITH_OPENSSL -ne 0 ];
|
||||||
then
|
then
|
||||||
if [ $BUILD_DEPS -ne 0 ];
|
if [ $BUILD_DEPS -ne 0 ];
|
||||||
then
|
then
|
||||||
common_run bash $SCRIPT_PATH/android-build-openssl.sh \
|
common_run bash $SCRIPT_PATH/android-build-openssl.sh \
|
||||||
--src $BUILD_SRC/openssl --dst $BUILD_DST \
|
--src $BUILD_SRC/openssl --dst $BUILD_DST \
|
||||||
--sdk "$ANDROID_SDK" \
|
--sdk "$ANDROID_SDK" \
|
||||||
--ndk $ANDROID_NDK \
|
--ndk $ANDROID_NDK \
|
||||||
--arch $ARCH \
|
--arch $ARCH \
|
||||||
--target $NDK_TARGET \
|
--target $NDK_TARGET \
|
||||||
--tag $OPENSSL_TAG \
|
--tag $OPENSSL_TAG \
|
||||||
--hash $OPENSSL_HASH
|
--hash $OPENSSL_HASH
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Build and install the library.
|
# Build and install the library.
|
||||||
if [ $DEPS_ONLY -eq 0 ];
|
if [ $DEPS_ONLY -eq 0 ];
|
||||||
then
|
then
|
||||||
common_run cd $BASE
|
common_run cd $BASE
|
||||||
common_run mkdir -p $BUILD_SRC/freerdp-build/$ARCH
|
common_run mkdir -p $BUILD_SRC/freerdp-build/$ARCH
|
||||||
common_run cd $BUILD_SRC/freerdp-build/$ARCH
|
common_run cd $BUILD_SRC/freerdp-build/$ARCH
|
||||||
@ -183,7 +184,7 @@ do
|
|||||||
$SRC_DIR
|
$SRC_DIR
|
||||||
echo $(pwd)
|
echo $(pwd)
|
||||||
common_run cmake --build . --target install
|
common_run cmake --build . --target install
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Successfully build library for architectures $BUILD_ARCH"
|
echo "Successfully build library for architectures $BUILD_ARCH"
|
||||||
|
Loading…
Reference in New Issue
Block a user