GP-6839: Always do "multi-platform" build

This commit is contained in:
Ryan Kurtz
2026-05-29 04:52:58 -04:00
parent fbbc4affe5
commit 9311d06922
60 changed files with 74 additions and 123 deletions

View File

@@ -19,8 +19,8 @@ import org.apache.tools.ant.filters.*
* distribution.gradle
*
* This contains gradle tasks for packaging Ghidra artifacts for distribution. To
* run a full distribution, execute the buildGhidra task. This will build for the
* current platform only. Add -PallPlatforms to build a multiplatform build.
* run a full distribution, execute the buildGhidra task. This will build native
* components for the current platform only.
*
*********************************************************************************/
@@ -645,12 +645,9 @@ task assembleAll() {
dependsOn assembleDistribution
dependsOn assembleSource
dependsOn assembleMarkdownToHtml
dependsOn "assembleDistribution_$currentPlatform"
if (project.hasProperty("allPlatforms")) {
project.PLATFORMS.each { platform ->
dependsOn ":assembleDistribution_${platform.name}"
}
project.PLATFORMS.each { platform ->
dependsOn ":assembleDistribution_${platform.name}"
}
doFirst {
@@ -681,12 +678,8 @@ task createInstallationZip(type: Zip) { t ->
dependsOn assembleAll
if (project.hasProperty("allPlatforms")) {
archiveFileName = "${ZIP_NAME_PREFIX}.zip"
}
else {
archiveFileName = "${ZIP_NAME_PREFIX}_${currentPlatform}.zip"
}
archiveFileName = "${ZIP_NAME_PREFIX}.zip"
destinationDirectory = DISTRIBUTION_DIR
// Make sure that we don't try to copy the same file with the same path.

View File

@@ -37,9 +37,6 @@ Primary gradle tasks for Ghidra
eclipse Create eclipse projects [root/eclipse.gradle]
buildHelp Builds help [root/buildHelp.gradle]
buildGhidra Builds Ghidra for the current platform [root/distribution.gradle]
buildGhidra -PallPlatforms Builds Ghidra for all platforms (assumes natives [root/distribution.gradle]
for other platforms are already built into
appropriate os dirs)
Task rules:
buildNatives[_platform] Builds the native executables and libraries for the [GPL/nativeBuildProperties.gradle]