mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 23:25:41 +03:00
Remove leading lib prefix
This commit is contained in:
parent
c288c32082
commit
b68b545e77
@ -299,6 +299,19 @@ model {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task buildFinalize << {
|
||||||
|
if (GradleCppUtils.windows) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
binaries.withType(SharedLibraryBinarySpec) {
|
||||||
|
def sharedBinary = it.getSharedLibraryFile();
|
||||||
|
if (sharedBinary.exists()) {
|
||||||
|
sharedBinary.renameTo(new File(sharedBinary.getParent() + "/" + sharedBinary.getName().replaceFirst("^lib", "")));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
task buildRelease {
|
task buildRelease {
|
||||||
dependsOn binaries.withType(SharedLibraryBinarySpec).matching { SharedLibraryBinarySpec blib ->
|
dependsOn binaries.withType(SharedLibraryBinarySpec).matching { SharedLibraryBinarySpec blib ->
|
||||||
blib.buildable && blib.buildType.name == 'release'
|
blib.buildable && blib.buildType.name == 'release'
|
||||||
@ -311,6 +324,9 @@ task buildFixes {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buildFixes.finalizedBy(buildFinalize);
|
||||||
|
buildRelease.finalizedBy(buildFinalize);
|
||||||
|
|
||||||
gradle.taskGraph.whenReady { graph ->
|
gradle.taskGraph.whenReady { graph ->
|
||||||
if (!graph.hasTask(buildFixes)) {
|
if (!graph.hasTask(buildFixes)) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user