summaryrefslogtreecommitdiffstats
path: root/Mac/scripts
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-03-24 22:59:16 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-03-24 22:59:16 (GMT)
commit5ee24ae98d191d5a645c2cf67487285de2f2651b (patch)
tree9814f9745b3ddc40c6f397f628cee4081c2c0402 /Mac/scripts
parent29ac3cb7eda5491074cff52d2c923bce62975986 (diff)
downloadcpython-5ee24ae98d191d5a645c2cf67487285de2f2651b.zip
cpython-5ee24ae98d191d5a645c2cf67487285de2f2651b.tar.gz
cpython-5ee24ae98d191d5a645c2cf67487285de2f2651b.tar.bz2
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
Should finally fix 531398. 2.2.1 candidate.
Diffstat (limited to 'Mac/scripts')
-rw-r--r--Mac/scripts/genpluginprojects.py37
1 files changed, 25 insertions, 12 deletions
diff --git a/Mac/scripts/genpluginprojects.py b/Mac/scripts/genpluginprojects.py
index d95c4ad..1286993 100644
--- a/Mac/scripts/genpluginprojects.py
+++ b/Mac/scripts/genpluginprojects.py
@@ -132,11 +132,13 @@ def genallprojects(force=0):
# bgen-generated Toolbox modules
genpluginproject("carbon", "_AE", outputdir="::Lib:Carbon")
- genpluginproject("ppc", "_AE", libraries=["ObjectSupportLib"], outputdir="::Lib:Carbon")
+ genpluginproject("ppc", "_AE", libraries=["ObjectSupportLib"],
+ stdlibraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
genpluginproject("ppc", "_App", libraries=["CarbonAccessors.o", "AppearanceLib"],
libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
genpluginproject("carbon", "_App", outputdir="::Lib:Carbon")
- genpluginproject("ppc", "_Cm", libraries=["QuickTimeLib"], outputdir="::Lib:Carbon")
+ genpluginproject("ppc", "_Cm", libraries=["QuickTimeLib"],
+ stdlibraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
genpluginproject("carbon", "_Cm", outputdir="::Lib:Carbon")
# XXX can't work properly because we need to set a custom fragment initializer
#genpluginproject("carbon", "_CG",
@@ -150,29 +152,40 @@ def genallprojects(force=0):
genpluginproject("ppc", "_Dlg", libraries=["CarbonAccessors.o", "DialogsLib", "AppearanceLib"],
libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
genpluginproject("carbon", "_Drag", outputdir="::Lib:Carbon")
- genpluginproject("ppc", "_Drag", libraries=["DragLib"], outputdir="::Lib:Carbon")
- genpluginproject("all", "_Evt", outputdir="::Lib:Carbon")
- genpluginproject("all", "_Fm", outputdir="::Lib:Carbon")
+ genpluginproject("ppc", "_Drag", libraries=["DragLib"],
+ libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
+ genpluginproject("all", "_Evt",
+ stdlibraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
+ genpluginproject("all", "_Fm",
+ stdlibraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
genpluginproject("ppc", "_Help", outputdir="::Lib:Carbon")
- genpluginproject("ppc", "_Icn", libraries=["IconServicesLib"], outputdir="::Lib:Carbon")
+ genpluginproject("ppc", "_Icn", libraries=["IconServicesLib"],
+ libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
genpluginproject("carbon", "_Icn", outputdir="::Lib:Carbon")
genpluginproject("all", "_List", outputdir="::Lib:Carbon")
genpluginproject("carbon", "_Menu", outputdir="::Lib:Carbon")
genpluginproject("ppc", "_Menu", libraries=["CarbonAccessors.o", "MenusLib", "ContextualMenu", "AppearanceLib"],
libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
- genpluginproject("all", "_Qd", outputdir="::Lib:Carbon")
- genpluginproject("ppc", "_Qt", libraries=["QuickTimeLib"], outputdir="::Lib:Carbon")
- genpluginproject("carbon", "_Qt", outputdir="::Lib:Carbon")
- genpluginproject("all", "_Qdoffs", outputdir="::Lib:Carbon")
+ genpluginproject("all", "_Qd",
+ stdlibraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
+ genpluginproject("ppc", "_Qt", libraries=["QuickTimeLib"],
+ libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
+ genpluginproject("carbon", "_Qt",
+ libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
+ genpluginproject("all", "_Qdoffs",
+ stdlibraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
genpluginproject("all", "_Res",
stdlibraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
genpluginproject("all", "_Scrap", outputdir="::Lib:Carbon")
genpluginproject("ppc", "_Snd", libraries=["CarbonAccessors.o", "SoundLib"], outputdir="::Lib:Carbon")
genpluginproject("carbon", "_Snd", outputdir="::Lib:Carbon")
genpluginproject("all", "_Sndihooks", sources=[":snd:_Sndihooks.c"], outputdir="::Lib:Carbon")
- genpluginproject("ppc", "_TE", libraries=["CarbonAccessors.o", "DragLib"], outputdir="::Lib:Carbon")
+ genpluginproject("ppc", "_TE", libraries=["CarbonAccessors.o", "DragLib"],
+ stdlibraryflags="Debug, WeakImport",
+ libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
genpluginproject("carbon", "_TE", outputdir="::Lib:Carbon")
- genpluginproject("ppc", "_Mlte", libraries=["Textension"], outputdir="::Lib:Carbon")
+ genpluginproject("ppc", "_Mlte", libraries=["Textension"],
+ libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
genpluginproject("carbon", "_Mlte", outputdir="::Lib:Carbon")
genpluginproject("carbon", "_Win", outputdir="::Lib:Carbon")
genpluginproject("ppc", "_Win", libraries=["CarbonAccessors.o", "WindowsLib", "AppearanceLib"],