Major refactoring of the gradle build system.

This commit is contained in:
ghidravore
2019-04-09 11:59:17 -04:00
parent 62a180e0ae
commit f1e50fb079
198 changed files with 2005 additions and 2252 deletions

View File

@@ -181,7 +181,7 @@ task indexHelp(type: JavaExec) {
}
group "private"
description "indexes the helps files for this module. [gradleScripts/buildHelp.gradle]"
description "indexes the helps files for this module. [gradle/helpProject.gradle]"
}
// task for building Ghidra help files - depends on the output from the help indexer
@@ -209,7 +209,7 @@ task buildHelp(type: JavaExec, dependsOn: indexHelp) {
}
args "${helpRootDir.absolutePath}" // tell the help builder what help dir to process
}
description " Builds the help for this module. [gradleScripts/buildHelp.gradle]\n"
description " Builds the help for this module. [gradle/helpProject.gradle]\n"
}
// include the help into the module's jar

View File

@@ -1,4 +1,41 @@
apply plugin: 'eclipse'
eclipse.project.name = '_Runtime Scripts'
ext.isPureEclipseProject = true
rootProject.assembleDistribution {
from (this.project.file("Common/support")) {
into "support"
}
from (this.project.file("Common/server")) {
into "server"
}
}
rootProject.OS_NAMES.each { platform ->
rootProject.tasks.findAll {it.name == "assembleDistribution_$platform"}.each { t ->
def p = this.project
if (isLinux(platform) || isMac(platform)) {
t.from ("${p.projectDir}/Linux/support") {
into "support"
}
t.from ("${p.projectDir}/Linux/server") {
into "server"
}
t.from (p.file("Linux/ghidraRun"))
}
if (isWindows(platform)) {
t.from ("${p.projectDir}/Windows/support") {
into "support"
}
t.from ("${p.projectDir}/Windows/server") {
into "server"
}
t.from (p.file("Windows/ghidraRun.bat"))
}
}
}

View File

@@ -1,7 +1,5 @@
##VERSION: 2.0
##MODULE IP: Copyright Distribution Permitted
.classpath||GHIDRA||||END|
.project||GHIDRA||||END|
Common/server/server.conf||GHIDRA||||END|
Common/server/svrREADME.html||GHIDRA||||END|
Common/support/analyzeHeadlessREADME.html||GHIDRA||||END|