SunOS: enable a lot of features

This commit is contained in:
Carter Li
2024-06-17 15:13:26 +08:00
parent 6473db86a3
commit 94fb7eabfd
5 changed files with 31 additions and 18 deletions
+4
View File
@@ -3,6 +3,7 @@
#include "util/edidHelper.h"
#include "util/stringUtils.h"
#ifdef __linux__
#include <dirent.h>
static const char* drmParseSysfs(FFDisplayServerResult* result)
@@ -85,6 +86,7 @@ static const char* drmParseSysfs(FFDisplayServerResult* result)
return NULL;
}
#endif
#ifdef FF_HAVE_DRM
@@ -369,5 +371,7 @@ void ffdsConnectDrm(FFDisplayServerResult* result)
}
#endif
#ifdef __linux__
drmParseSysfs(result);
#endif
}
+1 -1
View File
@@ -72,7 +72,7 @@ bool ffOptionsParseGeneralCommandLine(FFOptionsGeneral* options, const char* key
else if(ffStrEqualsIgnCase(key, "--processing-timeout"))
options->processingTimeout = ffOptionParseInt32(key, value);
#if defined(__linux__) || defined(__FreeBSD__)
#if defined(__linux__) || defined(__FreeBSD__) || defined(__sun)
else if(ffStrEqualsIgnCase(key, "--escape-bedrock"))
options->escapeBedrock = ffOptionParseBoolean(value);
else if(ffStrEqualsIgnCase(key, "--player-name"))
+8 -2
View File
@@ -28,9 +28,12 @@ const char* ffOptionsParseLibraryJsonConfig(FFOptionsLibrary* options, yyjson_va
else if (ffStrEqualsIgnCase(key, "z"))
ffStrbufSetS(&options->libZ, yyjson_get_str(val));
#if defined(__linux__) || defined(__FreeBSD__)
#ifdef __ANDROID__
else if (ffStrEqualsIgnCase(key, "freetype"))
ffStrbufSetS(&options->libfreetype, yyjson_get_str(val));
#endif
#if defined(__linux__) || defined(__FreeBSD__) || defined(__sun)
else if (ffStrEqualsIgnCase(key, "wayland"))
ffStrbufSetS(&options->libWayland, yyjson_get_str(val));
else if (ffStrEqualsIgnCase(key, "xcbRandr"))
@@ -92,9 +95,12 @@ bool ffOptionsParseLibraryCommandLine(FFOptionsLibrary* options, const char* key
else if(ffStrEqualsIgnCase(subkey, "z"))
ffOptionParseString(key, value, &options->libZ);
#if defined(__linux__) || defined(__FreeBSD__)
#ifdef __ANDROID__
else if(ffStrEqualsIgnCase(subkey, "freetype"))
ffOptionParseString(key, value, &options->libfreetype);
#endif
#if defined(__linux__) || defined(__FreeBSD__) || defined(__sun)
else if(ffStrEqualsIgnCase(subkey, "wayland"))
ffOptionParseString(key, value, &options->libWayland);
else if(ffStrEqualsIgnCase(subkey, "xcbRandr"))
+5 -2
View File
@@ -11,7 +11,11 @@ typedef struct FFOptionsLibrary
FFstrbuf libChafa;
FFstrbuf libZ;
#if defined(__linux__) || defined(__FreeBSD__)
#ifdef __ANDROID__
FFstrbuf libfreetype;
#endif
#if defined(__linux__) || defined(__FreeBSD__) || defined(__sun)
FFstrbuf libWayland;
FFstrbuf libXcbRandr;
FFstrbuf libXcb;
@@ -25,7 +29,6 @@ typedef struct FFOptionsLibrary
FFstrbuf libEGL;
FFstrbuf libGLX;
FFstrbuf libOSMesa;
FFstrbuf libfreetype;
FFstrbuf libPulse;
FFstrbuf libnm;
FFstrbuf libDdcutil;