mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-29 23:35:51 +08:00
changed build system to generate all external jar files used file.
This commit is contained in:
@@ -173,7 +173,7 @@ plugins.withType(JavaPlugin) {
|
||||
|
||||
// External Libraries
|
||||
gradle.taskGraph.whenReady { taskGraph ->
|
||||
List<String> externalPaths = getExternalDependencies(p)
|
||||
List<String> externalPaths = getExternalRuntimeDependencies(p)
|
||||
externalPaths.each { path ->
|
||||
from (path) {
|
||||
into {zipPath + "/lib" }
|
||||
|
||||
@@ -12,8 +12,22 @@ task prepDev {
|
||||
|
||||
// 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
|
||||
@@ -24,4 +38,5 @@ task generateLibraryDependencyMapping {
|
||||
doFirst{
|
||||
generateLibraryDependencyMapping()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ task zipExtensions (type: Zip) {
|
||||
/////////////////
|
||||
gradle.taskGraph.whenReady { taskGraph ->
|
||||
if (project.plugins.withType(JavaPlugin)) {
|
||||
List<String> externalPaths = getExternalDependencies(p)
|
||||
List<String> externalPaths = getExternalRuntimeDependencies(p)
|
||||
externalPaths.each { path ->
|
||||
from (path) {
|
||||
into { getBaseProjectName(p) + "/lib" }
|
||||
|
||||
@@ -82,7 +82,7 @@ def Map<String, String> getModuleManifestIp(Project project) {
|
||||
*********************************************************************************/
|
||||
def checkExternalLibsInMap(Map<String, String> map, Project project) {
|
||||
if (project.plugins.withType(JavaPlugin)) {
|
||||
List<String> libs = getExternalDependencies(project)
|
||||
List<String> libs = getExternalRuntimeDependencies(project)
|
||||
libs.each { lib ->
|
||||
String libName = new File(lib).getName() // get just the filename without the path
|
||||
String relativePath = "lib/"+libName;
|
||||
|
||||
Reference in New Issue
Block a user