Skip to content

Commit

Permalink
fix issue with platform binaries not building
Browse files Browse the repository at this point in the history
  • Loading branch information
srimanachanta committed Nov 19, 2023
1 parent 08b7938 commit 7a4cdfc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion photon-lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ dependencies {
nativeUtils {
exportsConfigs {
// Main library is just default empty. This will export everything
Photon {}
photonlib {}
}
}

Expand Down
8 changes: 4 additions & 4 deletions shared/setupBuild.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ apply from: "${rootDir}/shared/javacommon.gradle"

model {
components {
"${nativeName}Base"(NativeLibrarySpec) {
"${nativeName}"(NativeLibrarySpec) {
sources {
cpp {
source {
Expand All @@ -23,7 +23,7 @@ model {

binaries.all {
if(project.hasProperty('includePhotonTargeting')) {
lib project: ':photon-targeting', library: 'photontargetingBase', linkage: 'shared'
lib project: ':photon-targeting', library: 'photontargeting', linkage: 'shared'
}
}

Expand All @@ -35,7 +35,7 @@ model {
testSuites {
"${nativeName}Test"(GoogleTestTestSuiteSpec) {
for(NativeComponentSpec c : $.components) {
if ("${nativeName}Base" == c.name) {
if ("${nativeName}" == c.name) {
testing c
break
}
Expand All @@ -54,7 +54,7 @@ model {

binaries.all {
if(project.hasProperty('includePhotonTargeting')) {
lib project: ':photon-targeting', library: 'photontargetingBase', linkage: 'shared'
lib project: ':photon-targeting', library: 'photontargeting', linkage: 'shared'
}
}

Expand Down

0 comments on commit 7a4cdfc

Please sign in to comment.