Skip to content

Commit

Permalink
Merge pull request #166 from wseemann/dev
Browse files Browse the repository at this point in the history
Improved https support
  • Loading branch information
wseemann committed Oct 15, 2017
2 parents 63f68a1 + 4fb4081 commit 5e3dc71
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
12 changes: 6 additions & 6 deletions gradle/fmmr-library/library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
compileSdkVersion 25
buildToolsVersion '25.0.0'

def mkfile = "NDK_APPLICATION_MK=Application.mk"
def aarname = "all-fmmr"
//def mkfile = "NDK_APPLICATION_MK=Application.mk"
//def aarname = "all-fmmr"

//def mkfile = "NDK_APPLICATION_MK=ARMApplication.mk"
//def aarname = "arm-fmmr"
Expand All @@ -24,8 +24,8 @@ android {
//def mkfile = "NDK_APPLICATION_MK=x86_64Application.mk"
//def aarname = "x86_64-fmmr"

//def mkfile = "NDK_APPLICATION_MK=ARM_64Application.mk"
//def aarname = "arm_64-fmmr"
def mkfile = "NDK_APPLICATION_MK=ARM_64Application.mk"
def aarname = "arm_64-fmmr"

defaultConfig {
minSdkVersion 12
Expand All @@ -49,8 +49,8 @@ android {

task buildFFmpeg(type: Exec, description: 'Compile FFmpeg source via NDK') {
def dir = file('src/main/ffmpeg/build-ffmpeg.sh').absolutePath
commandLine "$dir"
//'--with-openssl'
commandLine "$dir",
'--with-openssl'
}

task buildNative(type: Exec, description: 'Compile JNI source via NDK') {
Expand Down
6 changes: 6 additions & 0 deletions gradle/fmmr-library/library/src/main/ffmpeg/build_openssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ then
exit 0
else
./config shared no-ssl2 no-ssl3 no-comp no-hw no-engine --openssldir=$INSTALL_DIR --prefix=$INSTALL_DIR

# Remove the version from the soname generated by the makefile
echo "Modify openssl makefile to remove version from soname"
sed -i.bak 's/^SHLIB_EXT=\.so\..*/SHLIB_EXT=\.so/' Makefile
sed -i.bak 's/LIBVERSION=[^ ]* /LIBVERSION= /g' Makefile
sed -i.bak 's/install: all install_docs install_sw/install: install_docs install_sw/g' Makefile
fi

make depend
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ echo "========================================"
# Remove the version from the soname generated by the makefile
echo "Modify openssl makefile to remove version from soname"
pushd $openssl_directory > /dev/null
sed -i.bak 's/^SHLIB_EXT=\.so\..*/SHLIB_EXT=\.so/' Makefile
sed -i.bak 's/LIBVERSION=[^ ]* /LIBVERSION= /g' Makefile
sed -i.bak 's/install: all install_docs install_sw/install: install_docs install_sw/g' Makefile
popd > /dev/null

echo "Building openssl"
pushd $openssl_directory > /dev/null
Expand Down

0 comments on commit 5e3dc71

Please sign in to comment.