mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-30 16:47:43 +08:00
Major refactoring of the gradle build system.
This commit is contained in:
@@ -1,29 +1,32 @@
|
||||
apply from: "$rootProject.projectDir/gradle/javaProject.gradle"
|
||||
apply from: "$rootProject.projectDir/gradle/javaTestProject.gradle"
|
||||
apply plugin: 'eclipse'
|
||||
eclipse.project.name = '_Integration Test'
|
||||
|
||||
ext.excludeFromBuild = true
|
||||
|
||||
/*********************************************************************************
|
||||
* Build dependencies
|
||||
*********************************************************************************/
|
||||
dependencies {
|
||||
|
||||
// integration test module may depends on all other projects within this repo
|
||||
def ghidraPath = projectDir.getParentFile().getParentFile().path.replace(File.separator, "/") + "/";
|
||||
|
||||
rootProject.subprojects.each { p ->
|
||||
|
||||
def projectPath = p.projectDir.path.replace(File.separator, "/")
|
||||
|
||||
if (projectPath.startsWith(ghidraPath) && (
|
||||
projectPath.contains("/Framework/") ||
|
||||
projectPath.contains("/Features/") ||
|
||||
projectPath.contains("/Processors/"))) {
|
||||
compile p
|
||||
}
|
||||
rootProject.subprojects { p ->
|
||||
p.plugins.withType(JavaPlugin) {
|
||||
def projectPath = p.projectDir.path.replace(File.separator, "/")
|
||||
if (projectPath.contains("ghidra/Ghidra")) {
|
||||
if (projectPath.contains("/Framework/") ||
|
||||
projectPath.contains("/Features/") ||
|
||||
projectPath.contains("/Processors/")) {
|
||||
|
||||
compile p
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// some tests use classes in Base/src/test and test.slow
|
||||
testCompile project(':Base').sourceSets.test.output
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user