[Python-checkins] python/dist/src/Mac/scripts genpluginprojects.py,1.30,1.31

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Thu, 23 May 2002 15:33:58 -0700


Update of /cvsroot/python/python/dist/src/Mac/scripts
In directory usw-pr-cvs1:/tmp/cvs-serv2992/Python/Mac/scripts

Modified Files:
	genpluginprojects.py 
Log Message:
Allow the shared library initialization routine to be overridden with an initialize=xxx argument.

Should fix #492465.

Index: genpluginprojects.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/scripts/genpluginprojects.py,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** genpluginprojects.py	24 Mar 2002 22:59:16 -0000	1.30
--- genpluginprojects.py	23 May 2002 22:33:56 -0000	1.31
***************
*** 37,41 ****
  		libraries=[], extradirs=[],
  		extraexportsymbols=[], outputdir=":::Lib:lib-dynload",
! 		libraryflags=None, stdlibraryflags=None, prefixname=None):
  	if architecture == "all":
  		# For the time being we generate two project files. Not as nice as
--- 37,42 ----
  		libraries=[], extradirs=[],
  		extraexportsymbols=[], outputdir=":::Lib:lib-dynload",
! 		libraryflags=None, stdlibraryflags=None, prefixname=None,
! 		initialize=None):
  	if architecture == "all":
  		# For the time being we generate two project files. Not as nice as
***************
*** 43,50 ****
  		genpluginproject("ppc", module, project, projectdir, sources, sourcedirs,
  				libraries, extradirs, extraexportsymbols, outputdir, libraryflags,
! 				stdlibraryflags, prefixname)
  		genpluginproject("carbon", module, project, projectdir, sources, sourcedirs,
  				libraries, extradirs, extraexportsymbols, outputdir, libraryflags,
! 				stdlibraryflags, prefixname)
  		return
  	templatename = "template-%s" % architecture
--- 44,51 ----
  		genpluginproject("ppc", module, project, projectdir, sources, sourcedirs,
  				libraries, extradirs, extraexportsymbols, outputdir, libraryflags,
! 				stdlibraryflags, prefixname, initialize)
  		genpluginproject("carbon", module, project, projectdir, sources, sourcedirs,
  				libraries, extradirs, extraexportsymbols, outputdir, libraryflags,
! 				stdlibraryflags, prefixname, initialize)
  		return
  	templatename = "template-%s" % architecture
***************
*** 100,103 ****
--- 101,106 ----
  	if stdlibraryflags:
  		dict['stdlibraryflags'] = stdlibraryflags
+ 	if initialize:
+ 		dict['initialize'] = initialize
  	mkcwproject.mkproject(os.path.join(projectdir, project), module, dict, 
  			force=FORCEREBUILD, templatename=templatename)