ghidra/GPL/DMG/build.gradle

61 lines
1.4 KiB
Groovy
Raw Normal View History

2021-03-17 22:22:43 +00:00
/* ###
* IP: Public Domain
*/
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-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'
}
}
}
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
}
/***************************************************************************************
*
* 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")
from sourceSets.dmg.output
2019-03-26 17:45:32 +00:00
}