| 1 |
set(SOURCES AEResampleFactory.cpp |
| 2 |
AESinkFactory.cpp |
| 3 |
Encoders/AEEncoderFFmpeg.cpp |
| 4 |
Engines/ActiveAE/ActiveAE.cpp |
| 5 |
Engines/ActiveAE/ActiveAEBuffer.cpp |
| 6 |
Engines/ActiveAE/ActiveAEFilter.cpp |
| 7 |
Engines/ActiveAE/ActiveAESink.cpp |
| 8 |
Engines/ActiveAE/ActiveAEStream.cpp |
| 9 |
Engines/ActiveAE/ActiveAESound.cpp |
| 10 |
Engines/ActiveAE/ActiveAESettings.cpp |
| 11 |
Utils/AEBitstreamPacker.cpp |
| 12 |
Utils/AEChannelInfo.cpp |
| 13 |
Utils/AEDeviceInfo.cpp |
| 14 |
Utils/AELimiter.cpp |
| 15 |
Utils/AEPackIEC61937.cpp |
| 16 |
Utils/AEStreamInfo.cpp |
| 17 |
Utils/AEUtil.cpp |
| 18 |
Utils/PackerMAT.cpp) |
| 19 |
|
| 20 |
set(HEADERS AEResampleFactory.h |
| 21 |
AESinkFactory.h |
| 22 |
Encoders/AEEncoderFFmpeg.h |
| 23 |
Engines/ActiveAE/ActiveAE.h |
| 24 |
Engines/ActiveAE/ActiveAEBuffer.h |
| 25 |
Engines/ActiveAE/ActiveAEFilter.h |
| 26 |
Engines/ActiveAE/ActiveAESink.h |
| 27 |
Engines/ActiveAE/ActiveAESound.h |
| 28 |
Engines/ActiveAE/ActiveAEStream.h |
| 29 |
Engines/ActiveAE/ActiveAESettings.h |
| 30 |
Interfaces/AE.h |
| 31 |
Interfaces/AEEncoder.h |
| 32 |
Interfaces/AEResample.h |
| 33 |
Interfaces/AESink.h |
| 34 |
Interfaces/AESound.h |
| 35 |
Interfaces/AEStream.h |
| 36 |
Interfaces/IAudioCallback.h |
| 37 |
Interfaces/ThreadedAE.h |
| 38 |
Utils/AEAudioFormat.h |
| 39 |
Utils/AEBitstreamPacker.h |
| 40 |
Utils/AEChannelData.h |
| 41 |
Utils/AEChannelInfo.h |
| 42 |
Utils/AEDeviceInfo.h |
| 43 |
Utils/AELimiter.h |
| 44 |
Utils/AEPackIEC61937.h |
| 45 |
Utils/AERingBuffer.h |
| 46 |
Utils/AEStreamData.h |
| 47 |
Utils/AEStreamInfo.h |
| 48 |
Utils/AEUtil.h |
| 49 |
Utils/PackerMAT.h) |
| 50 |
|
| 51 |
if(TARGET ALSA::ALSA) |
| 52 |
list(APPEND SOURCES Sinks/AESinkALSA.cpp |
| 53 |
Utils/AEELDParser.cpp) |
| 54 |
list(APPEND HEADERS Sinks/AESinkALSA.h |
| 55 |
Utils/AEELDParser.h) |
| 56 |
|
| 57 |
if(NOT "x11" IN_LIST CORE_PLATFORM_NAME_LC) |
| 58 |
list(APPEND SOURCES Sinks/alsa/ALSAHControlMonitor.cpp) |
| 59 |
list(APPEND HEADERS Sinks/alsa/ALSAHControlMonitor.h) |
| 60 |
endif() |
| 61 |
|
| 62 |
if(TARGET UDEV::UDEV) |
| 63 |
list(APPEND SOURCES Sinks/alsa/ALSADeviceMonitor.cpp) |
| 64 |
list(APPEND HEADERS Sinks/alsa/ALSADeviceMonitor.h) |
| 65 |
endif() |
| 66 |
endif() |
| 67 |
|
| 68 |
if(TARGET PulseAudio::PulseAudio) |
| 69 |
list(APPEND SOURCES Sinks/AESinkPULSE.cpp) |
| 70 |
list(APPEND HEADERS Sinks/AESinkPULSE.h) |
| 71 |
endif() |
| 72 |
|
| 73 |
if(PIPEWIRE_FOUND) |
| 74 |
list(APPEND SOURCES Sinks/pipewire/AESinkPipewire.cpp |
| 75 |
Sinks/pipewire/Pipewire.cpp |
| 76 |
Sinks/pipewire/PipewireContext.cpp |
| 77 |
Sinks/pipewire/PipewireCore.cpp |
| 78 |
Sinks/pipewire/PipewireGlobal.cpp |
| 79 |
Sinks/pipewire/PipewireNode.cpp |
| 80 |
Sinks/pipewire/PipewireProxy.cpp |
| 81 |
Sinks/pipewire/PipewireRegistry.cpp |
| 82 |
Sinks/pipewire/PipewireStream.cpp |
| 83 |
Sinks/pipewire/PipewireThreadLoop.cpp) |
| 84 |
list(APPEND HEADERS Sinks/pipewire/AESinkPipewire.h |
| 85 |
Sinks/pipewire/Pipewire.h |
| 86 |
Sinks/pipewire/PipewireContext.h |
| 87 |
Sinks/pipewire/PipewireCore.h |
| 88 |
Sinks/pipewire/PipewireGlobal.h |
| 89 |
Sinks/pipewire/PipewireNode.h |
| 90 |
Sinks/pipewire/PipewireProxy.h |
| 91 |
Sinks/pipewire/PipewireRegistry.h |
| 92 |
Sinks/pipewire/PipewireStream.h |
| 93 |
Sinks/pipewire/PipewireThreadLoop.h) |
| 94 |
endif() |
| 95 |
|
| 96 |
if(TARGET Sndio::Sndio) |
| 97 |
list(APPEND SOURCES Sinks/AESinkSNDIO.cpp) |
| 98 |
list(APPEND HEADERS Sinks/AESinkSNDIO.h) |
| 99 |
endif() |
| 100 |
|
| 101 |
if(TARGET ffmpeg::ffmpeg) |
| 102 |
list(APPEND SOURCES Engines/ActiveAE/ActiveAEResampleFFMPEG.cpp) |
| 103 |
list(APPEND HEADERS Engines/ActiveAE/ActiveAEResampleFFMPEG.h) |
| 104 |
endif() |
| 105 |
|
| 106 |
if(CORE_SYSTEM_NAME MATCHES windows) |
| 107 |
list(APPEND SOURCES Sinks/AESinkWASAPI.cpp |
| 108 |
Sinks/windows/AESinkFactoryWin.cpp) |
| 109 |
list(APPEND HEADERS Sinks/AESinkWASAPI.h |
| 110 |
Sinks/windows/AESinkFactoryWin.h) |
| 111 |
if(CORE_SYSTEM_NAME STREQUAL windowsstore) |
| 112 |
list(APPEND SOURCES Sinks/AESinkXAudio.cpp |
| 113 |
Sinks/windows/AESinkFactoryWin10.cpp) |
| 114 |
list(APPEND SOURCES Sinks/AESinkXAudio.h) |
| 115 |
elseif(CORE_SYSTEM_NAME STREQUAL windows) |
| 116 |
list(APPEND SOURCES Sinks/AESinkDirectSound.cpp |
| 117 |
Sinks/windows/AESinkFactoryWin32.cpp) |
| 118 |
list(APPEND SOURCES Sinks/AESinkDirectSound.h) |
| 119 |
endif() |
| 120 |
endif() |
| 121 |
|
| 122 |
if(CORE_SYSTEM_NAME STREQUAL osx) |
| 123 |
list(APPEND SOURCES Sinks/AESinkDARWINOSX.cpp |
| 124 |
Sinks/darwin/CoreAudioHelpers.cpp |
| 125 |
Sinks/osx/AEDeviceEnumerationOSX.cpp |
| 126 |
Sinks/osx/CoreAudioChannelLayout.cpp |
| 127 |
Sinks/osx/CoreAudioDevice.cpp |
| 128 |
Sinks/osx/CoreAudioHardware.cpp |
| 129 |
Sinks/osx/CoreAudioStream.cpp) |
| 130 |
list(APPEND HEADERS Sinks/AESinkDARWINOSX.h |
| 131 |
Sinks/darwin/CoreAudioHelpers.h |
| 132 |
Sinks/osx/AEDeviceEnumerationOSX.h |
| 133 |
Sinks/osx/CoreAudioChannelLayout.h |
| 134 |
Sinks/osx/CoreAudioDevice.h |
| 135 |
Sinks/osx/CoreAudioHardware.h |
| 136 |
Sinks/osx/CoreAudioStream.h) |
| 137 |
endif() |
| 138 |
|
| 139 |
if(CORE_SYSTEM_NAME STREQUAL darwin_embedded) |
| 140 |
list(APPEND SOURCES Sinks/darwin/CoreAudioHelpers.cpp) |
| 141 |
list(APPEND HEADERS Sinks/darwin/CoreAudioHelpers.h) |
| 142 |
if("ios" IN_LIST CORE_PLATFORM_NAME_LC) |
| 143 |
list(APPEND SOURCES Sinks/AESinkDARWINIOS.mm) |
| 144 |
list(APPEND HEADERS Sinks/AESinkDARWINIOS.h) |
| 145 |
elseif("tvos" IN_LIST CORE_PLATFORM_NAME_LC) |
| 146 |
list(APPEND SOURCES Sinks/AESinkDARWINTVOS.mm) |
| 147 |
list(APPEND HEADERS Sinks/AESinkDARWINTVOS.h) |
| 148 |
endif() |
| 149 |
endif() |
| 150 |
|
| 151 |
if(CORE_SYSTEM_NAME STREQUAL android) |
| 152 |
list(APPEND SOURCES Sinks/AESinkAUDIOTRACK.cpp) |
| 153 |
list(APPEND HEADERS Sinks/AESinkAUDIOTRACK.h) |
| 154 |
endif() |
| 155 |
|
| 156 |
if("webos" IN_LIST CORE_PLATFORM_NAME_LC) |
| 157 |
list(APPEND SOURCES Sinks/AESinkStarfish.cpp) |
| 158 |
list(APPEND HEADERS Sinks/AESinkStarfish.h) |
| 159 |
endif() |
| 160 |
|
| 161 |
if(CORE_SYSTEM_NAME STREQUAL freebsd) |
| 162 |
list(APPEND SOURCES Sinks/AESinkOSS.cpp) |
| 163 |
list(APPEND HEADERS Sinks/AESinkOSS.h) |
| 164 |
endif() |
| 165 |
|
| 166 |
core_add_library(audioengine) |
| 167 |
target_include_directories(${CORE_LIBRARY} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) |
| 168 |
#if(NOT CORE_SYSTEM_NAME STREQUAL windows AND NOT CORE_SYSTEM_NAME STREQUAL windowsstore) |
| 169 |
# if(HAVE_SSE) |
| 170 |
# target_compile_options(${CORE_LIBRARY} PRIVATE -msse) |
| 171 |
# endif() |
| 172 |
# if(HAVE_SSE2) |
| 173 |
# target_compile_options(${CORE_LIBRARY} PRIVATE -msse2) |
| 174 |
# endif() |
| 175 |
#endif() |