summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am16
-rw-r--r--configure.ac51
-rw-r--r--src/lib/backends/alsa/alsa.c38
3 files changed, 99 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am
index b53efe8..2d3f147 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -46,6 +46,22 @@ src_lib_libepulse_la_LIBADD = @EFL_LIBS@ @PULSE_LIBS@
46src_lib_libepulse_la_LDFLAGS = -no-undefined -avoid-version 46src_lib_libepulse_la_LDFLAGS = -no-undefined -avoid-version
47src_lib_libepulse_la_LIBTOOLFLAGS = --tag=disable-static 47src_lib_libepulse_la_LIBTOOLFLAGS = --tag=disable-static
48 48
49if HAVE_ALSA_PKG
50backendalsapkgdir = $(libdir)/emix/alsa/$(MODULE_ARCH)
51backendalsapkg_LTLIBRARIES = src/lib/backends/alsa/module.la
52src_lib_backends_alsa_module_la_SOURCES = src/lib/backends/alsa/alsa.c
53src_lib_backends_alsa_module_la_CFLAGS = \
54 -DPACKAGE_DATA_DIR=\"$(pkgdatadir)/\" \
55 -DPACKAGE_BIN_DIR=\"$(bindir)\" \
56 -DPACKAGE_LIB_DIR=\"$(libdir)\" \
57 -I$(top_srcdir)/src/lib/ \
58 @EFL_CFLAGS@ \
59 @ALSA_CFLAGS@
60src_lib_backends_alsa_module_la_LIBADD = @EFL_LIBS@ @ALSA_LIBS@ $(top_builddir)/src/lib/libemix.la
61src_lib_backends_alsa_module_la_LDFLAGS = -module
62src_lib_backends_alsa_module_la_LIBTOOLFLAGS = --tag=disable-static
63endif
64
49bin_PROGRAMS = \ 65bin_PROGRAMS = \
50 src/bin/epulse 66 src/bin/epulse
51 67
diff --git a/configure.ac b/configure.ac
index edb739c..3af7e72 100644
--- a/configure.ac
+++ b/configure.ac
@@ -41,11 +41,48 @@ PKG_CHECK_MODULES([EFL],
41 enlightenment 41 enlightenment
42 ]) 42 ])
43 43
44PKG_CHECK_MODULES([PULSE], 44have_alsa_pkg="auto"
45 [ 45have_pulseaudio_pkg="auto"
46 libpulse-simple 46
47 libpulse 47if test "x${have_alsa_pkg}" = "xauto" -o "x${have_alsa_pkg}" = "xyes"; then
48 ]) 48 PKG_CHECK_MODULES([ALSA], [alsa],
49 [have_alsa_pkg="yes"],
50 [have_alsa_pkg="no"])
51fi
52
53AC_ARG_ENABLE([alsa],
54 [AC_HELP_STRING([--disable-alsa],
55 [Disable alsa support. @<:@default=enabled@:>@])],
56 [
57 if test "x${enableval}" = "xyes" ; then
58 have_alsa_pkg="yes"
59 else
60 have_alsa_pkg="no"
61 fi
62 ], [
63 have_alsa_pkg="yes"
64 ])
65AM_CONDITIONAL([HAVE_ALSA_PKG], [test "x${have_alsa_pkg}" = "xyes"])
66
67if test "x${have_pulseaudio_pkg}" = "xauto" -o "x${have_pulseaudio_pkg}" = "xyes"; then
68 PKG_CHECK_MODULES([PULSE], [libpulse-simple libpulse],
69 [have_pulseaudio_pkg="yes"],
70 [have_pulseaudio_pkg="no"])
71fi
72
73AC_ARG_ENABLE([pulseaudio],
74 [AC_HELP_STRING([--disable-pulseaudio],
75 [Disable pulseaudio support. @<:@default=enabled@:>@])],
76 [
77 if test "x${enableval}" = "xyes" ; then
78 have_pulseaudio_pkg="yes"
79 else
80 have_pulseaudio_pkg="no"
81 fi
82 ], [
83 have_pulseaudio_pkg="yes"
84 ])
85AM_CONDITIONAL([HAVE_PULSEAUDIO_PKG], [test "x${have_pulseaudio_pkg}" = "xyes"])
49 86
50release=$(pkg-config --variable=release enlightenment) 87release=$(pkg-config --variable=release enlightenment)
51MODULE_ARCH="$host_os-$host_cpu-$release" 88MODULE_ARCH="$host_os-$host_cpu-$release"
@@ -60,7 +97,7 @@ AC_ARG_ENABLE(homedir-install,
60) 97)
61 98
62AC_SUBST(pkgdir) 99AC_SUBST(pkgdir)
63AC_DEFINE_UNQUOTED(BACKENDS_DIR, "$prefix/lib/emix/backends", "Backends dir) 100AC_DEFINE_UNQUOTED(BACKENDS_DIR, "$prefix/lib/emix/", "Backends dir)
64 101
65# Checks for header files. 102# Checks for header files.
66 103
@@ -88,6 +125,8 @@ echo "Configuration Options Summary:"
88echo 125echo
89echo 126echo
90echo " edje_cc..................: ${edje_cc}" 127echo " edje_cc..................: ${edje_cc}"
128echo " pulseaudio ..............: ${have_pulseaudio_pkg}"
129echo " alsa ....................: ${have_alsa_pkg}"
91echo 130echo
92echo "Compilation................: make (or gmake)" 131echo "Compilation................: make (or gmake)"
93echo " CPPFLAGS.................: $CPPFLAGS" 132echo " CPPFLAGS.................: $CPPFLAGS"
diff --git a/src/lib/backends/alsa/alsa.c b/src/lib/backends/alsa/alsa.c
new file mode 100644
index 0000000..45fef8d
--- /dev/null
+++ b/src/lib/backends/alsa/alsa.c
@@ -0,0 +1,38 @@
1#include <Eina.h>
2#include <emix.h>
3
4static void
5_alsa_init(void)
6{
7}
8
9static void
10_alsa_shutdown(void)
11{
12}
13
14static Emix_Backend
15_alsa_backend = {
16 _alsa_init,
17 _alsa_shutdown,
18 NULL,
19 NULL,
20 NULL,
21 NULL,
22 NULL,
23 NULL,
24 NULL,
25 NULL,
26 NULL,
27 NULL,
28 NULL,
29 NULL,
30 NULL,
31 NULL
32};
33
34EAPI Emix_Backend *
35emix_backend_get(void)
36{
37 return &_alsa_backend;
38}