summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-23 17:26:56 -0500
committermidipix <writeonce@midipix.org>2018-12-23 20:31:21 -0500
commitfeb6bdda2186ec0b0d1134b2da13732f35705557 (patch)
treefb45b57c6414308c132663cadeab3afa3f452a79 /profiles
parent23670adefe79a809600afe9d6ba4e1266df59181 (diff)
downloadsbpython3-feb6bdda2186ec0b0d1134b2da13732f35705557.tar.bz2
sbpython3-feb6bdda2186ec0b0d1134b2da13732f35705557.tar.xz
project: support variant-specific header-, source-, and extension lists.
Diffstat (limited to 'profiles')
-rw-r--r--profiles/linkage/inittab.h163
-rw-r--r--profiles/linkage/pycompile.h24
-rw-r--r--profiles/linkage/static.h71
-rw-r--r--profiles/pyexts/subsets.mk145
4 files changed, 0 insertions, 403 deletions
diff --git a/profiles/linkage/inittab.h b/profiles/linkage/inittab.h
deleted file mode 100644
index d49c4cb..0000000
--- a/profiles/linkage/inittab.h
+++ /dev/null
@@ -1,163 +0,0 @@
-#ifndef PY_LINKAGE_INITTAB_H
-#define PY_LINKAGE_INITTAB_H
-
-#define PY_CORE_INIT(x) extern void x##_Init(void)
-#define PY_INIT_FUNC(x) extern void PyInit_##x(void)
-#define PY_INIT_PTR(x) void (*x)(void)
-
-#ifdef PY_ALL_STATIC
-#include "static.h"
-#endif
-
-#ifdef PY_FOR_PYCOMPILE
-#include "pycompile.h"
-#endif
-
-struct _inittab {
- char * name;
- PY_INIT_PTR(initfunc);
-};
-
-PY_CORE_INIT(_PyWarnings);
-PY_CORE_INIT(PyMarshal);
-
-PY_INIT_FUNC(_ast);
-PY_INIT_FUNC(_string);
-PY_INIT_FUNC(gc);
-PY_INIT_FUNC(imp);
-
-PY_INIT_FUNC(_codecs);
-PY_INIT_FUNC(_collections);
-PY_INIT_FUNC(_functools);
-PY_INIT_FUNC(_io);
-PY_INIT_FUNC(_locale);
-PY_INIT_FUNC(_operator);
-PY_INIT_FUNC(_signal);
-PY_INIT_FUNC(_sre);
-PY_INIT_FUNC(_stat);
-PY_INIT_FUNC(_symtable);
-PY_INIT_FUNC(_thread);
-PY_INIT_FUNC(_tracemalloc);
-PY_INIT_FUNC(_weakref);
-
-PY_INIT_FUNC(atexit);
-PY_INIT_FUNC(errno);
-PY_INIT_FUNC(faulthandler);
-PY_INIT_FUNC(itertools);
-PY_INIT_FUNC(posix);
-PY_INIT_FUNC(pwd);
-PY_INIT_FUNC(time);
-PY_INIT_FUNC(xxsubtype);
-PY_INIT_FUNC(zipimport);
-
-#define PY_IMPORT_INITTAB_BASE \
- {"builtins", 0}, \
- {"sys", 0}, \
- {"_ast", PyInit__ast}, \
- {"_string", PyInit__string}, \
- {"_imp", PyInit_imp}, \
- {"gc", PyInit_gc}, \
- {"marshal", PyMarshal_Init}, \
- {"_warnings", _PyWarnings_Init}
-
-
-#define PY_IMPORT_INITTAB_COMMON \
- {"_codecs", PyInit__codecs}, \
- {"_collections", PyInit__collections}, \
- {"_functools", PyInit__functools}, \
- {"_io", PyInit__io}, \
- {"_locale", PyInit__locale}, \
- {"_operator", PyInit__operator}, \
- {"_signal", PyInit__signal}, \
- {"_sre", PyInit__sre}, \
- {"_stat", PyInit__stat}, \
- {"_symtable", PyInit__symtable}, \
- {"_thread", PyInit__thread}, \
- {"_tracemalloc", PyInit__tracemalloc}, \
- {"_weakref", PyInit__weakref}, \
- {"atexit", PyInit_atexit}, \
- {"errno", PyInit_errno}, \
- {"faulthandler", PyInit_faulthandler}, \
- {"itertools", PyInit_itertools}, \
- {"posix", PyInit_posix}, \
- {"pwd", PyInit_pwd}, \
- {"time", PyInit_time}, \
- {"xxsubtype", PyInit_xxsubtype}, \
- {"zipimport", PyInit_zipimport}
-
-
-#define PY_IMPORT_INITTAB_ANYOS_CORE \
- {"_asyncio", PyInit__asyncio}, \
- {"_bisect", PyInit__bisect}, \
- {"_blake2", PyInit__blake2}, \
- {"_bz2", PyInit__bz2}, \
- {"_codecs_cn", PyInit__codecs_cn}, \
- {"_codecs_hk", PyInit__codecs_hk}, \
- {"_codecs_iso2022", PyInit__codecs_iso2022}, \
- {"_codecs_jp", PyInit__codecs_jp}, \
- {"_codecs_kr", PyInit__codecs_kr}, \
- {"_codecs_tw", PyInit__codecs_tw}, \
- {"_crypt", PyInit__crypt}, \
- {"_csv", PyInit__csv}, \
- {"_ctypes", PyInit__ctypes}, \
- {"_ctypes_test", PyInit__ctypes_test}, \
- {"_curses", PyInit__curses}, \
- {"_curses_panel", PyInit__curses_panel}, \
- {"_datetime", PyInit__datetime}, \
- {"_dbm", PyInit__dbm}, \
- {"_decimal", PyInit__decimal}, \
- {"_elementtree", PyInit__elementtree}, \
- {"_gdbm", PyInit__gdbm}, \
- {"_hashlib", PyInit__hashlib}, \
- {"_heapq", PyInit__heapq}, \
- {"_json", PyInit__json}, \
- {"_lsprof", PyInit__lsprof}, \
- {"_lzma", PyInit__lzma}, \
- {"_md5", PyInit__md5}, \
- {"_multibytecodec", PyInit__multibytecodec}, \
- {"_multiprocessing", PyInit__multiprocessing}, \
- {"_opcode", PyInit__opcode}, \
- {"_pickle", PyInit__pickle}, \
- {"_posixsubprocess", PyInit__posixsubprocess}, \
- {"_random", PyInit__random}, \
- {"_sha1", PyInit__sha1}, \
- {"_sha256", PyInit__sha256}, \
- {"_sha3", PyInit__sha3}, \
- {"_sha512", PyInit__sha512}, \
- {"_socket", PyInit__socket}, \
- {"_sqlite3", PyInit__sqlite3}, \
- {"_ssl", PyInit__ssl}, \
- {"_struct", PyInit__struct}, \
- {"_testbuffer", PyInit__testbuffer}, \
- {"_testcapi", PyInit__testcapi}, \
- {"_testimportmultiple", PyInit__testimportmultiple}, \
- {"_testmultiphase", PyInit__testmultiphase}, \
- {"array", PyInit_array}, \
- {"binascii", PyInit_binascii}, \
- {"cmath", PyInit_cmath}, \
- {"fcntl", PyInit_fcntl}, \
- {"grp", PyInit_grp}, \
- {"math", PyInit_math}, \
- {"mmap", PyInit_mmap}, \
- {"parser", PyInit_parser}, \
- {"pyexpat", PyInit_pyexpat}, \
- {"readline", PyInit_readline}, \
- {"resource", PyInit_resource}, \
- {"select", PyInit_select}, \
- {"spwd", PyInit_spwd}, \
- {"syslog", PyInit_syslog}, \
- {"termios", PyInit_termios}, \
- {"unicodedata", PyInit_unicodedata}, \
- {"xxlimited", PyInit_xxlimited}, \
- {"zlib", PyInit_zlib}
-
-
-#define PY_IMPORT_INITTAB_ANYOS_AUDIO \
- {"audioop", PyInit_audioop}, \
- {"ossaudiodev", PyInit_ossaudiodev}
-
-
-#define PY_IMPORT_INITTAB_ANYOS_TCLTK \
- {"_tkinter", PyInit__tkinter}
-
-#endif
diff --git a/profiles/linkage/pycompile.h b/profiles/linkage/pycompile.h
deleted file mode 100644
index ad74185..0000000
--- a/profiles/linkage/pycompile.h
+++ /dev/null
@@ -1,24 +0,0 @@
-#ifndef PY_LINKAGE_PYCOMPILE_H
-#define PY_LINKAGE_PYCOMPILE_H
-
-PY_INIT_FUNC(_decimal);
-PY_INIT_FUNC(_elementtree);
-PY_INIT_FUNC(_heapq);
-PY_INIT_FUNC(_posixsubprocess);
-
-PY_INIT_FUNC(math);
-PY_INIT_FUNC(readline);
-PY_INIT_FUNC(select);
-PY_INIT_FUNC(termios);
-
-#define PY_IMPORT_INITTAB_PYCOMPILE_CORE \
- {"_decimal", PyInit__decimal}, \
- {"_elementtree", PyInit__elementtree}, \
- {"_heapq", PyInit__heapq}, \
- {"_posixsubprocess", PyInit__posixsubprocess}, \
- {"math", PyInit_math}, \
- {"readline", PyInit_readline}, \
- {"select", PyInit_select}, \
- {"termios", PyInit_termios}
-
-#endif
diff --git a/profiles/linkage/static.h b/profiles/linkage/static.h
deleted file mode 100644
index 1290a95..0000000
--- a/profiles/linkage/static.h
+++ /dev/null
@@ -1,71 +0,0 @@
-#ifndef PY_LINKAGE_STATIC_H
-#define PY_LINKAGE_STATIC_H
-
-PY_INIT_FUNC(_asyncio);
-PY_INIT_FUNC(_bisect);
-PY_INIT_FUNC(_blake2);
-PY_INIT_FUNC(_bz2);
-PY_INIT_FUNC(_codecs_cn);
-PY_INIT_FUNC(_codecs_hk);
-PY_INIT_FUNC(_codecs_iso2022);
-PY_INIT_FUNC(_codecs_jp);
-PY_INIT_FUNC(_codecs_kr);
-PY_INIT_FUNC(_codecs_tw);
-PY_INIT_FUNC(_crypt);
-PY_INIT_FUNC(_csv);
-PY_INIT_FUNC(_ctypes);
-PY_INIT_FUNC(_ctypes_test);
-PY_INIT_FUNC(_curses);
-PY_INIT_FUNC(_curses_panel);
-PY_INIT_FUNC(_datetime);
-PY_INIT_FUNC(_dbm);
-PY_INIT_FUNC(_decimal);
-PY_INIT_FUNC(_elementtree);
-PY_INIT_FUNC(_gdbm);
-PY_INIT_FUNC(_hashlib);
-PY_INIT_FUNC(_heapq);
-PY_INIT_FUNC(_json);
-PY_INIT_FUNC(_lsprof);
-PY_INIT_FUNC(_lzma);
-PY_INIT_FUNC(_md5);
-PY_INIT_FUNC(_multibytecodec);
-PY_INIT_FUNC(_multiprocessing);
-PY_INIT_FUNC(_opcode);
-PY_INIT_FUNC(_pickle);
-PY_INIT_FUNC(_posixsubprocess);
-PY_INIT_FUNC(_random);
-PY_INIT_FUNC(_sha1);
-PY_INIT_FUNC(_sha256);
-PY_INIT_FUNC(_sha3);
-PY_INIT_FUNC(_sha512);
-PY_INIT_FUNC(_socket);
-PY_INIT_FUNC(_sqlite3);
-PY_INIT_FUNC(_ssl);
-PY_INIT_FUNC(_struct);
-PY_INIT_FUNC(_testbuffer);
-PY_INIT_FUNC(_testcapi);
-PY_INIT_FUNC(_testimportmultiple);
-PY_INIT_FUNC(_testmultiphase);
-PY_INIT_FUNC(_tkinter);
-PY_INIT_FUNC(array);
-PY_INIT_FUNC(audioop);
-PY_INIT_FUNC(binascii);
-PY_INIT_FUNC(cmath);
-PY_INIT_FUNC(fcntl);
-PY_INIT_FUNC(grp);
-PY_INIT_FUNC(math);
-PY_INIT_FUNC(mmap);
-PY_INIT_FUNC(ossaudiodev);
-PY_INIT_FUNC(parser);
-PY_INIT_FUNC(pyexpat);
-PY_INIT_FUNC(readline);
-PY_INIT_FUNC(resource);
-PY_INIT_FUNC(select);
-PY_INIT_FUNC(spwd);
-PY_INIT_FUNC(syslog);
-PY_INIT_FUNC(termios);
-PY_INIT_FUNC(unicodedata);
-PY_INIT_FUNC(xxlimited);
-PY_INIT_FUNC(zlib);
-
-#endif
diff --git a/profiles/pyexts/subsets.mk b/profiles/pyexts/subsets.mk
deleted file mode 100644
index 6d5baba..0000000
--- a/profiles/pyexts/subsets.mk
+++ /dev/null
@@ -1,145 +0,0 @@
-# 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_UNICODEDATA_SHARED) \
- $(PYEXT_XXLIMITED_SHARED) \
- $(PYEXT_ZLIB_SHARED) \
-
-PYEXT_SUBSET_SHARED_ANYOS_AUDIO = \
- $(PYEXT_AUDIOOP_SHARED) \
- $(PYEXT_OSSAUDIODEV_SHARED) \
-
-PYEXT_SUBSET_SHARED_ANYOS_TCLTK = \
- $(PYEXT_TKINTER_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) \