]> granicus.if.org Git - python/commitdiff
Modifed for new included expat.
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 14 Mar 2002 23:14:43 +0000 (23:14 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 14 Mar 2002 23:14:43 +0000 (23:14 +0000)
Mac/scripts/genpluginprojects.py

index 46f0a6bdacf46933c6b336579084b8e16bb62ed1..f96e44f35e9e2de7e6356b6ccaa2c7b98ab707cf 100644 (file)
@@ -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"])