Browse Source
[cmake, doc] update freebsd docs & fix ext and bundled defaults
Signed-off-by: crueter <crueter@eden-emu.dev>
pull/386/head
crueter
6 months ago
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
3 changed files with
13 additions and
14 deletions
CMakeLists.txt
CMakeModules/CPMUtil.cmake
docs/build/FreeBSD.md
@ -48,10 +48,11 @@ endif()
# O n L i n u x s y s t e m S D L 2 i s l i k e l y t o b e l a c k i n g H I D A P I s u p p o r t w h i c h h a v e d r a w b a c k s b u t i s n e e d e d f o r S D L m o t i o n
CMAKE_DEPENDENT_OPTION ( ENABLE_SDL2 "Enable the SDL2 frontend" ON "NOT ANDROID" OFF )
set ( EXT_DEFAULT ON )
if ( PLATFORM_FREEBSD )
set ( EXT_DEFAULT OFF )
# TODO ( crueter ) : P r o p e r h a n d l i n g f o r f f m p e g , s d l 2 , e t c .
if ( MSVC OR ANDROID )
set ( EXT_DEFAULT ON )
endif ( )
CMAKE_DEPENDENT_OPTION ( YUZU_USE_EXTERNAL_SDL2 "Compile external SDL2" ${ EXT_DEFAULT } "ENABLE_SDL2;NOT MSVC" OFF )
@ -67,7 +68,7 @@ option(ENABLE_QT_UPDATE_CHECKER "Enable update checker for the Qt frontend" OFF)
CMAKE_DEPENDENT_OPTION ( YUZU_USE_BUNDLED_QT "Download bundled Qt binaries" "${MSVC}" "ENABLE_QT" OFF )
option ( YUZU_USE_CPM "Use CPM to fetch Eden dependencies if needed " ${ EXT_DEFAULT } )
option ( YUZU_USE_CPM "Use CPM to fetch system dependencies (fmt, boost, etc) if needed. Externals will still be fetched. " ${ EXT_DEFAULT } )
option ( ENABLE_WEB_SERVICE "Enable web services (telemetry, etc.)" ON )
option ( ENABLE_WIFI_SCAN "Enable WiFi scanning" OFF )
@ -93,6 +94,7 @@ option(YUZU_TESTS "Compile tests" "${BUILD_TESTING}")
option ( YUZU_USE_PRECOMPILED_HEADERS "Use precompiled headers" ${ EXT_DEFAULT } )
# TODO ( crueter ) : C I t h i s ?
option ( YUZU_DOWNLOAD_ANDROID_VVL "Download validation layer binary for android" ON )
option ( FORCE_DOWNLOAD_WIN_BUNDLES "Forcefully download bundled Windows dependencies (useful for CI)" OFF )
@ -11,10 +11,11 @@
# F u t u r e c r u e t e r : W o w t h i s w a s a l i e a n d a h a l f , a t t h i s p o i n t I m i g h t a s w e l l m a k e m y o w n C P N
# h a h a j u s t k i d d i n g . . . u n l e s s ?
# TODO ( crueter ) : R e m e m b e r t o g e t m o r e t h a n 6 h o u r s o f s l e e p w h e n e v e r m a k i n g g i a n t c m a k e c h a n g e s
if ( MSVC OR ANDROID )
set ( BUNDLED_DEFAULT OFF )
else ( )
set ( BUNDLED_DEFAULT ON )
else ( )
set ( BUNDLED_DEFAULT OFF )
endif ( )
option ( CPMUTIL_FORCE_BUNDLED
@ -1,13 +1,7 @@
## One word of caution before proceeding.
This is not the usual or preferred way to build programs on FreeBSD.
As of writing there is no official fresh port available for Eden, but it is in the works.
After it is available you can find a link to the eden-emu fresh port here and on Escary's github repo.
See this build as an AppImage alternative for FreeBSD.
Eden is not currently available as a port on FreeBSD, though it is in the works. For now, the recommended method of usage is to compile it yourself. Check back often, as the build process frequently changes.
## Dependencies.
Before we start we need some dependencies.
These dependencies are generally needed to build Eden on FreeBSD.
Eden needs the following dependencies:
```
devel/cmake
@ -22,6 +16,8 @@ devel/autoconf
devel/pkgconf
devel/qt6-base
net/enet
multimedia/ffnvcodec-headers
multimedia/ffmpeg