mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
GP-4235: Adding the means to build and find native components on FreeBSD
This commit is contained in:
parent
1281fb979b
commit
d16747cf6c
8 changed files with 42 additions and 7 deletions
|
@ -1,6 +1,5 @@
|
|||
/* ###
|
||||
* IP: GHIDRA
|
||||
* REVIEWED: YES
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -20,6 +19,7 @@ public enum OperatingSystem {
|
|||
WINDOWS("Windows"),
|
||||
LINUX("Linux"),
|
||||
MAC_OS_X("Mac OS X"),
|
||||
FREE_BSD("FreeBSD"),
|
||||
UNSUPPORTED("Unsupported Operating System");
|
||||
|
||||
/**
|
||||
|
|
|
@ -225,6 +225,7 @@ public class ApplicationUtilities {
|
|||
return createDir(switch (OperatingSystem.CURRENT_OPERATING_SYSTEM) {
|
||||
case WINDOWS -> new File(getEnvFile("LOCALAPPDATA", true), appName);
|
||||
case LINUX -> new File("/var/tmp/" + userDirName);
|
||||
case FREE_BSD -> new File("/var/tmp/" + userDirName);
|
||||
case MAC_OS_X -> new File("/var/tmp/" + userDirName);
|
||||
default -> throw new FileNotFoundException(
|
||||
"Failed to find the user cache directory: Unsupported operating system.");
|
||||
|
@ -281,6 +282,7 @@ public class ApplicationUtilities {
|
|||
return createDir(switch (OperatingSystem.CURRENT_OPERATING_SYSTEM) {
|
||||
case WINDOWS -> new File(getEnvFile("APPDATA", true), versionedSubdir);
|
||||
case LINUX -> new File(userHomeDir, ".config/" + versionedSubdir);
|
||||
case FREE_BSD -> new File(userHomeDir, ".config/" + versionedSubdir);
|
||||
case MAC_OS_X -> new File(userHomeDir, "Library/" + versionedSubdir);
|
||||
default -> throw new FileNotFoundException(
|
||||
"Failed to find the user settings directory: Unsupported operating system.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue