wpilibsuite / native-utils

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

Add ability to resolve transitive dependencies for native libraries #204

Open pjreiniger opened 2 months ago

pjreiniger commented 2 months ago

This provides the ability to hook up direct dependencies to known libraries, and then resolve them to a transitive list. This means that downstream users can say

nativeUtils.useRequiredLibrary(it, 'ntcore_shared'), and it will automatically pull in wpiutil_shared and wpinet_shared. This make it easer to update things when new libraries are added, or if libraries are broken up into smaller chunks and brought together with a meta-library, as suggested here.

I'm not a gradle whiz, so I'm throwing this up as a draft to start a discussion