Skip to content

Commit 83c1bf3

Browse files
authored
use wpilib strat for including native libraries (#30)
1 parent 56bbae1 commit 83c1bf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ test {
7373
}
7474
}
7575

76-
ext.nativeName = wpilibTools.platformMapper.currentPlatform.platformName;
76+
ext.nativeName = wpilibTools.platformMapper.currentPlatform.platformName.replace('win', 'windows/').replace('mac', 'osx/').replace('linux', 'linux/').replace('x64', 'x86-64');
7777
ext.outputsFolder = file("$buildDir/outputs")
7878

7979
println("Building for $nativeName")
8080

8181
tasks.register('copyNativeLibrary', Sync) {
8282
from "${projectDir}/cmake_build/lib"
83-
into "${outputsFolder}/nativelibraries/${nativeName}/"
83+
into "${outputsFolder}/${nativeName}/shared"
8484
include "**/*.so"
8585

8686
// And flatten, since windows is stupid

0 commit comments

Comments
 (0)