building is usually easy if you use the official bloated way, what is more tricky is forcing the build to use system libraries
BROTLI
FREETYPE
HARFBUZZ
LIBBACKTRACE
LIBJPEGTURBO
LIBPNG
LIBWEBP
LIBZIP
ZLIBNG
ZSTD
SDL3
QT=6.10.2
CPUINFO
DISCORD_RPC
PLUTOSVG
SHADERC
SOUNDTOUCH
SPIRV_CROSS
DXCOMPILER
FFMPEG
can be reduced to only this if you use system libraries. I mean why would you want to compile qt6 to build an emulator.
LIBBACKTRACE
LIBZIP
CPUINFO
DISCORD_RPC
PLUTOSVG
SHADERC
SOUNDTOUCH
SPIRV_CROSS
DXCOMPILER