]> xenbits.xensource.com Git - unikraft/libs/python3.git/commitdiff
Config.uk: Add configuration options for extensions
authorCostin Lupu <costin.lupu@cs.pub.ro>
Wed, 16 Oct 2019 14:22:44 +0000 (17:22 +0300)
committerCostin Lupu <costin.lupu@cs.pub.ro>
Thu, 17 Oct 2019 12:26:38 +0000 (15:26 +0300)
We currently configure the following extensions: XML parsing with Expat lib,
decimal operations with libmpdec, SSL, UUID and zlib. Sqlite will be
automatically supported when the external library will be released.

Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
Config.uk

index 895c0c205d187c5bc540b9291ea4e51df19c9aa2..1e9ae12fdc675c3af89ad471b293d1216e45a018 100644 (file)
--- a/Config.uk
+++ b/Config.uk
@@ -36,4 +36,43 @@ config LIBPYTHON3_MAIN_FUNCTION
        bool "Provide main function"
        default n
 
+
+menuconfig LIBPYTHON3_EXTENSIONS
+       bool "Extensions"
+       default n
+
+if LIBPYTHON3_EXTENSIONS
+config LIBPYTHON3_EXTENSION_EXPAT
+       bool "Expat XML parser"
+       default y
+if LIBFFI
+config LIBPYTHON3_EXTENSION_CTYPES
+       bool "ctypes"
+       default y
+endif
+config LIBPYTHON3_EXTENSION_LIBMPDEC
+       bool "Decimal operations with libmpdec"
+       default y
+if LIBSQLITE
+config LIBPYTHON3_EXTENSION_SQLITE
+       bool "sqlite"
+       default y
+endif
+if LIBSSL
+config LIBPYTHON3_EXTENSION_SSL
+       bool "SSL"
+       default y
+endif
+if LIBUUID
+config LIBPYTHON3_EXTENSION_UUID
+       bool "UUID"
+       default y
+endif
+if LIBZLIB
+config LIBPYTHON3_EXTENSION_ZLIB
+       bool "zlib"
+       default y
+endif
+endif
+
 endif