2019-06-19 20:17:48 +00:00
|
|
|
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-04-09 15:59:17 +00:00
|
|
|
|
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-06-19 20:17:48 +00:00
|
|
|
|
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'
|
|
|
|
}
|
|
|
|
|
|
|
|
/***************************************************************************************
|
|
|
|
*
|
2019-12-04 17:00:53 +00:00
|
|
|
* 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")
|
2019-12-04 17:00:53 +00:00
|
|
|
from sourceSets.dmg.output
|
2019-03-26 17:45:32 +00:00
|
|
|
}
|