diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-11-26 23:02:38 +0000 |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-11-26 23:02:38 +0000 |
commit | cb54be869c36a04a6e1cb1e964a9e22c37c276c7 (patch) | |
tree | f8fb2353d12b9df99564e99f96628d4627c2e533 /Mac/Lib/mkcwproject/cwxmlgen.py | |
parent | c10a11b7c746587768ab716cc775c1a30c95c857 (diff) | |
download | cpython-git-cb54be869c36a04a6e1cb1e964a9e22c37c276c7.tar.gz |
Added support for adding libraries.
Added support for project-relative and absolute path names in the search path entries.
Diffstat (limited to 'Mac/Lib/mkcwproject/cwxmlgen.py')
-rw-r--r-- | Mac/Lib/mkcwproject/cwxmlgen.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Mac/Lib/mkcwproject/cwxmlgen.py b/Mac/Lib/mkcwproject/cwxmlgen.py index b29786f68a..ff5d0cbaf9 100644 --- a/Mac/Lib/mkcwproject/cwxmlgen.py +++ b/Mac/Lib/mkcwproject/cwxmlgen.py @@ -9,6 +9,9 @@ TEMPLATELIST= [ ("tmp_allsources", "file", "template-allsources.xml", "sources"), ("tmp_linkorder", "file", "template-linkorder.xml", "sources"), ("tmp_grouplist", "file", "template-grouplist.xml", "sources"), + ("tmp_alllibraries", "file", "template-alllibraries.xml", "libraries"), + ("tmp_linkorderlib", "file", "template-linkorderlib.xml", "libraries"), + ("tmp_grouplistlib", "file", "template-grouplistlib.xml", "libraries"), ("tmp_extrasearchdirs", "file", "template-searchdirs.xml", "extrasearchdirs"), ("tmp_projectxmldata", "file", "template.prj.xml", None) ] @@ -24,6 +27,8 @@ class ProjectBuilder: if not os.path.exists(templatedir): raise Error, "Cannot file templatedir" self.dict = dict + if not dict.has_key('prefixname'): + dict['prefixname'] = 'mwerks_plugin_config.h' self.templatelist = templatelist self.templatedir = templatedir @@ -43,11 +48,17 @@ class ProjectBuilder: raise Error, "List or tuple expected for %s"%key for curkeyvalue in keyvalues: self.dict[key] = curkeyvalue + if os.path.isabs(curkeyvalue): + self.dict['pathtype'] = 'Absolute' + else: + self.dict['pathtype'] = 'Project' curkeyvalueresult = self._generate_one_value(datasource, dataname) result = result + curkeyvalueresult finally: # Restore the list self.dict[key] = keyvalues + self.dict['pathtype'] = None + del self.dict['pathtype'] else: # Not a multi-element rule. Simply generate result = self._generate_one_value(datasource, dataname) |