diff options
Diffstat (limited to 'Mac/Lib/mkcwproject/__init__.py')
-rw-r--r-- | Mac/Lib/mkcwproject/__init__.py | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/Mac/Lib/mkcwproject/__init__.py b/Mac/Lib/mkcwproject/__init__.py index 9c5e21c..69a1f32 100644 --- a/Mac/Lib/mkcwproject/__init__.py +++ b/Mac/Lib/mkcwproject/__init__.py @@ -12,27 +12,15 @@ def mkproject(outputfile, modulename, settings, force=0, templatename=None): for k, v in settings.items(): dictcopy[k] = v # - # Fill in mac-specific values + # Generate the XML for the project # dictcopy['mac_projectxmlname'] = outputfile + '.xml' dictcopy['mac_exportname'] = os.path.split(outputfile)[1] + '.exp' - if not dictcopy.has_key('mac_outputdir'): - dictcopy['mac_outputdir'] = ':lib:' - if not dictcopy.has_key('stdlibraryflags'): - dictcopy['stdlibraryflags'] = 'Debug' - if not dictcopy.has_key('libraryflags'): - dictcopy['libraryflags'] = 'Debug' if not dictcopy.has_key('mac_dllname'): dictcopy['mac_dllname'] = modulename + '.ppc.slb' if not dictcopy.has_key('mac_targetname'): dictcopy['mac_targetname'] = modulename + '.ppc' - if os.path.isabs(dictcopy['sysprefix']): - dictcopy['mac_sysprefixtype'] = 'Absolute' - else: - dictcopy['mac_sysprefixtype'] = 'Project' # XXX not sure this is right... - # - # Generate the XML for the project - # + xmlbuilder = cwxmlgen.ProjectBuilder(dictcopy, templatename=templatename) xmlbuilder.generate() if not force: |