Mercurial > cpython-lru_cache-weakref
diff Mac/scripts/genpluginprojects.py @ 24022:913570ab0737 legacy-trunk
Disabled non-carbon builds (for the moment still optional) and made
these scripts work with the new precompiled headers.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Wed, 26 Jun 2002 22:06:08 +0000 |
| parents | 8d946c9339e8 |
| children | d2d81d53d4a1 |
line wrap: on
line diff
--- a/Mac/scripts/genpluginprojects.py Wed Jun 26 22:05:33 2002 +0000 +++ b/Mac/scripts/genpluginprojects.py Wed Jun 26 22:06:08 2002 +0000 @@ -3,6 +3,8 @@ import os import string +CARBON_ONLY=1 + PYTHONDIR = sys.prefix PROJECTDIR = os.path.join(PYTHONDIR, ":Mac:Build") MODULEDIRS = [ # Relative to projectdirs @@ -38,6 +40,8 @@ extraexportsymbols=[], outputdir=":::Lib:lib-dynload", libraryflags=None, stdlibraryflags=None, prefixname=None, initialize=None): + if CARBON_ONLY and architecture == "ppc": + return 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. @@ -82,7 +86,7 @@ if prefixname: pass elif architecture == "carbon": - prefixname = "mwerks_carbonplugin_config.h" + prefixname = "mwerks_shcarbon_pch" else: prefixname = "mwerks_plugin_config.h" dict = { @@ -112,12 +116,12 @@ genpluginproject("ppc", "pyexpat", sources=["pyexpat.c", "xmlparse.c", "xmlrole.c", "xmltok.c"], extradirs=[":::Modules:expat"], - prefixname="mwerks_pyexpat_config.h" + prefixname="mwerks_shared_config.h" ) genpluginproject("carbon", "pyexpat", sources=["pyexpat.c", "xmlparse.c", "xmlrole.c", "xmltok.c"], extradirs=[":::Modules:expat"], - prefixname="mwerks_carbonpyexpat_config.h" + prefixname="mwerks_shcarbon_config.h" ) genpluginproject("all", "zlib", libraries=["zlib.ppc.Lib"], @@ -194,7 +198,7 @@ genpluginproject("ppc", "_Win", libraries=["CarbonAccessors.o", "WindowsLib", "AppearanceLib"], libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon") # Carbon Only? - genpluginproject("carbon", "_CF", outputdir="::Lib:Carbon") + genpluginproject("carbon", "_CF", sources=[":cf:_CFmodule.c", ":cf:pycfbridge.c"], outputdir="::Lib:Carbon") genpluginproject("carbon", "_CarbonEvt", outputdir="::Lib:Carbon") genpluginproject("carbon", "hfsplus")
