mirror of
https://github.com/rehlds/reapi.git
synced 2025-03-27 04:39:11 +03:00
Remove leading lib prefix
This commit is contained in:
parent
79c1d95794
commit
a046d2fec9
@ -27,7 +27,7 @@ task publishPrepareFiles << {
|
|||||||
|
|
||||||
_copyFileToDir('publish/reapi_amxx.dll', 'publish/publishRoot/reapi/addons/amxmodx/modules/')
|
_copyFileToDir('publish/reapi_amxx.dll', 'publish/publishRoot/reapi/addons/amxmodx/modules/')
|
||||||
//_copyFileToDir('publish/reapi_amxx.pdb', 'publish/publishRoot/reapi/addons/amxmodx/modules/')
|
//_copyFileToDir('publish/reapi_amxx.pdb', 'publish/publishRoot/reapi/addons/amxmodx/modules/')
|
||||||
_copyFile('publish/libreapi_amxx_i386.so', 'publish/publishRoot/reapi/addons/amxmodx/modules/reapi_amxx_i386.so')
|
_copyFile('publish/reapi_amxx_i386.so', 'publish/publishRoot/reapi/addons/amxmodx/modules/reapi_amxx_i386.so')
|
||||||
|
|
||||||
copy {
|
copy {
|
||||||
from 'reapi/extra'
|
from 'reapi/extra'
|
||||||
|
@ -148,10 +148,24 @@ afterEvaluate {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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'
|
||||||
}
|
}
|
||||||
|
finalizedBy buildFinalize
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.clean.doLast {
|
tasks.clean.doLast {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user