Meta: Port bc4d4f0f95
to gn build
This commit is contained in:
parent
777fb44bb0
commit
616e61ee23
Notes:
sideshowbarker
2024-07-17 08:36:27 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/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
|
||||
|
||||
shared_library("LibAudio") {
|
||||
|
@ -8,6 +10,7 @@ shared_library("LibAudio") {
|
|||
"Loader.cpp",
|
||||
"MP3Loader.cpp",
|
||||
"Metadata.cpp",
|
||||
"PlaybackStream.cpp",
|
||||
"QOALoader.cpp",
|
||||
"QOATypes.cpp",
|
||||
"RIFFTypes.cpp",
|
||||
|
@ -17,8 +20,15 @@ shared_library("LibAudio") {
|
|||
"WavLoader.cpp",
|
||||
"WavWriter.cpp",
|
||||
]
|
||||
if (enable_pulseaudio) {
|
||||
sources += [
|
||||
"PlaybackStreamPulseAudio.cpp",
|
||||
"PulseAudioWrappers.cpp",
|
||||
]
|
||||
}
|
||||
deps = [
|
||||
"//AK",
|
||||
"//Meta/gn/build/libs/pulse",
|
||||
"//Userland/Libraries/LibCore",
|
||||
"//Userland/Libraries/LibCrypto",
|
||||
"//Userland/Libraries/LibIPC",
|
||||
|
|
Loading…
Add table
Reference in a new issue