diff --git a/build.gradle b/build.gradle index cd1cbe1..ac0728d 100644 --- a/build.gradle +++ b/build.gradle @@ -50,15 +50,14 @@ java { test { useJUnitPlatform() } - -ext.nativeName = wpilibTools.platformMapper.currentPlatform.platformName; +ext.nativeName = wpilibTools.platformMapper.currentPlatform.platformName.replace('win', 'windows/').replace('mac', 'osx/').replace('linux', 'linux/').replace('x64', 'x86-64'); ext.outputsFolder = file("$buildDir/outputs") println("Building for $nativeName") tasks.register('copyNativeLibrary', Sync) { from "${projectDir}/cmake_build/" - into "${outputsFolder}/nativelibraries/${nativeName}/" + into "${outputsFolder}/${nativeName}/shared" include "**/*.so" // And flatten, since windows is stupid