Merge pull request #74666 from akien-mga/scons-linux-cleanup-pulseaudio-defines
SCons: Cleanup pulseaudio defines for Linux
This commit is contained in:
commit
015cec0a6b
1 changed files with 3 additions and 2 deletions
|
@ -307,10 +307,11 @@ def configure(env: "Environment"):
|
||||||
if not env["use_sowrap"]:
|
if not env["use_sowrap"]:
|
||||||
if os.system("pkg-config --exists libpulse") == 0: # 0 means found
|
if os.system("pkg-config --exists libpulse") == 0: # 0 means found
|
||||||
env.ParseConfig("pkg-config libpulse --cflags --libs")
|
env.ParseConfig("pkg-config libpulse --cflags --libs")
|
||||||
env.Append(CPPDEFINES=["PULSEAUDIO_ENABLED", "_REENTRANT"])
|
env.Append(CPPDEFINES=["PULSEAUDIO_ENABLED"])
|
||||||
else:
|
else:
|
||||||
print("Warning: PulseAudio development libraries not found. Disabling the PulseAudio audio driver.")
|
print("Warning: PulseAudio development libraries not found. Disabling the PulseAudio audio driver.")
|
||||||
env["pulseaudio"] = False
|
env["pulseaudio"] = False
|
||||||
|
else:
|
||||||
env.Append(CPPDEFINES=["PULSEAUDIO_ENABLED", "_REENTRANT"])
|
env.Append(CPPDEFINES=["PULSEAUDIO_ENABLED", "_REENTRANT"])
|
||||||
|
|
||||||
if env["dbus"]:
|
if env["dbus"]:
|
||||||
|
|
Loading…
Reference in a new issue