summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-16 13:47:26 -0500
committermidipix <writeonce@midipix.org>2018-12-18 20:38:40 -0500
commit11abc8ba2715cddf0a48473a83bda11b8c8e3232 (patch)
tree9c761f689d2d51c92a65d5120a726c84f3ee4fe0
parent6dc580e25dd8cf717a351c3a72b8c1dcf79062e0 (diff)
downloadsbpython3-11abc8ba2715cddf0a48473a83bda11b8c8e3232.tar.bz2
sbpython3-11abc8ba2715cddf0a48473a83bda11b8c8e3232.tar.xz
project: profiles: defined extension module subsets.
-rw-r--r--profiles/pyexts/subsets.mk143
-rw-r--r--project/extras.mk4
2 files changed, 147 insertions, 0 deletions
diff --git a/profiles/pyexts/subsets.mk b/profiles/pyexts/subsets.mk
new file mode 100644
index 0000000..9135e2f
--- /dev/null
+++ b/profiles/pyexts/subsets.mk
@@ -0,0 +1,143 @@
+# extension subsets: shared
+PYEXT_SUBSET_SHARED_ANYOS_CORE = \
+ $(PYEXT_ARRAY_SHARED) \
+ $(PYEXT_ASYNCIO_SHARED) \
+ $(PYEXT_BINASCII_SHARED) \
+ $(PYEXT_BISECT_SHARED) \
+ $(PYEXT_BLAKE2_SHARED) \
+ $(PYEXT_BZ2_SHARED) \
+ $(PYEXT_CMATH_SHARED) \
+ $(PYEXT_CODECS_CN_SHARED) \
+ $(PYEXT_CODECS_HK_SHARED) \
+ $(PYEXT_CODECS_ISO2022_SHARED) \
+ $(PYEXT_CODECS_JP_SHARED) \
+ $(PYEXT_CODECS_KR_SHARED) \
+ $(PYEXT_CODECS_TW_SHARED) \
+ $(PYEXT_CRYPT_SHARED) \
+ $(PYEXT_CSV_SHARED) \
+ $(PYEXT_CTYPES_SHARED) \
+ $(PYEXT_CTYPES_TEST_SHARED) \
+ $(PYEXT_CURSES_PANEL_SHARED) \
+ $(PYEXT_CURSES_SHARED) \
+ $(PYEXT_DATETIME_SHARED) \
+ $(PYEXT_DBM_SHARED) \
+ $(PYEXT_DECIMAL_SHARED) \
+ $(PYEXT_ELEMENTTREE_SHARED) \
+ $(PYEXT_FCNTL_SHARED) \
+ $(PYEXT_GDBM_SHARED) \
+ $(PYEXT_GRP_SHARED) \
+ $(PYEXT_HASHLIB_SHARED) \
+ $(PYEXT_HEAPQ_SHARED) \
+ $(PYEXT_JSON_SHARED) \
+ $(PYEXT_LSPROF_SHARED) \
+ $(PYEXT_LZMA_SHARED) \
+ $(PYEXT_MATH_SHARED) \
+ $(PYEXT_MD5_SHARED) \
+ $(PYEXT_MMAP_SHARED) \
+ $(PYEXT_MULTIBYTECODEC_SHARED) \
+ $(PYEXT_MULTIPROCESSING_SHARED) \
+ $(PYEXT_OPCODE_SHARED) \
+ $(PYEXT_PARSER_SHARED) \
+ $(PYEXT_PICKLE_SHARED) \
+ $(PYEXT_POSIXSUBPROCESS_SHARED) \
+ $(PYEXT_PYEXPAT_SHARED) \
+ $(PYEXT_RANDOM_SHARED) \
+ $(PYEXT_READLINE_SHARED) \
+ $(PYEXT_RESOURCE_SHARED) \
+ $(PYEXT_SELECT_SHARED) \
+ $(PYEXT_SHA1_SHARED) \
+ $(PYEXT_SHA256_SHARED) \
+ $(PYEXT_SHA3_SHARED) \
+ $(PYEXT_SHA512_SHARED) \
+ $(PYEXT_SOCKET_SHARED) \
+ $(PYEXT_SPWD_SHARED) \
+ $(PYEXT_SQLITE3_SHARED) \
+ $(PYEXT_SSL_SHARED) \
+ $(PYEXT_STRUCT_SHARED) \
+ $(PYEXT_SYSLOG_SHARED) \
+ $(PYEXT_TERMIOS_SHARED) \
+ $(PYEXT_TESTBUFFER_SHARED) \
+ $(PYEXT_TESTCAPI_SHARED) \
+ $(PYEXT_TESTIMPORTMULTIPLE_SHARED) \
+ $(PYEXT_TESTMULTIPHASE_SHARED) \
+ $(PYEXT_TKINTER_SHARED) \
+ $(PYEXT_UNICODEDATA_SHARED) \
+ $(PYEXT_XXLIMITED_SHARED) \
+ $(PYEXT_ZLIB_SHARED) \
+
+PYEXT_SUBSET_SHARED_ANYOS_AUDIO = \
+ $(PYEXT_AUDIOOP_SHARED) \
+ $(PYEXT_OSSAUDIODEV_SHARED) \
+
+# extension subsets: static
+PYEXT_SUBSET_STATIC_ANYOS_CORE = \
+ $(PYEXT_ARRAY_STATIC) \
+ $(PYEXT_ASYNCIO_STATIC) \
+ $(PYEXT_BINASCII_STATIC) \
+ $(PYEXT_BISECT_STATIC) \
+ $(PYEXT_BLAKE2_STATIC) \
+ $(PYEXT_BZ2_STATIC) \
+ $(PYEXT_CMATH_STATIC) \
+ $(PYEXT_CODECS_CN_STATIC) \
+ $(PYEXT_CODECS_HK_STATIC) \
+ $(PYEXT_CODECS_ISO2022_STATIC) \
+ $(PYEXT_CODECS_JP_STATIC) \
+ $(PYEXT_CODECS_KR_STATIC) \
+ $(PYEXT_CODECS_TW_STATIC) \
+ $(PYEXT_CRYPT_STATIC) \
+ $(PYEXT_CSV_STATIC) \
+ $(PYEXT_CTYPES_STATIC) \
+ $(PYEXT_CTYPES_TEST_STATIC) \
+ $(PYEXT_CURSES_PANEL_STATIC) \
+ $(PYEXT_CURSES_STATIC) \
+ $(PYEXT_DATETIME_STATIC) \
+ $(PYEXT_DBM_STATIC) \
+ $(PYEXT_DECIMAL_STATIC) \
+ $(PYEXT_ELEMENTTREE_STATIC) \
+ $(PYEXT_FCNTL_STATIC) \
+ $(PYEXT_GDBM_STATIC) \
+ $(PYEXT_GRP_STATIC) \
+ $(PYEXT_HASHLIB_STATIC) \
+ $(PYEXT_HEAPQ_STATIC) \
+ $(PYEXT_JSON_STATIC) \
+ $(PYEXT_LSPROF_STATIC) \
+ $(PYEXT_LZMA_STATIC) \
+ $(PYEXT_MATH_STATIC) \
+ $(PYEXT_MD5_STATIC) \
+ $(PYEXT_MMAP_STATIC) \
+ $(PYEXT_MULTIBYTECODEC_STATIC) \
+ $(PYEXT_MULTIPROCESSING_STATIC) \
+ $(PYEXT_OPCODE_STATIC) \
+ $(PYEXT_PARSER_STATIC) \
+ $(PYEXT_PICKLE_STATIC) \
+ $(PYEXT_POSIXSUBPROCESS_STATIC) \
+ $(PYEXT_PYEXPAT_STATIC) \
+ $(PYEXT_RANDOM_STATIC) \
+ $(PYEXT_READLINE_STATIC) \
+ $(PYEXT_RESOURCE_STATIC) \
+ $(PYEXT_SELECT_STATIC) \
+ $(PYEXT_SHA1_STATIC) \
+ $(PYEXT_SHA256_STATIC) \
+ $(PYEXT_SHA3_STATIC) \
+ $(PYEXT_SHA512_STATIC) \
+ $(PYEXT_SOCKET_STATIC) \
+ $(PYEXT_SPWD_STATIC) \
+ $(PYEXT_SQLITE3_STATIC) \
+ $(PYEXT_SSL_STATIC) \
+ $(PYEXT_STRUCT_STATIC) \
+ $(PYEXT_SYSLOG_STATIC) \
+ $(PYEXT_TERMIOS_STATIC) \
+ $(PYEXT_TESTBUFFER_STATIC) \
+ $(PYEXT_TESTCAPI_STATIC) \
+ $(PYEXT_TESTIMPORTMULTIPLE_STATIC) \
+ $(PYEXT_TESTMULTIPHASE_STATIC) \
+ $(PYEXT_UNICODEDATA_STATIC) \
+ $(PYEXT_XXLIMITED_STATIC) \
+ $(PYEXT_ZLIB_STATIC) \
+
+PYEXT_SUBSET_STATIC_ANYOS_AUDIO = \
+ $(PYEXT_AUDIOOP_STATIC) \
+ $(PYEXT_OSSAUDIODEV_STATIC) \
+
+PYEXT_SUBSET_STATIC_ANYOS_TCLTK = \
+ $(PYEXT_TKINTER_STATIC) \
diff --git a/project/extras.mk b/project/extras.mk
index dcac128..b2fe771 100644
--- a/project/extras.mk
+++ b/project/extras.mk
@@ -47,3 +47,7 @@ pyext/%$(OS_ARCHIVE_EXT):
# build rules for python's extension modules
include $(PROJECT_DIR)/project/pyexts.mk
+
+# shared extension modules: desired subset
+$(SHARED_APP): $(PYEXT_SHARED)
+$(STATIC_APP): $(PYEXT_STATIC)