wpilibsuite / native-utils

Gradle utility plugin for compiling native libraries
Other
4 stars 21 forks source link

Easier way to resolve an entire native dependency set #186

Open ThadHouse opened 9 months ago

ThadHouse commented 9 months ago

https://github.com/GrappleRobotics/libgrapplefrc/blob/master/build.gradle#L112

The way these are being grabbed here is kind of hacky, we should have a better way to support this.

JaciBrunning commented 9 months ago

+1, it's a bit hacky but it's the best we have right now. Prior, I was just iterating off the dependencies of each binary of a stub native library, but I took that out since it seemed messier to me. Keen to see what happens

ThadHouse commented 9 months ago

We actually do a variant of that stub native library thing in allwpilib for wpilibj. Except we use an executable, and just run the install task for that executable. That dumps all shared deps into the install folder, and then we just point JNI to load from that directory.

But for just grabbing remote dependencies, I can definitely make an easier way. I'll add you to any PR's that I do that get closer to that goal.