mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +00:00
Meta: Port bc4d4f0f95
to gn build
This commit is contained in:
parent
777fb44bb0
commit
616e61ee23
3 changed files with 27 additions and 0 deletions
13
Meta/gn/build/libs/pulse/BUILD.gn
Normal file
13
Meta/gn/build/libs/pulse/BUILD.gn
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
import("//Meta/gn/build/libs/pulse/enable.gni")
|
||||||
|
|
||||||
|
config("pulseaudio_config") {
|
||||||
|
visibility = [ ":pulse" ]
|
||||||
|
libs = [ "pulse" ]
|
||||||
|
defines = [ "HAVE_PULSEAUDIO" ]
|
||||||
|
}
|
||||||
|
|
||||||
|
group("pulse") {
|
||||||
|
if (enable_pulseaudio) {
|
||||||
|
public_configs = [ ":pulseaudio_config" ]
|
||||||
|
}
|
||||||
|
}
|
4
Meta/gn/build/libs/pulse/enable.gni
Normal file
4
Meta/gn/build/libs/pulse/enable.gni
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
declare_args() {
|
||||||
|
# Select whether to build with PulseAudio support in LibAudio
|
||||||
|
enable_pulseaudio = current_os == "linux"
|
||||||
|
}
|
|
@ -1,3 +1,5 @@
|
||||||
|
import("//Meta/gn/build/libs/pulse/enable.gni")
|
||||||
|
|
||||||
# TODO: AudioClient IPC files for serenity
|
# TODO: AudioClient IPC files for serenity
|
||||||
|
|
||||||
shared_library("LibAudio") {
|
shared_library("LibAudio") {
|
||||||
|
@ -8,6 +10,7 @@ shared_library("LibAudio") {
|
||||||
"Loader.cpp",
|
"Loader.cpp",
|
||||||
"MP3Loader.cpp",
|
"MP3Loader.cpp",
|
||||||
"Metadata.cpp",
|
"Metadata.cpp",
|
||||||
|
"PlaybackStream.cpp",
|
||||||
"QOALoader.cpp",
|
"QOALoader.cpp",
|
||||||
"QOATypes.cpp",
|
"QOATypes.cpp",
|
||||||
"RIFFTypes.cpp",
|
"RIFFTypes.cpp",
|
||||||
|
@ -17,8 +20,15 @@ shared_library("LibAudio") {
|
||||||
"WavLoader.cpp",
|
"WavLoader.cpp",
|
||||||
"WavWriter.cpp",
|
"WavWriter.cpp",
|
||||||
]
|
]
|
||||||
|
if (enable_pulseaudio) {
|
||||||
|
sources += [
|
||||||
|
"PlaybackStreamPulseAudio.cpp",
|
||||||
|
"PulseAudioWrappers.cpp",
|
||||||
|
]
|
||||||
|
}
|
||||||
deps = [
|
deps = [
|
||||||
"//AK",
|
"//AK",
|
||||||
|
"//Meta/gn/build/libs/pulse",
|
||||||
"//Userland/Libraries/LibCore",
|
"//Userland/Libraries/LibCore",
|
||||||
"//Userland/Libraries/LibCrypto",
|
"//Userland/Libraries/LibCrypto",
|
||||||
"//Userland/Libraries/LibIPC",
|
"//Userland/Libraries/LibIPC",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue