mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
windows: simplify configure for cross-compilation
Refs #70869 Change-Id: I255c790c2a4da7bf1deec695f19c596ca4b60dca
This commit is contained in:

committed by
Guillaume Roguez

parent
017f7a2f97
commit
78a32ceed0
@ -264,6 +264,7 @@ if test "${HAVE_ANDROID}" = "1"; then
|
|||||||
fi
|
fi
|
||||||
AM_CONDITIONAL([BUILD_OPENSL], test "x$have_opensl" = "xyes")
|
AM_CONDITIONAL([BUILD_OPENSL], test "x$have_opensl" = "xyes")
|
||||||
|
|
||||||
|
if test "${SYS}" != "mingw32"; then
|
||||||
dnl Check for alsa development package - name: libasound2-dev
|
dnl Check for alsa development package - name: libasound2-dev
|
||||||
ALSA_MIN_VERSION=1.0
|
ALSA_MIN_VERSION=1.0
|
||||||
AC_ARG_WITH([alsa],
|
AC_ARG_WITH([alsa],
|
||||||
@ -275,9 +276,11 @@ AS_IF([test "x$with_alsa" = "xyes"], [
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED([HAVE_ALSA], `if test "x$with_alsa" = "xyes"; then echo 1; else echo 0; fi`, [Define if you have alsa])
|
AC_DEFINE_UNQUOTED([HAVE_ALSA], `if test "x$with_alsa" = "xyes"; then echo 1; else echo 0; fi`, [Define if you have alsa])
|
||||||
|
fi
|
||||||
AM_CONDITIONAL(BUILD_ALSA, test "x$with_alsa" = "xyes")
|
AM_CONDITIONAL(BUILD_ALSA, test "x$with_alsa" = "xyes")
|
||||||
|
|
||||||
|
|
||||||
|
if test "${SYS}" != "mingw32"; then
|
||||||
dnl Check for pulseaudio development package - name: libpulse-dev
|
dnl Check for pulseaudio development package - name: libpulse-dev
|
||||||
LIBPULSE_MIN_VERSION=0.9.15
|
LIBPULSE_MIN_VERSION=0.9.15
|
||||||
AC_ARG_WITH([pulse],
|
AC_ARG_WITH([pulse],
|
||||||
@ -290,6 +293,7 @@ AS_IF([test "x$with_pulse" = "xyes"], [
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED([HAVE_PULSE], `if test "x$with_pulse" = "xyes"; then echo 1; else echo 0; fi`, [Define if you have pulseaudio])
|
AC_DEFINE_UNQUOTED([HAVE_PULSE], `if test "x$with_pulse" = "xyes"; then echo 1; else echo 0; fi`, [Define if you have pulseaudio])
|
||||||
|
fi
|
||||||
AM_CONDITIONAL(BUILD_PULSE, test "x$with_pulse" = "xyes")
|
AM_CONDITIONAL(BUILD_PULSE, test "x$with_pulse" = "xyes")
|
||||||
|
|
||||||
AC_ARG_WITH([jack],
|
AC_ARG_WITH([jack],
|
||||||
@ -340,6 +344,7 @@ AS_IF([test "x$enable_coverage" = "xyes"], [
|
|||||||
|
|
||||||
# DBUSCPP
|
# DBUSCPP
|
||||||
dnl Check for dbuscpp, the C++ bindings for D-Bus
|
dnl Check for dbuscpp, the C++ bindings for D-Bus
|
||||||
|
if test "${SYS}" != "mingw32"; then
|
||||||
AC_ARG_WITH([dbus],
|
AC_ARG_WITH([dbus],
|
||||||
[AS_HELP_STRING([--without-dbus], [disable support for dbus])],
|
[AS_HELP_STRING([--without-dbus], [disable support for dbus])],
|
||||||
[],
|
[],
|
||||||
@ -361,7 +366,7 @@ AS_IF([test "x$with_dbus" = "xyes"], [
|
|||||||
AS_IF([test "x$CLANG" = "xyes"], [
|
AS_IF([test "x$CLANG" = "xyes"], [
|
||||||
AC_MSG_ERROR([dbus does not compile when clang is used, rerun with --without-dbus])
|
AC_MSG_ERROR([dbus does not compile when clang is used, rerun with --without-dbus])
|
||||||
]);
|
]);
|
||||||
|
fi
|
||||||
AM_CONDITIONAL(RING_DBUS, true)],
|
AM_CONDITIONAL(RING_DBUS, true)],
|
||||||
AM_CONDITIONAL(RING_DBUS, false));
|
AM_CONDITIONAL(RING_DBUS, false));
|
||||||
|
|
||||||
@ -447,6 +452,7 @@ CPPUNIT_MIN_VERSION=1.12
|
|||||||
PKG_CHECK_MODULES(CPPUNIT, cppunit >= ${CPPUNIT_MIN_VERSION}, AM_CONDITIONAL(BUILD_TEST, test 1 = 1 ), AM_CONDITIONAL(BUILD_TEST, test 0 = 1 ))
|
PKG_CHECK_MODULES(CPPUNIT, cppunit >= ${CPPUNIT_MIN_VERSION}, AM_CONDITIONAL(BUILD_TEST, test 1 = 1 ), AM_CONDITIONAL(BUILD_TEST, test 0 = 1 ))
|
||||||
|
|
||||||
|
|
||||||
|
if test "${SYS}" != "mingw32"; then
|
||||||
# GSM CODEC
|
# GSM CODEC
|
||||||
# required dependency(ies): libgsm
|
# required dependency(ies): libgsm
|
||||||
dnl check for libgsm1 (doesn't use pkg-config)
|
dnl check for libgsm1 (doesn't use pkg-config)
|
||||||
@ -463,6 +469,7 @@ AS_IF([test "x$with_gsm" != xno],
|
|||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED([HAVE_GSM], `if test "x$with_gsm" = "xyes"; then echo 1; else echo 0; fi`, [Define if you have libgsm])
|
AC_DEFINE_UNQUOTED([HAVE_GSM], `if test "x$with_gsm" = "xyes"; then echo 1; else echo 0; fi`, [Define if you have libgsm])
|
||||||
|
fi
|
||||||
AM_CONDITIONAL(BUILD_GSM, test "x$with_gsm" = "xyes" )
|
AM_CONDITIONAL(BUILD_GSM, test "x$with_gsm" = "xyes" )
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,7 +2,9 @@
|
|||||||
LIBAV_HASH := f851477889ae48e2f17073cf7486e1d5561b7ae4
|
LIBAV_HASH := f851477889ae48e2f17073cf7486e1d5561b7ae4
|
||||||
LIBAV_GITURL := git://git.libav.org/libav.git
|
LIBAV_GITURL := git://git.libav.org/libav.git
|
||||||
|
|
||||||
|
ifndef HAVE_WIN32
|
||||||
PKGS += libav
|
PKGS += libav
|
||||||
|
endif
|
||||||
|
|
||||||
#disable everything
|
#disable everything
|
||||||
#ensure to add this option first
|
#ensure to add this option first
|
||||||
|
Reference in New Issue
Block a user