ghidra/GPL/DMG/build.gradle

60 lines
1.4 KiB
Groovy
Raw Normal View History

2021-03-17 22:22:43 +00:00
/* ###
* IP: Public Domain
*/
apply from: file("../gpl.gradle").getCanonicalPath()
2019-06-13 18:06:13 +00:00
if (findProject(':Generic') != null) {
apply from: "$rootProject.projectDir/gradle/javaProject.gradle"
apply from: "$rootProject.projectDir/gradle/distributableGPLModule.gradle"
rootProject.assembleDistribution {
doLast {
// eliminate standard module lib directory
def assemblePath = destinationDir.path + "/" + getZipPath(this.project)
delete assemblePath + "/lib"
}
}
}
else {
apply plugin: 'java'
}
2019-03-26 17:45:32 +00:00
apply plugin: 'eclipse'
2019-03-26 17:45:32 +00:00
eclipse.project.name = 'GPL DMG'
/*********************************************************************************
*
* Define a new source set for dmg source because it is not part of Ghidra, it is
* a standalone application that is executed and called from Ghidra.
*
* see DmgServerProcessManager
*
*********************************************************************************/
sourceSets {
2019-03-26 17:45:32 +00:00
dmg {
java {
srcDir 'src/dmg/java'
}
}
}
eclipse.classpath.plusConfigurations += [configurations.dmgCompile]
dependencies {
dmgCompile ':csframework@jar'
dmgCompile ':hfsx@jar'
dmgCompile ':hfsx_dmglib@jar'
}
/***************************************************************************************
*
* Task to create the DMG.jar file
2019-03-26 17:45:32 +00:00
*
***************************************************************************************/
jar {
2019-06-13 18:06:13 +00:00
destinationDir = file("build/data/lib")
from sourceSets.dmg.output
2019-03-26 17:45:32 +00:00
}