summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-03-14 23:14:43 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-03-14 23:14:43 (GMT)
commit86c4d647512e44b4455c1ccec13732ec1475c153 (patch)
tree086e6f22a3a4f98db2fc601b966654321a3c81f5
parent648c8920bd121f84215663ffe7c82c23f14f4733 (diff)
downloadcpython-86c4d647512e44b4455c1ccec13732ec1475c153.zip
cpython-86c4d647512e44b4455c1ccec13732ec1475c153.tar.gz
cpython-86c4d647512e44b4455c1ccec13732ec1475c153.tar.bz2
Modifed for new included expat.
-rw-r--r--Mac/scripts/genpluginprojects.py20
1 files changed, 14 insertions, 6 deletions
diff --git a/Mac/scripts/genpluginprojects.py b/Mac/scripts/genpluginprojects.py
index 46f0a6b..f96e44f 100644
--- a/Mac/scripts/genpluginprojects.py
+++ b/Mac/scripts/genpluginprojects.py
@@ -36,7 +36,7 @@ def genpluginproject(architecture, module,
sources=[], sourcedirs=[],
libraries=[], extradirs=[],
extraexportsymbols=[], outputdir=":::Lib:lib-dynload",
- libraryflags=None, stdlibraryflags=None):
+ libraryflags=None, stdlibraryflags=None, prefixname=None):
if architecture == "all":
# For the time being we generate two project files. Not as nice as
# a single multitarget project, but easier to implement for now.
@@ -76,7 +76,9 @@ def genpluginproject(architecture, module,
else:
print "Warning: %s: sourcefile not found: %s"%(module, sources[0])
sourcedirs = []
- if architecture == "carbon":
+ if prefixname:
+ pass
+ elif architecture == "carbon":
prefixname = "mwerks_carbonplugin_config.h"
else:
prefixname = "mwerks_plugin_config.h"
@@ -102,10 +104,16 @@ def genallprojects(force=0):
global FORCEREBUILD
FORCEREBUILD = force
# Standard Python modules
- genpluginproject("all", "pyexpat",
- sources=["pyexpat.c"],
- libraries=["libexpat.ppc.lib"],
- extradirs=["::::expat:*"])
+ genpluginproject("ppc", "pyexpat",
+ sources=["pyexpat.c", "xmlparse.c", "xmlrole.c", "xmltok.c"],
+ extradirs=[":::Modules:expat"],
+ prefixname="mwerks_pyexpat_config.h"
+ )
+ genpluginproject("carbon", "pyexpat",
+ sources=["pyexpat.c", "xmlparse.c", "xmlrole.c", "xmltok.c"],
+ extradirs=[":::Modules:expat"],
+ prefixname="mwerks_carbonpyexpat_config.h"
+ )
genpluginproject("all", "zlib",
libraries=["zlib.ppc.Lib"],
extradirs=["::::imglibs:zlib:mac", "::::imglibs:zlib"])