mirror of
https://github.com/android/ndk-samples
synced 2025-11-09 09:36:11 +08:00
fixed static linkage declaration
and bumped gradle android plugin version to 0.6.0-alpha3
This commit is contained in:
10
hello-thirdparty/app/build.gradle
vendored
10
hello-thirdparty/app/build.gradle
vendored
@@ -8,12 +8,8 @@ model {
|
||||
libs(PrebuiltLibraries) {
|
||||
gpg {
|
||||
headers.srcDir "${gpg_sdk_path}/include"
|
||||
binaries.withType(SharedLibraryBinary) {
|
||||
//
|
||||
// NOTE: this block should be "StaticLibraryBinary"/staticLibraryFile - but SharedLibraryBinary works and StaticLibraryBinary doesn't as of 0.6.0-alpha2
|
||||
// bug reported here: https://code.google.com/p/android/issues/detail?id=196065
|
||||
//
|
||||
sharedLibraryFile = file("${gpg_sdk_path}/lib/c++/${targetPlatform.getName()}/libgpg.a")
|
||||
binaries.withType(StaticLibraryBinary) {
|
||||
staticLibraryFile = file("${gpg_sdk_path}/lib/c++/${targetPlatform.getName()}/libgpg.a")
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -45,7 +41,7 @@ model {
|
||||
main {
|
||||
jni {
|
||||
dependencies {
|
||||
library "gpg"
|
||||
library "gpg" linkage "static"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
2
hello-thirdparty/build.gradle
vendored
2
hello-thirdparty/build.gradle
vendored
@@ -4,7 +4,7 @@ buildscript {
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle-experimental:0.6.0-alpha2'
|
||||
classpath 'com.android.tools.build:gradle-experimental:0.6.0-alpha3'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user