mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Added an extraexportsymbols option, to allow (you guessed it:-) extra export symbols to be specified.
This commit is contained in:
parent
aee9d6b73e
commit
0eba959ed3
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue