Skip to content

Commit

Permalink
oipe
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Oct 29, 2024
1 parent 948942a commit 32d48cf
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions photon-targeting/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,17 @@ model {

all {
binaries.withType(SharedLibraryBinarySpec) { binary ->
println "Checking binary $binary"
// check that we're building for the platform (per PArchOverride/wpilib plat detection)
if (binary.targetPlatform.name == jniPlatform) {
def platName = jniPlatform

if (jniPlatform.equals("osxarm64") || jniPlatform.equals("osxx86-64")) {
// native-utils calls this osxuniversal
platName = "osxuniversal";
}

println "Checking binary $binary (we're on platform $platName)"

if (binary.targetPlatform.name == platName) {


// only include release binaries (hard coded for now)
Expand Down

0 comments on commit 32d48cf

Please sign in to comment.