Skip to content

Commit

Permalink
Fix gpg static lib usage in all samples
Browse files Browse the repository at this point in the history
  • Loading branch information
ggfan committed Dec 17, 2015
1 parent 155b787 commit 7c19ff5
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 24 deletions.
7 changes: 3 additions & 4 deletions samples-android/ButtonClicker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ model {
libs(PrebuiltLibraries) {
gpg {
headers.srcDir "${gpg_cpp_path}/include"
// StaticLibraryBinary does not work, use SharedLibraryBinary for now
binaries.withType(SharedLibraryBinary) {
sharedLibraryFile = file("${gpg_cpp_path}/lib/${stlportType}/${targetPlatform.getName()}/libgpg.a")
binaries.withType(StaticLibraryBinary) {
staticLibraryFile = file("${gpg_cpp_path}/lib/${stlportType}/${targetPlatform.getName()}/libgpg.a")
}
}
}
Expand All @@ -38,7 +37,7 @@ model {
main {
jni {
dependencies {
library "gpg"
library "gpg" linkage "static"
project ":cpufeatures" linkage "static"
project ":native_app_glue" linkage "static"
}
Expand Down
7 changes: 3 additions & 4 deletions samples-android/CollectAllTheStarsNative/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ model {
libs(PrebuiltLibraries) {
gpg {
headers.srcDir "${gpg_cpp_path}/include"
// StaticLibraryBinary does not work, use SharedLibraryBinary for now
binaries.withType(SharedLibraryBinary) {
sharedLibraryFile = file("${gpg_cpp_path}/lib/${stlportType}/${targetPlatform.getName()}/libgpg.a")
binaries.withType(StaticLibraryBinary) {
staticLibraryFile = file("${gpg_cpp_path}/lib/${stlportType}/${targetPlatform.getName()}/libgpg.a")
}
}
}
Expand All @@ -39,7 +38,7 @@ model {
main {
jni {
dependencies {
library "gpg"
library "gpg" linkage "static"
project ":cpufeatures" linkage "static"
project ":native_app_glue" linkage "static"
}
Expand Down
7 changes: 3 additions & 4 deletions samples-android/Minimalist/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ model {
libs(PrebuiltLibraries) {
gpg {
headers.srcDir "${gpg_cpp_path}/include"
// StaticLibraryBinary does not work, use SharedLibraryBinary for now
binaries.withType(SharedLibraryBinary) {
sharedLibraryFile = file("${gpg_cpp_path}/lib/${stlportType}/${targetPlatform.getName()}/libgpg.a")
binaries.withType(StaticLibraryBinary) {
staticLibraryFile = file("${gpg_cpp_path}/lib/${stlportType}/${targetPlatform.getName()}/libgpg.a")
}
}
}
Expand All @@ -40,7 +39,7 @@ model {
main {
jni {
dependencies {
library "gpg"
library "gpg" linkage "static"
project ":native_app_glue" linkage "static"
}
source {
Expand Down
7 changes: 3 additions & 4 deletions samples-android/TbmpSkeletonNative/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ model {
libs(PrebuiltLibraries) {
gpg {
headers.srcDir "${gpg_cpp_path}/include"
// StaticLibraryBinary does not work, use SharedLibraryBinary for now
binaries.withType(SharedLibraryBinary) {
sharedLibraryFile = file("${gpg_cpp_path}/lib/${stlportType}/${targetPlatform.getName()}/libgpg.a")
binaries.withType(StaticLibraryBinary) {
staticLibraryFile = file("${gpg_cpp_path}/lib/${stlportType}/${targetPlatform.getName()}/libgpg.a")
}
}
}
Expand All @@ -42,7 +41,7 @@ model {
main {
jni {
dependencies {
library "gpg"
library "gpg" linkage "static"
project ":cpufeatures" linkage "static"
project ":native_app_glue" linkage "static"
}
Expand Down
7 changes: 3 additions & 4 deletions samples-android/Teapot/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ model {
libs(PrebuiltLibraries) {
gpg {
headers.srcDir "${gpg_cpp_path}/include"
// StaticLibraryBinary does not work, use SharedLibraryBinary for now
binaries.withType(SharedLibraryBinary) {
sharedLibraryFile = file("${gpg_cpp_path}/lib/${stlportType}/${targetPlatform.getName()}/libgpg.a")
binaries.withType(StaticLibraryBinary) {
staticLibraryFile = file("${gpg_cpp_path}/lib/${stlportType}/${targetPlatform.getName()}/libgpg.a")
}
}
}
Expand All @@ -38,7 +37,7 @@ model {
main {
jni {
dependencies {
library "gpg"
library "gpg" linkage "static"
project ":cpufeatures" linkage "static"
project ":native_app_glue" linkage "static"
}
Expand Down
7 changes: 3 additions & 4 deletions samples-android/TrivialQuestNative/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ model {
libs(PrebuiltLibraries) {
gpg {
headers.srcDir "${gpg_cpp_path}/include"
// StaticLibraryBinary does not work, use SharedLibraryBinary for now
binaries.withType(SharedLibraryBinary) {
sharedLibraryFile = file("${gpg_cpp_path}/lib/${stlportType}/${targetPlatform.getName()}/libgpg.a")
binaries.withType(StaticLibraryBinary) {
staticLibraryFile = file("${gpg_cpp_path}/lib/${stlportType}/${targetPlatform.getName()}/libgpg.a")
}
}
}
Expand All @@ -39,7 +38,7 @@ model {
main {
jni {
dependencies {
library "gpg"
library "gpg" linkage "static"
project ":cpufeatures" linkage "static"
project ":native_app_glue" linkage "static"
}
Expand Down

0 comments on commit 7c19ff5

Please sign in to comment.