mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-04 06:10:16 +03:00
libsoc: add Python bindings support
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> [Thomas: add --disable-python, use 'else ifeq'.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
1edf9fc194
commit
c6ba80ccae
@@ -11,4 +11,16 @@ LIBSOC_LICENSE_FILES = LICENCE
|
||||
LIBSOC_AUTORECONF = YES
|
||||
LIBSOC_INSTALL_STAGING = YES
|
||||
|
||||
# Install Python 2 bindings
|
||||
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
||||
LIBSOC_DEPENDENCIES += python
|
||||
LIBSOC_CONF_OPTS += --enable-python=2
|
||||
# Install Python 3 bindings
|
||||
else ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
||||
LIBSOC_DEPENDENCIES += python3
|
||||
LIBSOC_CONF_OPTS += --enable-python=3
|
||||
else
|
||||
LIBSOC_CONF_OPTS += --disable-python
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
Reference in New Issue
Block a user