/* ### * IP: GHIDRA * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ apply from: "$rootProject.projectDir/gradle/javaProject.gradle" apply from: "$rootProject.projectDir/gradle/jacocoProject.gradle" apply from: "$rootProject.projectDir/gradle/javaTestProject.gradle" apply from: "$rootProject.projectDir/gradle/nativeProject.gradle" apply from: "$rootProject.projectDir/gradle/distributableGhidraModule.gradle" apply plugin: 'eclipse' eclipse.project.name = 'Debug Debugger-agent-dbgeng' dependencies { compile project(":Framework-AsyncComm") compile project(":Framework-Debugging") compile project(":Debugger-gadp") compile "net.java.dev.jna:jna:5.4.0" compile "net.java.dev.jna:jna-platform:5.4.0" //testCompile project(":Base") testCompile project(path: ":Debugger-gadp", configuration: 'testArtifacts') } def boolean filterJar(File jarfile) { if (jarfile.name.contains("gradle-api")) { return false } else if (jarfile.name.contains("groovy-all")) { return false } else if (jarfile.name.contains("gradle-installation-beacon")) { return false } return true } jar { manifest { attributes['Main-Class'] = 'agent.dbgeng.gadp.DbgEngGadpServer' } } task configureNodepJar { doLast { configurations.runtime.files.forEach { if (filterJar(it)) { nodepJar.from(zipTree(it)) } } } } task nodepJar(type: Jar) { inputs.file(file(jar.archivePath)) dependsOn(configureNodepJar) dependsOn(jar) appendix = 'nodep' manifest { attributes['Main-Class'] = 'agent.dbgeng.gadp.DbgEngGadpServer' } from(zipTree(jar.archivePath)) } test { jvmArgs('-Xrs') // TODO: Is this needed, or left over from trial-and-error if ("win64".equals(getCurrentPlatformName())) { dependsOn(":Framework-Debugging:testSpecimenWin64") } }