Set WIVRN_USE_PIPEWIRE in wivrn_config.h

This commit is contained in:
Patrick Nicolas
2026-09-29 19:22:33 +02:00
committed by xytovl
parent 07131bec85
commit 3a9b40472e
2 changed files with 3 additions and 2 deletions
-1
View File
@@ -125,7 +125,6 @@ else()
"audio/linux/*.cpp")
list(APPEND PLATFORM_SOURCE ${CLIENT_PIPEWIRE_SOURCE})
target_link_libraries(wivrn PkgConfig::libpipewire)
target_compile_definitions(wivrn PRIVATE WIVRN_USE_PIPEWIRE)
endif()
target_sources(wivrn PRIVATE ${PLATFORM_SOURCE})
+3 -1
View File
@@ -19,13 +19,15 @@
#pragma once
#include "wivrn_config.h"
#ifdef __ANDROID__
#include "android/audio.h"
namespace wivrn
{
using audio = ::wivrn::android::audio;
}
#elif defined(WIVRN_USE_PIPEWIRE)
#elif WIVRN_USE_PIPEWIRE
#include "linux/audio.h"
namespace wivrn
{