Skip to content

Commit

Permalink
build.gradle: copy native libraries to the "dist" directory/folder
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jun 28, 2024
1 parent 65121e1 commit 47b1f97
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,16 @@ model {

if (buildable) {
println 'Build ' + q + ' using ' + toolChain

project.tasks.register('copyToDist' + q, Copy) {
dependsOn "joltjni${q}SharedLibrary"
from sharedLibraryFile
rename { String filename ->
return q + '_' + filename
}
into 'dist'
}
jar.dependsOn('copyToDist' + q)
}
}

Expand Down

0 comments on commit 47b1f97

Please sign in to comment.