55 lines
2.0 KiB
Groovy
55 lines
2.0 KiB
Groovy
apply from: "$rootProject.projectDir/gradle/javaProject.gradle"
|
|
apply from: "$rootProject.projectDir/gradle/javaTestProject.gradle"
|
|
apply plugin: 'eclipse'
|
|
eclipse.project.name = '_Integration Test'
|
|
|
|
|
|
/*********************************************************************************
|
|
* Build dependencies
|
|
*********************************************************************************/
|
|
|
|
// There are tests in this module that require resources in Base:test. This
|
|
// is a on-off type of situation so just add to the resources source set here.
|
|
sourceSets {
|
|
integrationTest {
|
|
resources {
|
|
srcDirs += [project(':Base').sourceSets.test.resources]
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// integrationtest module may depend on other projects in this repo; add them
|
|
// here
|
|
def ghidraPath = projectDir.getParentFile().getParentFile().path.replace(File.separator, "/") + "/";
|
|
|
|
rootProject.subprojects { p ->
|
|
p.plugins.withType(JavaPlugin) {
|
|
def projectPath = p.projectDir.path.replace(File.separator, "/")
|
|
if (projectPath.startsWith(ghidraPath) && (
|
|
projectPath.contains("/Framework/") ||
|
|
projectPath.contains("/Features/") ||
|
|
projectPath.contains("/Processors/"))) {
|
|
|
|
compile p
|
|
}
|
|
}
|
|
}
|
|
|
|
// some tests use classes in Base/src/test and test.slow
|
|
testCompile project(path: ':Base', configuration: 'testArtifacts')
|
|
testCompile project(path: ':Base', configuration: 'integrationTestArtifacts')
|
|
testCompile project(path: ':FunctionGraph', configuration: 'testArtifacts')
|
|
}
|
|
|
|
// For Java 9, we must explicitly export references to the internal classes we are using.
|
|
// We export them to all "unnamed" modules, which are modules that don't define themselves
|
|
// as a new Java 9 style module. Ghidra is currently using unnamed modules everywhere.
|
|
ext.addExports([
|
|
'java.base/sun.security.x509=ALL-UNNAMED',
|
|
'java.base/sun.security.util=ALL-UNNAMED',
|
|
'java.desktop/sun.awt=ALL-UNNAMED',
|
|
'java.desktop/sun.swing=ALL-UNNAMED',
|
|
'java.desktop/sun.java2d=ALL-UNNAMED'
|
|
])
|