From d8248ffd5fb77efde7b47057d53855bb6ebd8f9d Mon Sep 17 00:00:00 2001 From: Gold856 <117957790+Gold856@users.noreply.github.com> Date: Tue, 12 Nov 2024 18:03:27 -0500 Subject: [PATCH] Link JNI libs to native tests to get the libs in the right place --- photon-lib/build.gradle | 1 + photon-targeting/build.gradle | 2 ++ 2 files changed, 3 insertions(+) diff --git a/photon-lib/build.gradle b/photon-lib/build.gradle index 3e3fc666fe..5e79ba4cc3 100644 --- a/photon-lib/build.gradle +++ b/photon-lib/build.gradle @@ -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' } } diff --git a/photon-targeting/build.gradle b/photon-targeting/build.gradle index 6b35a95987..bcf2ad6933 100644 --- a/photon-targeting/build.gradle +++ b/photon-targeting/build.gradle @@ -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 }