mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 05:34:58 +00:00

This commit makes it possible to build AK and most of Lagom for iOS,
based on the work for the Ladybird build demoed on discord:
1211987732
50 lines
1.3 KiB
CMake
50 lines
1.3 KiB
CMake
set(SOURCES
|
|
GenericTypes.cpp
|
|
SampleFormats.cpp
|
|
Loader.cpp
|
|
WavLoader.cpp
|
|
FlacLoader.cpp
|
|
FlacWriter.cpp
|
|
WavWriter.cpp
|
|
Metadata.cpp
|
|
MP3Loader.cpp
|
|
PlaybackStream.cpp
|
|
QOALoader.cpp
|
|
QOATypes.cpp
|
|
UserSampleQueue.cpp
|
|
VorbisComment.cpp
|
|
)
|
|
|
|
if (SERENITYOS)
|
|
list(APPEND SOURCES ConnectionToServer.cpp)
|
|
list(APPEND SOURCES ConnectionToManagerServer.cpp)
|
|
list(APPEND SOURCES PlaybackStreamSerenity.cpp)
|
|
set(GENERATED_SOURCES
|
|
../../Services/AudioServer/AudioClientEndpoint.h
|
|
../../Services/AudioServer/AudioServerEndpoint.h
|
|
../../Services/AudioServer/AudioManagerClientEndpoint.h
|
|
../../Services/AudioServer/AudioManagerServerEndpoint.h
|
|
)
|
|
endif()
|
|
|
|
if (HAVE_PULSEAUDIO)
|
|
list(APPEND SOURCES
|
|
PlaybackStreamPulseAudio.cpp
|
|
PulseAudioWrappers.cpp
|
|
)
|
|
endif()
|
|
|
|
serenity_lib(LibAudio audio)
|
|
target_link_libraries(LibAudio PRIVATE LibCore LibRIFF LibIPC LibThreading LibUnicode LibCrypto)
|
|
|
|
if (HAVE_PULSEAUDIO)
|
|
target_link_libraries(LibAudio PRIVATE pulse)
|
|
target_compile_definitions(LibAudio PRIVATE HAVE_PULSEAUDIO=1)
|
|
endif()
|
|
|
|
if (APPLE AND NOT IOS)
|
|
target_sources(LibAudio PRIVATE PlaybackStreamAudioUnit.cpp)
|
|
|
|
find_library(AUDIO_UNIT AudioUnit REQUIRED)
|
|
target_link_libraries(LibAudio PRIVATE ${AUDIO_UNIT})
|
|
endif()
|