-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into media-file
# Conflicts: # .github/workflows/compilability_check.yml
- Loading branch information
Showing
10 changed files
with
68 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env bash | ||
|
||
# libaom doesn't support building while being in its root directory | ||
CMAKE_BUILD_DIR=libx265_build_${ANDROID_ABI} | ||
rm -rf ${CMAKE_BUILD_DIR} | ||
mkdir ${CMAKE_BUILD_DIR} | ||
cd ${CMAKE_BUILD_DIR} | ||
|
||
EXTRA_CMAKE_ARG="" | ||
case $ANDROID_ABI in | ||
arm64-v8a|x86) | ||
# Disabling assembler optimizations for certain ABIs. Not a good solution, but it at least works | ||
EXTRA_CMAKE_ARG="-DENABLE_ASSEMBLY=OFF" | ||
;; | ||
esac | ||
|
||
${CMAKE_EXECUTABLE} ../source \ | ||
-DANDROID_PLATFORM=${ANDROID_PLATFORM} \ | ||
-DANDROID_ABI=${ANDROID_ABI} \ | ||
-DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake \ | ||
-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} \ | ||
-DENABLE_PIC=ON \ | ||
-DENABLE_SHARED=OFF \ | ||
-DENABLE_CLI=OFF \ | ||
$EXTRA_CMAKE_ARG | ||
|
||
EXTRA_SED_ARG="" | ||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||
EXTRA_SED_ARG="''" | ||
fi | ||
sed -i $EXTRA_SED_ARG 's/-lpthread/-pthread/' CMakeFiles/cli.dir/link.txt | ||
sed -i $EXTRA_SED_ARG 's/-lpthread/-pthread/' CMakeFiles/x265-shared.dir/link.txt | ||
sed -i $EXTRA_SED_ARG 's/-lpthread/-pthread/' CMakeFiles/x265-static.dir/link.txt | ||
|
||
export FFMPEG_EXTRA_LD_FLAGS="${FFMPEG_EXTRA_LD_FLAGS} -lm -lc++" | ||
|
||
${MAKE_EXECUTABLE} -j${HOST_NPROC} | ||
${MAKE_EXECUTABLE} install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
source ${SCRIPTS_DIR}/common-functions.sh | ||
|
||
LIBX265_VERSION=3.5 | ||
|
||
downloadTarArchive \ | ||
"libx265" \ | ||
"https://bitbucket.org/multicoreware/x265_git/downloads/x265_${LIBX265_VERSION}.tar.gz" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
include("$ENV{ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake") | ||
|
||
if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "i686") | ||
set(CMAKE_C_FLAGS "-mpclmul -msse2 -maes") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters