/* ### * 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/distributableGhidraModule.gradle" apply from: "$rootProject.projectDir/gradle/javaProject.gradle" apply from: "$rootProject.projectDir/gradle/helpProject.gradle" apply from: "$rootProject.projectDir/gradle/jacocoProject.gradle" apply from: "$rootProject.projectDir/gradle/javaTestProject.gradle" apply plugin: 'eclipse' eclipse.project.name = 'Features Python' def JYTHON = "org.python:jython-standalone:2.7.2" def JYTHON_DIR = "jython-2.7.2" configurations { jython } dependencies { api project(':Base') helpPath project(path: ":Base", configuration: "helpPath") jython JYTHON api JYTHON } task jythonUnpack(type: Copy) { description "Unpack Jython Lib" // Without this, the copyTask will unzip the file to check for "up to date" onlyIf { !file("build/data/${JYTHON_DIR}").exists() } from zipTree(configurations.jython.singleFile) include "Lib/**" destinationDir file("build/data/${JYTHON_DIR}") } task pythonSrcCopy(type: Copy) { description "Copy python-src directory (for Feature Python)" from(file("python-src")) destinationDir file("build/data/python-src") } // Ensure that Jython is usable in development xx rootProject.prepDev.dependsOn jythonUnpack jar.dependsOn jythonUnpack jar.dependsOn pythonSrcCopy