summaryrefslogtreecommitdiffstats
path: root/Mac/Lib
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-12-03 22:39:09 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-12-03 22:39:09 (GMT)
commit0eba959ed328cb6433d67b7e0f31310ee2304ffc (patch)
treec1fc02994765be7ddecdab4134323eda50a1b35d /Mac/Lib
parentaee9d6b73e0d0df6fc2f260c4314fe1c17282cf8 (diff)
downloadcpython-0eba959ed328cb6433d67b7e0f31310ee2304ffc.zip
cpython-0eba959ed328cb6433d67b7e0f31310ee2304ffc.tar.gz
cpython-0eba959ed328cb6433d67b7e0f31310ee2304ffc.tar.bz2
Added an extraexportsymbols option, to allow (you guessed it:-) extra export symbols to be specified.
Diffstat (limited to 'Mac/Lib')
-rw-r--r--Mac/Lib/mkcwproject/__init__.py6
1 files changed, 5 insertions, 1 deletions
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