From 0eba959ed328cb6433d67b7e0f31310ee2304ffc Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Sun, 3 Dec 2000 22:39:09 +0000 Subject: Added an extraexportsymbols option, to allow (you guessed it:-) extra export symbols to be specified. --- Mac/Lib/mkcwproject/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Mac/Lib/mkcwproject/__init__.py b/Mac/Lib/mkcwproject/__init__.py index a9e0562..ff5ddd9 100644 --- a/Mac/Lib/mkcwproject/__init__.py +++ b/Mac/Lib/mkcwproject/__init__.py @@ -16,7 +16,8 @@ def mkproject(outputfile, modulename, settings): # dictcopy['mac_projectxmlname'] = outputfile + '.xml' dictcopy['mac_exportname'] = os.path.split(outputfile)[1] + '.exp' - dictcopy['mac_outputdir'] = ':lib:' # XXX Is this correct?? + if not dictcopy.has_key('mac_outputdir'): + dictcopy['mac_outputdir'] = ':lib:' dictcopy['mac_dllname'] = modulename + '.ppc.slb' dictcopy['mac_targetname'] = modulename + '.ppc' if os.path.isabs(dictcopy['sysprefix']): @@ -36,6 +37,9 @@ def mkproject(outputfile, modulename, settings): # fp = open(outputfile + '.exp', 'w') fp.write('init%s\n'%modulename) + if dictcopy.has_key('extraexportsymbols'): + for sym in dictcopy['extraexportsymbols']: + fp.write('%s\n'%sym) fp.close() # # Generate the project from the xml -- cgit v0.12