mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
topology: autotools: Add build support for topology core
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
1d1dff5676
commit
fec1e8f253
4 changed files with 38 additions and 1 deletions
|
|
@ -380,6 +380,9 @@ AC_ARG_ENABLE(seq,
|
||||||
AC_ARG_ENABLE(ucm,
|
AC_ARG_ENABLE(ucm,
|
||||||
AS_HELP_STRING([--disable-ucm], [disable the use-case-manager component]),
|
AS_HELP_STRING([--disable-ucm], [disable the use-case-manager component]),
|
||||||
[build_ucm="$enableval"], [build_ucm="yes"])
|
[build_ucm="$enableval"], [build_ucm="yes"])
|
||||||
|
AC_ARG_ENABLE(topology,
|
||||||
|
AS_HELP_STRING([--disable-topology], [disable the DSP topology component]),
|
||||||
|
[build_topology="$enableval"], [build_topology="yes"])
|
||||||
AC_ARG_ENABLE(alisp,
|
AC_ARG_ENABLE(alisp,
|
||||||
AS_HELP_STRING([--disable-alisp], [disable the alisp component]),
|
AS_HELP_STRING([--disable-alisp], [disable the alisp component]),
|
||||||
[build_alisp="$enableval"], [build_alisp="yes"])
|
[build_alisp="$enableval"], [build_alisp="yes"])
|
||||||
|
|
@ -422,6 +425,7 @@ AM_CONDITIONAL([BUILD_RAWMIDI], [test x$build_rawmidi = xyes])
|
||||||
AM_CONDITIONAL([BUILD_HWDEP], [test x$build_hwdep = xyes])
|
AM_CONDITIONAL([BUILD_HWDEP], [test x$build_hwdep = xyes])
|
||||||
AM_CONDITIONAL([BUILD_SEQ], [test x$build_seq = xyes])
|
AM_CONDITIONAL([BUILD_SEQ], [test x$build_seq = xyes])
|
||||||
AM_CONDITIONAL([BUILD_UCM], [test x$build_ucm = xyes])
|
AM_CONDITIONAL([BUILD_UCM], [test x$build_ucm = xyes])
|
||||||
|
AM_CONDITIONAL([BUILD_TOPOLOGY], [test x$build_topology = xyes])
|
||||||
AM_CONDITIONAL([BUILD_ALISP], [test x$build_alisp = xyes])
|
AM_CONDITIONAL([BUILD_ALISP], [test x$build_alisp = xyes])
|
||||||
AM_CONDITIONAL([BUILD_PYTHON], [test x$build_python = xyes])
|
AM_CONDITIONAL([BUILD_PYTHON], [test x$build_python = xyes])
|
||||||
|
|
||||||
|
|
@ -443,6 +447,9 @@ fi
|
||||||
if test "$build_ucm" = "yes"; then
|
if test "$build_ucm" = "yes"; then
|
||||||
AC_DEFINE([BUILD_UCM], "1", [Build UCM component])
|
AC_DEFINE([BUILD_UCM], "1", [Build UCM component])
|
||||||
fi
|
fi
|
||||||
|
if test "$build_topology" = "yes"; then
|
||||||
|
AC_DEFINE([BUILD_TOPOLOGY], "1", [Build DSP Topology component])
|
||||||
|
fi
|
||||||
|
|
||||||
dnl PCM Plugins
|
dnl PCM Plugins
|
||||||
|
|
||||||
|
|
@ -643,7 +650,7 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \
|
||||||
src/pcm/Makefile src/pcm/scopes/Makefile \
|
src/pcm/Makefile src/pcm/scopes/Makefile \
|
||||||
src/rawmidi/Makefile src/timer/Makefile \
|
src/rawmidi/Makefile src/timer/Makefile \
|
||||||
src/hwdep/Makefile src/seq/Makefile src/ucm/Makefile \
|
src/hwdep/Makefile src/seq/Makefile src/ucm/Makefile \
|
||||||
src/alisp/Makefile \
|
src/alisp/Makefile src/topology/Makefile \
|
||||||
src/conf/Makefile src/conf/alsa.conf.d/Makefile \
|
src/conf/Makefile src/conf/alsa.conf.d/Makefile \
|
||||||
src/conf/cards/Makefile \
|
src/conf/cards/Makefile \
|
||||||
src/conf/pcm/Makefile \
|
src/conf/pcm/Makefile \
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,10 @@ if BUILD_UCM
|
||||||
alsainclude_HEADERS += use-case.h
|
alsainclude_HEADERS += use-case.h
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if BUILD_TOPOLOGY
|
||||||
|
alsainclude_HEADERS += topology.h
|
||||||
|
endif
|
||||||
|
|
||||||
if BUILD_ALISP
|
if BUILD_ALISP
|
||||||
alsainclude_HEADERS += alisp.h
|
alsainclude_HEADERS += alisp.h
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,10 @@ if BUILD_UCM
|
||||||
SUBDIRS += ucm
|
SUBDIRS += ucm
|
||||||
libasound_la_LIBADD += ucm/libucm.la
|
libasound_la_LIBADD += ucm/libucm.la
|
||||||
endif
|
endif
|
||||||
|
if BUILD_TOPOLOGY
|
||||||
|
SUBDIRS += topology
|
||||||
|
libasound_la_LIBADD += topology/libtopology.la
|
||||||
|
endif
|
||||||
if BUILD_ALISP
|
if BUILD_ALISP
|
||||||
SUBDIRS += alisp
|
SUBDIRS += alisp
|
||||||
libasound_la_LIBADD += alisp/libalisp.la
|
libasound_la_LIBADD += alisp/libalisp.la
|
||||||
|
|
@ -81,6 +85,9 @@ seq/libseq.la:
|
||||||
ucm/libucm.la:
|
ucm/libucm.la:
|
||||||
$(MAKE) -C ucm libucm.la
|
$(MAKE) -C ucm libucm.la
|
||||||
|
|
||||||
|
topology/libtopology.la:
|
||||||
|
$(MAKE) -C topology libtopology.la
|
||||||
|
|
||||||
instr/libinstr.la:
|
instr/libinstr.la:
|
||||||
$(MAKE) -C instr libinstr.la
|
$(MAKE) -C instr libinstr.la
|
||||||
|
|
||||||
|
|
|
||||||
19
src/topology/Makefile.am
Normal file
19
src/topology/Makefile.am
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
EXTRA_LTLIBRARIES = libtopology.la
|
||||||
|
|
||||||
|
libtopology_la_SOURCES =\
|
||||||
|
parser.c \
|
||||||
|
builder.c \
|
||||||
|
ctl.c \
|
||||||
|
dapm.c \
|
||||||
|
pcm.c \
|
||||||
|
data.c \
|
||||||
|
text.c \
|
||||||
|
channel.c \
|
||||||
|
ops.c \
|
||||||
|
elem.c
|
||||||
|
|
||||||
|
noinst_HEADERS = tplg_local.h
|
||||||
|
|
||||||
|
all: libtopology.la
|
||||||
|
|
||||||
|
AM_CPPFLAGS=-I$(top_srcdir)/include
|
||||||
Loading…
Add table
Add a link
Reference in a new issue