2021-03-17 22:22:43 +00:00
|
|
|
/* ###
|
|
|
|
* IP: Public Domain
|
|
|
|
*/
|
2019-06-19 20:17:48 +00:00
|
|
|
|
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 {
|
2021-04-12 15:07:06 +00:00
|
|
|
apply plugin: 'java-library'
|
2019-06-13 18:06:13 +00:00
|
|
|
}
|
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'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-12 14:44:24 +00:00
|
|
|
repositories {
|
|
|
|
flatDir name: "flat", dirs:["data/lib"]
|
|
|
|
}
|
|
|
|
|
2019-03-26 17:45:32 +00:00
|
|
|
dependencies {
|
2021-04-12 15:07:06 +00:00
|
|
|
dmgImplementation ':csframework@jar'
|
|
|
|
dmgImplementation ':hfsx@jar'
|
|
|
|
dmgImplementation ':hfsx_dmglib@jar'
|
2019-03-26 17:45:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/***************************************************************************************
|
|
|
|
*
|
2019-12-04 17:00:53 +00:00
|
|
|
* Task to create the DMG.jar file
|
2019-03-26 17:45:32 +00:00
|
|
|
*
|
|
|
|
***************************************************************************************/
|
|
|
|
|
|
|
|
jar {
|
2021-04-12 15:07:06 +00:00
|
|
|
destinationDirectory = file("build/data/lib")
|
2019-12-04 17:00:53 +00:00
|
|
|
from sourceSets.dmg.output
|
2019-03-26 17:45:32 +00:00
|
|
|
}
|