Skip to content

Commit 0ef26da

Browse files
authored
Use WPILib native library packaging format (#25)
1 parent 38e4fef commit 0ef26da

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,14 @@ java {
5050
test {
5151
useJUnitPlatform()
5252
}
53-
54-
ext.nativeName = wpilibTools.platformMapper.currentPlatform.platformName;
53+
ext.nativeName = wpilibTools.platformMapper.currentPlatform.platformName.replace('win', 'windows/').replace('mac', 'osx/').replace('linux', 'linux/').replace('x64', 'x86-64');
5554
ext.outputsFolder = file("$buildDir/outputs")
5655

5756
println("Building for $nativeName")
5857

5958
tasks.register('copyNativeLibrary', Sync) {
6059
from "${projectDir}/cmake_build/"
61-
into "${outputsFolder}/nativelibraries/${nativeName}/"
60+
into "${outputsFolder}/${nativeName}/shared"
6261
include "**/*.so"
6362

6463
// And flatten, since windows is stupid

0 commit comments

Comments
 (0)