Skip to content

Commit 7c19ff5

Browse files
committed
Fix gpg static lib usage in all samples
1 parent 155b787 commit 7c19ff5

File tree

6 files changed

+18
-24
lines changed

6 files changed

+18
-24
lines changed

samples-android/ButtonClicker/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ model {
1717
libs(PrebuiltLibraries) {
1818
gpg {
1919
headers.srcDir "${gpg_cpp_path}/include"
20-
// StaticLibraryBinary does not work, use SharedLibraryBinary for now
21-
binaries.withType(SharedLibraryBinary) {
22-
sharedLibraryFile = file("${gpg_cpp_path}/lib/${stlportType}/${targetPlatform.getName()}/libgpg.a")
20+
binaries.withType(StaticLibraryBinary) {
21+
staticLibraryFile = file("${gpg_cpp_path}/lib/${stlportType}/${targetPlatform.getName()}/libgpg.a")
2322
}
2423
}
2524
}
@@ -38,7 +37,7 @@ model {
3837
main {
3938
jni {
4039
dependencies {
41-
library "gpg"
40+
library "gpg" linkage "static"
4241
project ":cpufeatures" linkage "static"
4342
project ":native_app_glue" linkage "static"
4443
}

samples-android/CollectAllTheStarsNative/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ model {
1616
libs(PrebuiltLibraries) {
1717
gpg {
1818
headers.srcDir "${gpg_cpp_path}/include"
19-
// StaticLibraryBinary does not work, use SharedLibraryBinary for now
20-
binaries.withType(SharedLibraryBinary) {
21-
sharedLibraryFile = file("${gpg_cpp_path}/lib/${stlportType}/${targetPlatform.getName()}/libgpg.a")
19+
binaries.withType(StaticLibraryBinary) {
20+
staticLibraryFile = file("${gpg_cpp_path}/lib/${stlportType}/${targetPlatform.getName()}/libgpg.a")
2221
}
2322
}
2423
}
@@ -39,7 +38,7 @@ model {
3938
main {
4039
jni {
4140
dependencies {
42-
library "gpg"
41+
library "gpg" linkage "static"
4342
project ":cpufeatures" linkage "static"
4443
project ":native_app_glue" linkage "static"
4544
}

samples-android/Minimalist/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ model {
1616
libs(PrebuiltLibraries) {
1717
gpg {
1818
headers.srcDir "${gpg_cpp_path}/include"
19-
// StaticLibraryBinary does not work, use SharedLibraryBinary for now
20-
binaries.withType(SharedLibraryBinary) {
21-
sharedLibraryFile = file("${gpg_cpp_path}/lib/${stlportType}/${targetPlatform.getName()}/libgpg.a")
19+
binaries.withType(StaticLibraryBinary) {
20+
staticLibraryFile = file("${gpg_cpp_path}/lib/${stlportType}/${targetPlatform.getName()}/libgpg.a")
2221
}
2322
}
2423
}
@@ -40,7 +39,7 @@ model {
4039
main {
4140
jni {
4241
dependencies {
43-
library "gpg"
42+
library "gpg" linkage "static"
4443
project ":native_app_glue" linkage "static"
4544
}
4645
source {

samples-android/TbmpSkeletonNative/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ model {
1616
libs(PrebuiltLibraries) {
1717
gpg {
1818
headers.srcDir "${gpg_cpp_path}/include"
19-
// StaticLibraryBinary does not work, use SharedLibraryBinary for now
20-
binaries.withType(SharedLibraryBinary) {
21-
sharedLibraryFile = file("${gpg_cpp_path}/lib/${stlportType}/${targetPlatform.getName()}/libgpg.a")
19+
binaries.withType(StaticLibraryBinary) {
20+
staticLibraryFile = file("${gpg_cpp_path}/lib/${stlportType}/${targetPlatform.getName()}/libgpg.a")
2221
}
2322
}
2423
}
@@ -42,7 +41,7 @@ model {
4241
main {
4342
jni {
4443
dependencies {
45-
library "gpg"
44+
library "gpg" linkage "static"
4645
project ":cpufeatures" linkage "static"
4746
project ":native_app_glue" linkage "static"
4847
}

samples-android/Teapot/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ model {
1616
libs(PrebuiltLibraries) {
1717
gpg {
1818
headers.srcDir "${gpg_cpp_path}/include"
19-
// StaticLibraryBinary does not work, use SharedLibraryBinary for now
20-
binaries.withType(SharedLibraryBinary) {
21-
sharedLibraryFile = file("${gpg_cpp_path}/lib/${stlportType}/${targetPlatform.getName()}/libgpg.a")
19+
binaries.withType(StaticLibraryBinary) {
20+
staticLibraryFile = file("${gpg_cpp_path}/lib/${stlportType}/${targetPlatform.getName()}/libgpg.a")
2221
}
2322
}
2423
}
@@ -38,7 +37,7 @@ model {
3837
main {
3938
jni {
4039
dependencies {
41-
library "gpg"
40+
library "gpg" linkage "static"
4241
project ":cpufeatures" linkage "static"
4342
project ":native_app_glue" linkage "static"
4443
}

samples-android/TrivialQuestNative/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ model {
1616
libs(PrebuiltLibraries) {
1717
gpg {
1818
headers.srcDir "${gpg_cpp_path}/include"
19-
// StaticLibraryBinary does not work, use SharedLibraryBinary for now
20-
binaries.withType(SharedLibraryBinary) {
21-
sharedLibraryFile = file("${gpg_cpp_path}/lib/${stlportType}/${targetPlatform.getName()}/libgpg.a")
19+
binaries.withType(StaticLibraryBinary) {
20+
staticLibraryFile = file("${gpg_cpp_path}/lib/${stlportType}/${targetPlatform.getName()}/libgpg.a")
2221
}
2322
}
2423
}
@@ -39,7 +38,7 @@ model {
3938
main {
4039
jni {
4140
dependencies {
42-
library "gpg"
41+
library "gpg" linkage "static"
4342
project ":cpufeatures" linkage "static"
4443
project ":native_app_glue" linkage "static"
4544
}

0 commit comments

Comments
 (0)