Skip to content

Commit

Permalink
Link JNI libs to native tests to get the libs in the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold856 committed Nov 12, 2024
1 parent 5c7ee37 commit 86882ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions photon-lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ model {
}
if(project.hasProperty('includePhotonTargeting')) {
lib project: ':photon-targeting', library: 'photontargeting', linkage: 'shared'
lib project: ':photon-targeting', library: 'photontargetingJNI', linkage: 'shared'
}
}

Expand Down
2 changes: 2 additions & 0 deletions photon-targeting/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ model {
}

binaries.all {
lib library: nativeName, linkage: 'shared'
lib library: "${nativeName}JNI", linkage: 'shared'
it.tasks.withType(CppCompile) {
it.dependsOn generateProto
}
Expand Down

0 comments on commit 86882ad

Please sign in to comment.