Skip to content

Commit

Permalink
Merge pull request android#138 from ph0b/master
Browse files Browse the repository at this point in the history
fix static linkage declaration in hello-thirdparty
  • Loading branch information
proppy committed Dec 18, 2015
2 parents cd6eea7 + 46df8e4 commit 8d0da54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions hello-thirdparty/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
}
Expand Down Expand Up @@ -45,7 +41,7 @@ model {
main {
jni {
dependencies {
library "gpg"
library "gpg" linkage "static"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion hello-thirdparty/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}

Expand Down

0 comments on commit 8d0da54

Please sign in to comment.