mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-21 19:42:14 +00:00
minor tweaks; replaced ant move with gradle copy
This commit is contained in:
parent
ca24cd52e5
commit
bb1e06575d
@ -22,14 +22,16 @@ project.ext.cabextract = "cabextract-1.6"
|
|||||||
def currentPlatform = getCurrentPlatformName()
|
def currentPlatform = getCurrentPlatformName()
|
||||||
if (['linux64', 'osx64'].contains(currentPlatform)) {
|
if (['linux64', 'osx64'].contains(currentPlatform)) {
|
||||||
|
|
||||||
def makeName = "${currentPlatform}CabExtractMake" // native Make task found automatically
|
def makeName = "${currentPlatform}CabExtractMake"
|
||||||
|
|
||||||
task (makeName, type: Exec) {
|
task (makeName, type: Exec) {
|
||||||
group "private"
|
group "private"
|
||||||
workingDir "build/unpack/${cabextract}"
|
workingDir "build/unpack/${cabextract}"
|
||||||
executable "make"
|
executable "make"
|
||||||
inputs.file("data/${cabextract}.tar.gz")
|
|
||||||
|
// Specify output so cabextract is only built if this is missing
|
||||||
outputs.file("build/os/${currentPlatform}/cabextract")
|
outputs.file("build/os/${currentPlatform}/cabextract")
|
||||||
|
|
||||||
// Extract archive and ./configure
|
// Extract archive and ./configure
|
||||||
doFirst {
|
doFirst {
|
||||||
copy {
|
copy {
|
||||||
@ -45,10 +47,13 @@ if (['linux64', 'osx64'].contains(currentPlatform)) {
|
|||||||
executable "./configure"
|
executable "./configure"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Move out the built cabextract and delete the extracted files
|
// Move out the built cabextract and delete the extracted files
|
||||||
doLast {
|
doLast {
|
||||||
ant.move file: "build/unpack/${cabextract}/cabextract",
|
copy {
|
||||||
todir: "build/os/${currentPlatform}"
|
from "build/unpack/${cabextract}/cabextract"
|
||||||
|
into "build/os/${currentPlatform}"
|
||||||
|
}
|
||||||
delete file("build/unpack/${cabextract}")
|
delete file("build/unpack/${cabextract}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user