package/alsa-lib: smixer-python module supports python3
Add simple mixer python bindings to build when "Python support for alsa-lib" is active. smixer-python is the only python module which exists in alsa-lib. It is compatible with Python2 and Python3. Signed-off-by: Illia Bitkov <illia.bitkov@mind.be> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> (cherry picked from commit fde3bf94b105d94d3d9a04acb11ee31f6e73f11d) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
5f8e900d5e
commit
a3f3c3c417
@@ -22,7 +22,7 @@ if BR2_PACKAGE_ALSA_LIB
|
|||||||
|
|
||||||
config BR2_PACKAGE_ALSA_LIB_PYTHON
|
config BR2_PACKAGE_ALSA_LIB_PYTHON
|
||||||
bool "Python support for alsa-lib"
|
bool "Python support for alsa-lib"
|
||||||
depends on BR2_PACKAGE_PYTHON
|
depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
|
||||||
help
|
help
|
||||||
Add python support for alsa-lib.
|
Add python support for alsa-lib.
|
||||||
Python will be built and libpython will be installed
|
Python will be built and libpython will be installed
|
||||||
|
|||||||
@@ -57,12 +57,22 @@ ALSA_LIB_CONF_OPTS += --disable-old-symbols
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_ALSA_LIB_PYTHON),y)
|
ifeq ($(BR2_PACKAGE_ALSA_LIB_PYTHON),y)
|
||||||
|
ALSA_LIB_CONF_OPTS += \
|
||||||
|
--enable-mixer-pymods
|
||||||
|
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
||||||
ALSA_LIB_CONF_OPTS += \
|
ALSA_LIB_CONF_OPTS += \
|
||||||
--with-pythonlibs=-lpython$(PYTHON_VERSION_MAJOR) \
|
--with-pythonlibs=-lpython$(PYTHON_VERSION_MAJOR) \
|
||||||
--with-pythonincludes=$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)
|
--with-pythonincludes=$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)
|
||||||
ALSA_LIB_CFLAGS += -I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)
|
ALSA_LIB_CFLAGS += -I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)
|
||||||
ALSA_LIB_DEPENDENCIES = python
|
ALSA_LIB_DEPENDENCIES = python
|
||||||
else
|
else
|
||||||
|
ALSA_LIB_CONF_OPTS += \
|
||||||
|
--with-pythonlibs=-lpython$(PYTHON3_VERSION_MAJOR) \
|
||||||
|
--with-pythonincludes=$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)
|
||||||
|
ALSA_LIB_CFLAGS += -I$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)
|
||||||
|
ALSA_LIB_DEPENDENCIES = python3
|
||||||
|
endif
|
||||||
|
else
|
||||||
ALSA_LIB_CONF_OPTS += --disable-python
|
ALSA_LIB_CONF_OPTS += --disable-python
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user