diff Mac/scripts/genpluginprojects.py @ 23535:8d946c9339e8 legacy-trunk

Allow the shared library initialization routine to be overridden with an initialize=xxx argument. Should fix #492465.
author Jack Jansen <jack.jansen@cwi.nl>
date Thu, 23 May 2002 22:34:18 +0000
parents c8165758a6de
children 913570ab0737
line wrap: on
line diff
--- a/Mac/scripts/genpluginprojects.py	Thu May 23 22:18:13 2002 +0000
+++ b/Mac/scripts/genpluginprojects.py	Thu May 23 22:34:18 2002 +0000
@@ -36,16 +36,17 @@
 		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 @@
 		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)