summaryrefslogtreecommitdiff
path: root/devel/ghidra/files/patch-GPL_gpl.gradle
blob: e0951788ba23bb6925af5e9ce74f11518b397f21 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- GPL/gpl.gradle.orig	2019-11-04 13:00:14 UTC
+++ GPL/gpl.gradle
@@ -6,7 +6,7 @@ project.ext.BIN_REPO = file("../../../ghidra.bin").abs
  * Create a set containing all the platforms we need when building native
  * artifacts.
  ****************************************************************************/
-project.ext.set("OS_NAMES", ["osx64", "win32", "win64", "linux64"])
+project.ext.set("OS_NAMES", ["osx64", "win32", "win64", "linux64", "freebsd64"])
 
 /****************************************************************************
  * Establish Visual Studio configuration environment for Windows native builds
@@ -43,6 +43,11 @@ ext.getCurrentPlatformName = {
 			return 'osx64'
 		}
 	}
+	else if (osName.startsWith("FreeBSD")) {
+		if (isX86_64) {
+			return 'freebsd64'
+ 		}
+ 	}
 	throw new GradleException("Unrecognized current platform -> osName = $osName, archName = $archName")
 }
 /******************************************************************************************