]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added an extraexportsymbols option, to allow (you guessed it:-) extra export symbols...
authorJack Jansen <jack.jansen@cwi.nl>
Sun, 3 Dec 2000 22:39:09 +0000 (22:39 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Sun, 3 Dec 2000 22:39:09 +0000 (22:39 +0000)
Mac/Lib/mkcwproject/__init__.py

index a9e05629ca0ceb105994523d64f1a23d4f12fb3b..ff5ddd98122c9f9c19449a0edef508328e332dc0 100644 (file)
@@ -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