Add native FreeBSD building functionality (#35)
All checks were successful
eden-build / source (push) Successful in 7m11s
eden-build / linux (push) Successful in 30m34s
eden-build / windows (msvc) (push) Successful in 33m12s
eden-build / android (push) Successful in 35m1s

This commit enables native building on FreeBSD through Cmake + ninja.

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/35
Reviewed-by: crueter <crueter@eden-emu.dev>
Co-authored-by: SDK-Chan <sdkchan@eden-emu.dev>
Co-committed-by: SDK-Chan <sdkchan@eden-emu.dev>
This commit is contained in:
SDK-Chan 2025-07-11 10:05:17 +02:00 committed by crueter
parent e5074c90ad
commit 7f48f4efb6
No known key found for this signature in database
GPG key ID: 425ACD2D4830EBC6
4 changed files with 63 additions and 12 deletions

View file

@ -1150,7 +1150,7 @@ add_library(core STATIC
tools/renderdoc.h
)
if (UNIX AND NOT APPLE AND NOT ANDROID)
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
# find_package(libiw REQUIRED)
target_link_libraries(core PRIVATE iw)
endif()

View file

@ -25,7 +25,13 @@ extern "C" {
#include <libavcodec/avcodec.h>
#include <libavutil/opt.h>
#include <libavutil/pixdesc.h>
// Works quite fine, and omits the hacky ffmpeg building for now...
#if defined(__FreeBSD__)
#include <libavcodec/codec.h>
#else
#include <libavcodec/codec_internal.h>
#endif
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic pop