mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-07-30 07:18:37 -09:00
GP-6839: Always do "multi-platform" build
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user