51 lines
1.4 KiB
Groovy
51 lines
1.4 KiB
Groovy
apply plugin: 'com.android.library'
|
|
|
|
android {
|
|
compileSdkVersion 25
|
|
buildToolsVersion '25.0.2'
|
|
|
|
defaultConfig {
|
|
// applicationId 'xyz.nc.android.wc'
|
|
minSdkVersion 19
|
|
targetSdkVersion 25
|
|
versionCode 1
|
|
versionName '1.0'
|
|
|
|
externalNativeBuild {
|
|
cmake {
|
|
arguments '-DANDROID_PLATFORM=android-19',
|
|
'-DANDROID_TOOLCHAIN=clang'
|
|
// Sets optional flags for the C compiler.
|
|
cFlags \
|
|
'-D_POSIX_THREADS', '-DNDEBUG',
|
|
'-DPERSIST_SESSION_CACHE', '-DPERSIST_CERT_CACHE', '-DATOMIC_USER',
|
|
'-DHAVE_PK_CALLBACKS', '-DNO_DSA',
|
|
'-DNO_MD4', '-DNO_HC128', '-DNO_RABBIT',
|
|
'-DHAVE_OCSP', '-DHAVE_CRL', '-DWOLFSSL_JNI', '-DHAVE_DH',
|
|
'-Wall'
|
|
// explicitly build libs
|
|
//targets 'wolfssl'
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
|
|
// buildTypes {
|
|
// release {
|
|
// minifyEnabled false
|
|
// proguardFiles getDefaultProguardFile('proguard-android.txt'),
|
|
// 'proguard-rules.pro'
|
|
// }
|
|
// }
|
|
externalNativeBuild {
|
|
cmake {
|
|
path 'CMakeLists.txt'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
//compile fileTree(dir: 'libs', include: ['*.jar'])
|
|
}
|