ghidra/Ghidra/RuntimeScripts/build.gradle

65 lines
1.6 KiB
Groovy
Raw Normal View History

2021-03-17 22:22:43 +00:00
/* ###
* 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.
*/
2019-03-26 17:45:32 +00:00
apply plugin: 'eclipse'
2019-03-26 17:45:32 +00:00
eclipse.project.name = '_Runtime Scripts'
rootProject.assembleDistribution {
from (this.project.file("Common/support")) {
into "support"
}
from (this.project.file("Common/server")) {
into "server"
}
}
rootProject.PLATFORMS.each { platform ->
rootProject.tasks.findAll {it.name == "assembleDistribution_${platform.name}"}.each { t ->
def p = this.project
if (isLinux(platform.name) || isMac(platform.name)) {
t.from ("${p.projectDir}/Linux/support") {
into "support"
}
t.from ("${p.projectDir}/Linux/server") {
into "server"
}
2024-07-03 15:54:34 +00:00
t.from ("${rootProject.projectDir}") {
include "gradlew"
into "support/gradle"
}
t.from (p.file("Linux/ghidraRun"))
}
if (isWindows(platform.name)) {
t.from ("${p.projectDir}/Windows/support") {
into "support"
}
t.from ("${p.projectDir}/Windows/server") {
into "server"
}
2024-07-03 15:54:34 +00:00
t.from ("${rootProject.projectDir}") {
include "gradlew.bat"
into "support/gradle"
}
t.from (p.file("Windows/ghidraRun.bat"))
2024-07-03 15:54:34 +00:00
}
}
}