OpenSSL builds successfully
This commit is contained in:
@@ -134,19 +134,25 @@ task downloadOpenSSL(dependsOn: [], type: Download) {
|
||||
|
||||
task prepareOpenSSL(dependsOn: [downloadOpenSSL], type: Copy) {
|
||||
from tarTree(downloadOpenSSL.dest)
|
||||
from './third-party/OpenSSL/'
|
||||
include 'openssl-android-1.0.0/**/*', 'build.gradle', 'ApplicationManifest.xml'
|
||||
include 'openssl-android-1.0.0/**/*'
|
||||
includeEmptyDirs = false
|
||||
into "$thirdPartyNdkDir/OpenSSL/"
|
||||
}
|
||||
|
||||
task finalizeOpenSSL(dependsOn: [prepareOpenSSL], type: Copy) {
|
||||
from './third-party/OpenSSL/'
|
||||
include 'build.gradle', 'ApplicationManifest.xml'
|
||||
includeEmptyDirs = false
|
||||
into "$thirdPartyNdkDir/OpenSSL/openssl-android-1.0.0/"
|
||||
}
|
||||
|
||||
task prepareAllLibs() {
|
||||
dependsOn finalizeGlog
|
||||
dependsOn prepareDoubleConversion
|
||||
dependsOn prepareBoost
|
||||
dependsOn prepareFolly
|
||||
dependsOn finalizeEvent
|
||||
dependsOn prepareOpenSSL
|
||||
dependsOn finalizeOpenSSL
|
||||
}
|
||||
|
||||
android {
|
||||
|
||||
8
android/third-party/OpenSSL/build.gradle
vendored
8
android/third-party/OpenSSL/build.gradle
vendored
@@ -8,15 +8,14 @@ android {
|
||||
minSdkVersion rootProject.minSdkVersion
|
||||
targetSdkVersion rootProject.targetSdkVersion
|
||||
ndk {
|
||||
abiFilters 'x86', 'armeabi-v7a', 'arm64-v8a' 'x86_64'
|
||||
abiFilters 'x86', 'arm64-v8a'
|
||||
}
|
||||
|
||||
externalNativeBuild {
|
||||
ndkBuild {
|
||||
arguments "NDK_APPLICATION_MK:=$projectDir/jni/Application.mk",
|
||||
"NDK_TOOLCHAIN_VERSION:=clang",
|
||||
"NDK_PROJECT_PATH:=openssl-android-1.0.0"
|
||||
cppFlags "-fPIC"
|
||||
"NDK_TOOLCHAIN_VERSION:=clang"
|
||||
cppFlags "-std=c++11"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -34,4 +33,3 @@ android {
|
||||
}
|
||||
}
|
||||
}
|
||||
#abiFilters 'x86', 'arm64-v8a', 'x86_64'
|
||||
|
||||
Reference in New Issue
Block a user