Skip to content

Commit

Permalink
[ntcoreffi] Link to NI libraries (#5589)
Browse files Browse the repository at this point in the history
This is required because wpiutil depends on these libraries and is
statically linked.
  • Loading branch information
PeterJohnson authored Aug 30, 2023
1 parent 89add5d commit 171375f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ntcoreffi/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ model {
project(':ntcore').addNtcoreDependency(binary, 'static')
lib project: ':wpinet', library: 'wpinet', linkage: 'static'
lib project: ':wpiutil', library: 'wpiutil', linkage: 'static'
if (binary.targetPlatform.name == nativeUtils.wpi.platforms.roborio) {
nativeUtils.useRequiredLibrary(binary, 'ni_link_libraries')
}
}
}
}
Expand Down

0 comments on commit 171375f

Please sign in to comment.