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