mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	CMake, CI: Add FFmpeg library dependency
This commit is contained in:
		
							parent
							
								
									0224ae13c4
								
							
						
					
					
						commit
						cf2c354fb9
					
				
					 8 changed files with 48 additions and 26 deletions
				
			
		|  | @ -31,8 +31,6 @@ add_library(audio_core STATIC | |||
| 
 | ||||
|     $<$<BOOL:${SDL2_FOUND}>:sdl2_sink.cpp sdl2_sink.h> | ||||
|     $<$<BOOL:${ENABLE_CUBEB}>:cubeb_sink.cpp cubeb_sink.h cubeb_input.cpp cubeb_input.h> | ||||
|     $<$<BOOL:${FFMPEG_FOUND}>:hle/ffmpeg_decoder.cpp hle/ffmpeg_decoder.h hle/ffmpeg_dl.cpp hle/ffmpeg_dl.h> | ||||
|     $<$<BOOL:${ENABLE_MF}>:hle/wmf_decoder.cpp hle/wmf_decoder.h hle/wmf_decoder_utils.cpp hle/wmf_decoder_utils.h> | ||||
| ) | ||||
| 
 | ||||
| create_target_directory_groups(audio_core) | ||||
|  | @ -40,7 +38,22 @@ create_target_directory_groups(audio_core) | |||
| target_link_libraries(audio_core PUBLIC common core) | ||||
| target_link_libraries(audio_core PRIVATE SoundTouch teakra) | ||||
| 
 | ||||
| if(FFMPEG_FOUND) | ||||
| if(ENABLE_MF) | ||||
|     target_sources(audio_core PRIVATE | ||||
|         hle/wmf_decoder.cpp | ||||
|         hle/wmf_decoder.h | ||||
|         hle/wmf_decoder_utils.cpp | ||||
|         hle/wmf_decoder_utils.h | ||||
|     ) | ||||
|     target_link_libraries(audio_core PRIVATE mf.lib mfplat.lib mfuuid.lib) | ||||
|     target_compile_definitions(audio_core PUBLIC HAVE_MF) | ||||
| elseif(ENABLE_FFMPEG) | ||||
|     target_sources(audio_core PRIVATE | ||||
|         hle/ffmpeg_decoder.cpp | ||||
|         hle/ffmpeg_decoder.h | ||||
|         hle/ffmpeg_dl.cpp | ||||
|         hle/ffmpeg_dl.h | ||||
|     ) | ||||
|     if(UNIX) | ||||
|         target_link_libraries(audio_core PRIVATE FFmpeg::avcodec) | ||||
|     else() | ||||
|  | @ -49,11 +62,6 @@ if(FFMPEG_FOUND) | |||
|     target_compile_definitions(audio_core PUBLIC HAVE_FFMPEG) | ||||
| endif() | ||||
| 
 | ||||
| if(ENABLE_MF) | ||||
|     target_link_libraries(audio_core PRIVATE mf.lib mfplat.lib mfuuid.lib) | ||||
|     target_compile_definitions(audio_core PUBLIC HAVE_MF) | ||||
| endif() | ||||
| 
 | ||||
| if(SDL2_FOUND) | ||||
|     target_link_libraries(audio_core PRIVATE SDL2) | ||||
|     target_compile_definitions(audio_core PRIVATE HAVE_SDL2) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue