summaryrefslogtreecommitdiffstats
path: root/Mac/scripts
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-05-23 22:34:18 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-05-23 22:34:18 (GMT)
commitb66e1a3dd2ca81c793c84ab436e08670980ac73d (patch)
tree270f5223e0a54bd0cabeb036b60c7cfc5966487d /Mac/scripts
parentdc74568782914abf5c54c9579246f950bb714378 (diff)
downloadcpython-b66e1a3dd2ca81c793c84ab436e08670980ac73d.zip
cpython-b66e1a3dd2ca81c793c84ab436e08670980ac73d.tar.gz
cpython-b66e1a3dd2ca81c793c84ab436e08670980ac73d.tar.bz2
Allow the shared library initialization routine to be overridden with an initialize=xxx argument.
Should fix #492465.
Diffstat (limited to 'Mac/scripts')
-rw-r--r--Mac/scripts/genpluginprojects.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/Mac/scripts/genpluginprojects.py b/Mac/scripts/genpluginprojects.py
index 1286993..3e2e443 100644
--- a/Mac/scripts/genpluginprojects.py
+++ b/Mac/scripts/genpluginprojects.py
@@ -36,16 +36,17 @@ def genpluginproject(architecture, module,
sources=[], sourcedirs=[],
libraries=[], extradirs=[],
extraexportsymbols=[], outputdir=":::Lib:lib-dynload",
- libraryflags=None, stdlibraryflags=None, prefixname=None):
+ libraryflags=None, stdlibraryflags=None, prefixname=None,
+ initialize=None):
if architecture == "all":
# For the time being we generate two project files. Not as nice as
# a single multitarget project, but easier to implement for now.
genpluginproject("ppc", module, project, projectdir, sources, sourcedirs,
libraries, extradirs, extraexportsymbols, outputdir, libraryflags,
- stdlibraryflags, prefixname)
+ stdlibraryflags, prefixname, initialize)
genpluginproject("carbon", module, project, projectdir, sources, sourcedirs,
libraries, extradirs, extraexportsymbols, outputdir, libraryflags,
- stdlibraryflags, prefixname)
+ stdlibraryflags, prefixname, initialize)
return
templatename = "template-%s" % architecture
targetname = "%s.%s" % (module, architecture)
@@ -99,6 +100,8 @@ def genpluginproject(architecture, module,
dict['libraryflags'] = libraryflags
if stdlibraryflags:
dict['stdlibraryflags'] = stdlibraryflags
+ if initialize:
+ dict['initialize'] = initialize
mkcwproject.mkproject(os.path.join(projectdir, project), module, dict,
force=FORCEREBUILD, templatename=templatename)