mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 10:27:32 +09:00
Issue #1265 - Expose sndio as a build option for any supporting system
This commit is contained in:
parent
1e75eb89f3
commit
84c1e8ce10
6 changed files with 23 additions and 3 deletions
|
|
@ -215,6 +215,7 @@ def old_configure_options(*options):
|
||||||
'--enable-pref-extensions',
|
'--enable-pref-extensions',
|
||||||
'--enable-private-build',
|
'--enable-private-build',
|
||||||
'--enable-pulseaudio',
|
'--enable-pulseaudio',
|
||||||
|
'--enable-sndio',
|
||||||
'--enable-raw',
|
'--enable-raw',
|
||||||
'--enable-readline',
|
'--enable-readline',
|
||||||
'--enable-reflow-perf',
|
'--enable-reflow-perf',
|
||||||
|
|
|
||||||
|
|
@ -910,7 +910,9 @@ signal.h
|
||||||
SimpleGameSound.h
|
SimpleGameSound.h
|
||||||
SIOUX.h
|
SIOUX.h
|
||||||
size_t.h
|
size_t.h
|
||||||
|
#ifdef MOZ_SNDIO
|
||||||
sndio.h
|
sndio.h
|
||||||
|
#endif
|
||||||
someincludefile.h
|
someincludefile.h
|
||||||
Sound.h
|
Sound.h
|
||||||
soundcard.h
|
soundcard.h
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ if CONFIG['MOZ_JACK']:
|
||||||
]
|
]
|
||||||
DEFINES['USE_JACK'] = True
|
DEFINES['USE_JACK'] = True
|
||||||
|
|
||||||
if CONFIG['OS_ARCH'] == 'OpenBSD':
|
if CONFIG['MOZ_SNDIO']:
|
||||||
SOURCES += [
|
SOURCES += [
|
||||||
'cubeb_sndio.c',
|
'cubeb_sndio.c',
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'uikit':
|
||||||
'-framework CoreFoundation',
|
'-framework CoreFoundation',
|
||||||
'-framework AudioToolbox',
|
'-framework AudioToolbox',
|
||||||
]
|
]
|
||||||
elif CONFIG['OS_TARGET'] == 'OpenBSD':
|
elif CONFIG['MOZ_SNDIO']:
|
||||||
OS_LIBS += [
|
OS_LIBS += [
|
||||||
'sndio',
|
'sndio',
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -3150,6 +3150,23 @@ fi
|
||||||
|
|
||||||
AC_SUBST(MOZ_PULSEAUDIO)
|
AC_SUBST(MOZ_PULSEAUDIO)
|
||||||
|
|
||||||
|
dnl ========================================================
|
||||||
|
dnl = Enable sndio
|
||||||
|
dnl ========================================================
|
||||||
|
MOZ_ARG_ENABLE_BOOL(sndio,
|
||||||
|
[ --enable-sndio Enable sndio support],
|
||||||
|
MOZ_SNDIO=1,
|
||||||
|
MOZ_SNDIO= )
|
||||||
|
|
||||||
|
if test -n "$MOZ_SNDIO"; then
|
||||||
|
AC_DEFINE(MOZ_SNDIO)
|
||||||
|
MOZ_CHECK_HEADER([sndio.h], [],
|
||||||
|
AC_MSG_ERROR(
|
||||||
|
[--enable-sndio specified but it requires sndio development headers]))
|
||||||
|
AC_DEFINE(MOZ_SNDIO)
|
||||||
|
fi
|
||||||
|
AC_SUBST(MOZ_SNDIO)
|
||||||
|
|
||||||
dnl ========================================================
|
dnl ========================================================
|
||||||
dnl NegotiateAuth
|
dnl NegotiateAuth
|
||||||
dnl ========================================================
|
dnl ========================================================
|
||||||
|
|
|
||||||
|
|
@ -241,7 +241,7 @@ OS_LIBS += CONFIG['ICONV_LIBS']
|
||||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('cocoa', 'uikit'):
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('cocoa', 'uikit'):
|
||||||
OS_LIBS += CONFIG['TK_LIBS']
|
OS_LIBS += CONFIG['TK_LIBS']
|
||||||
|
|
||||||
if CONFIG['OS_ARCH'] == 'OpenBSD':
|
if CONFIG['MOZ_SNDIO']:
|
||||||
OS_LIBS += [
|
OS_LIBS += [
|
||||||
'sndio',
|
'sndio',
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue