Browse Source
fix openssl and ffmpeg, add sdl
fix openssl and ffmpeg, add sdl
Signed-off-by: crueter <crueter@eden-emu.dev>pull/3003/head
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
4 changed files with 31 additions and 46 deletions
-
20CMakeLists.txt
-
23CMakeModules/StaticQtLibs.cmake
-
7externals/cpmfile.json
-
27src/yuzu/CMakeLists.txt
@ -0,0 +1,23 @@ |
|||||
|
## When linking to a static Qt build on MinGW, certain additional libraries |
||||
|
## must be statically linked to as well. |
||||
|
|
||||
|
function(static_qt_link target) |
||||
|
macro(extra_libs) |
||||
|
foreach(lib ${ARGN}) |
||||
|
find_library(${lib}_LIBRARY ${lib} REQUIRED) |
||||
|
target_link_libraries(${target} PRIVATE ${${lib}_LIBRARY}) |
||||
|
endforeach() |
||||
|
endmacro() |
||||
|
|
||||
|
# I am constantly impressed at how ridiculously stupid the linker is |
||||
|
# NB: yes, we have to put them here twice. I have no idea why |
||||
|
|
||||
|
# libtiff.a |
||||
|
extra_libs(tiff jbig bz2 lzma deflate jpeg tiff) |
||||
|
|
||||
|
# libfreetype.a |
||||
|
extra_libs(freetype bz2 Lerc brotlidec brotlicommon freetype) |
||||
|
|
||||
|
# libharfbuzz.a |
||||
|
extra_libs(harfbuzz graphite2) |
||||
|
endfunction() |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue