43 lines
1.6 KiB
Groovy
43 lines
1.6 KiB
Groovy
|
|
|
|
/******************************************************************************************
|
|
* PrepDev - task to prepare a development environment for Ghidra. It needs to be run
|
|
* whenever the Ghidra git repos are first cloned or after a 'clean'. It also
|
|
* needs to be run after a change to the sleigh ANTLR grammar files.
|
|
*******************************************************************************************/
|
|
|
|
task prepDev {
|
|
group rootProject.GHIDRA_GROUP
|
|
description " Prepares a fresh clone of Ghidra for developing in eclipse. [gradle/root/prepDev.gradle]\n"
|
|
|
|
// the GhidraLauncher depends on this file to build the classpath in dev mode
|
|
dependsOn { generateLibraryDependencyMapping }
|
|
|
|
// generate list of all library files used to build and run ghidra. (not strictly necessary here, but nice to have)
|
|
dependsOn { generateAllExternalLibsFile }
|
|
|
|
}
|
|
|
|
/******************************************************************************************
|
|
* TASK generateAllExternalLibsFile
|
|
*
|
|
* Summary: Creates a file that lists all libraries used to build and run Ghidra
|
|
******************************************************************************************/
|
|
task generateAllExternalLibsFile {
|
|
doFirst{
|
|
generateAllExternalLibsFile()
|
|
}
|
|
}
|
|
|
|
/******************************************************************************************
|
|
* TASK generateLibraryDependencyMapping
|
|
*
|
|
* Summary: Creates a file that lists the libraries used by each module.
|
|
******************************************************************************************/
|
|
task generateLibraryDependencyMapping {
|
|
doFirst{
|
|
generateLibraryDependencyMapping()
|
|
}
|
|
}
|
|
|