annotate Mac/scripts/genpluginprojects.py @ 22503:c8165758a6de legacy-trunk

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.
author Jack Jansen <jack.jansen@cwi.nl>
date Sun, 24 Mar 2002 22:59:16 +0000
parents 9afeaf9979a0
children 8d946c9339e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15470
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
1 import mkcwproject
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
2 import sys
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
3 import os
15705
b408acdcaf3e Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents: 15675
diff changeset
4 import string
15470
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
5
19321
42246b8c58bb If genpluginprojects is called from fullbuild we set the Python source directory to be the same as fullbuild uses (in stead of using the default sys.prefix). This fixes an issue Mark Day raised that you can't use fullbuild with one Python installation to build another one.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19024
diff changeset
6 PYTHONDIR = sys.prefix
42246b8c58bb If genpluginprojects is called from fullbuild we set the Python source directory to be the same as fullbuild uses (in stead of using the default sys.prefix). This fixes an issue Mark Day raised that you can't use fullbuild with one Python installation to build another one.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19024
diff changeset
7 PROJECTDIR = os.path.join(PYTHONDIR, ":Mac:Build")
15470
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
8 MODULEDIRS = [ # Relative to projectdirs
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
9 "::Modules:%s",
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
10 "::Modules",
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
11 ":::Modules",
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
12 ]
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
13
16086
481c3d50a4e5 Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents: 15705
diff changeset
14 # Global variable to control forced rebuild (otherwise the project is only rebuilt
481c3d50a4e5 Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents: 15705
diff changeset
15 # when it is changed)
481c3d50a4e5 Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents: 15705
diff changeset
16 FORCEREBUILD=0
481c3d50a4e5 Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents: 15705
diff changeset
17
15705
b408acdcaf3e Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents: 15675
diff changeset
18 def relpath(base, path):
b408acdcaf3e Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents: 15675
diff changeset
19 """Turn abs path into path relative to another. Only works for 2 abs paths
b408acdcaf3e Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents: 15675
diff changeset
20 both pointing to folders"""
b408acdcaf3e Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents: 15675
diff changeset
21 if not os.path.isabs(base) or not os.path.isabs(path):
b408acdcaf3e Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents: 15675
diff changeset
22 raise 'Absolute paths only'
16086
481c3d50a4e5 Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents: 15705
diff changeset
23 if base[-1] == ':':
481c3d50a4e5 Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents: 15705
diff changeset
24 base = base[:-1]
15705
b408acdcaf3e Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents: 15675
diff changeset
25 basefields = string.split(base, os.sep)
b408acdcaf3e Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents: 15675
diff changeset
26 pathfields = string.split(path, os.sep)
b408acdcaf3e Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents: 15675
diff changeset
27 commonfields = len(os.path.commonprefix((basefields, pathfields)))
b408acdcaf3e Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents: 15675
diff changeset
28 basefields = basefields[commonfields:]
b408acdcaf3e Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents: 15675
diff changeset
29 pathfields = pathfields[commonfields:]
16086
481c3d50a4e5 Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents: 15705
diff changeset
30 pathfields = ['']*(len(basefields)+1) + pathfields
481c3d50a4e5 Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents: 15705
diff changeset
31 rv = string.join(pathfields, os.sep)
481c3d50a4e5 Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents: 15705
diff changeset
32 return rv
15705
b408acdcaf3e Use relative path for outputdir.
Jack Jansen <jack.jansen@cwi.nl>
parents: 15675
diff changeset
33
16181
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
34 def genpluginproject(architecture, module,
15470
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
35 project=None, projectdir=None,
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
36 sources=[], sourcedirs=[],
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
37 libraries=[], extradirs=[],
21113
ed3dce17fc79 Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
Jack Jansen <jack.jansen@cwi.nl>
parents: 20899
diff changeset
38 extraexportsymbols=[], outputdir=":::Lib:lib-dynload",
22284
160e335fbe6f Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21709
diff changeset
39 libraryflags=None, stdlibraryflags=None, prefixname=None):
16181
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
40 if architecture == "all":
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
41 # For the time being we generate two project files. Not as nice as
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
42 # a single multitarget project, but easier to implement for now.
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
43 genpluginproject("ppc", module, project, projectdir, sources, sourcedirs,
22442
9afeaf9979a0 - Weaklink InterfaceLib in _Res module
Jack Jansen <jack.jansen@cwi.nl>
parents: 22284
diff changeset
44 libraries, extradirs, extraexportsymbols, outputdir, libraryflags,
9afeaf9979a0 - Weaklink InterfaceLib in _Res module
Jack Jansen <jack.jansen@cwi.nl>
parents: 22284
diff changeset
45 stdlibraryflags, prefixname)
16181
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
46 genpluginproject("carbon", module, project, projectdir, sources, sourcedirs,
22442
9afeaf9979a0 - Weaklink InterfaceLib in _Res module
Jack Jansen <jack.jansen@cwi.nl>
parents: 22284
diff changeset
47 libraries, extradirs, extraexportsymbols, outputdir, libraryflags,
9afeaf9979a0 - Weaklink InterfaceLib in _Res module
Jack Jansen <jack.jansen@cwi.nl>
parents: 22284
diff changeset
48 stdlibraryflags, prefixname)
16181
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
49 return
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
50 templatename = "template-%s" % architecture
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
51 targetname = "%s.%s" % (module, architecture)
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
52 dllname = "%s.%s.slb" % (module, architecture)
15470
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
53 if not project:
16181
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
54 if architecture != "ppc":
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
55 project = "%s.%s.mcp"%(module, architecture)
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
56 else:
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
57 project = "%s.mcp"%module
15470
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
58 if not projectdir:
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
59 projectdir = PROJECTDIR
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
60 if not sources:
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
61 sources = [module + 'module.c']
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
62 if not sourcedirs:
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
63 for moduledir in MODULEDIRS:
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
64 if '%' in moduledir:
19441
0757098350c2 The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19397
diff changeset
65 # For historical reasons an initial _ in the modulename
0757098350c2 The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19397
diff changeset
66 # is not reflected in the folder name
0757098350c2 The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19397
diff changeset
67 if module[0] == '_':
0757098350c2 The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19397
diff changeset
68 modulewithout_ = module[1:]
0757098350c2 The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19397
diff changeset
69 else:
0757098350c2 The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19397
diff changeset
70 modulewithout_ = module
0757098350c2 The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19397
diff changeset
71 moduledir = moduledir % modulewithout_
15470
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
72 fn = os.path.join(projectdir, os.path.join(moduledir, sources[0]))
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
73 if os.path.exists(fn):
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
74 moduledir, sourcefile = os.path.split(fn)
16086
481c3d50a4e5 Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents: 15705
diff changeset
75 sourcedirs = [relpath(projectdir, moduledir)]
15470
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
76 sources[0] = sourcefile
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
77 break
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
78 else:
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
79 print "Warning: %s: sourcefile not found: %s"%(module, sources[0])
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
80 sourcedirs = []
22284
160e335fbe6f Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21709
diff changeset
81 if prefixname:
160e335fbe6f Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21709
diff changeset
82 pass
160e335fbe6f Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21709
diff changeset
83 elif architecture == "carbon":
16181
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
84 prefixname = "mwerks_carbonplugin_config.h"
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
85 else:
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
86 prefixname = "mwerks_plugin_config.h"
15470
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
87 dict = {
16086
481c3d50a4e5 Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents: 15705
diff changeset
88 "sysprefix" : relpath(projectdir, sys.prefix),
15470
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
89 "sources" : sources,
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
90 "extrasearchdirs" : sourcedirs + extradirs,
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
91 "libraries": libraries,
19391
b22658a468cf Dynamic modules are now put in :Lib:lib-dynload by default. For the toolbox modules this is overridden to put them in :Mac:Lib:Carbon.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19321
diff changeset
92 "mac_outputdir" : outputdir,
15470
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
93 "extraexportsymbols" : extraexportsymbols,
16181
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
94 "mac_targetname" : targetname,
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
95 "mac_dllname" : dllname,
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
96 "prefixname" : prefixname,
15470
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
97 }
21113
ed3dce17fc79 Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
Jack Jansen <jack.jansen@cwi.nl>
parents: 20899
diff changeset
98 if libraryflags:
ed3dce17fc79 Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
Jack Jansen <jack.jansen@cwi.nl>
parents: 20899
diff changeset
99 dict['libraryflags'] = libraryflags
ed3dce17fc79 Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
Jack Jansen <jack.jansen@cwi.nl>
parents: 20899
diff changeset
100 if stdlibraryflags:
ed3dce17fc79 Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
Jack Jansen <jack.jansen@cwi.nl>
parents: 20899
diff changeset
101 dict['stdlibraryflags'] = stdlibraryflags
16181
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
102 mkcwproject.mkproject(os.path.join(projectdir, project), module, dict,
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
103 force=FORCEREBUILD, templatename=templatename)
15470
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
104
16086
481c3d50a4e5 Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents: 15705
diff changeset
105 def genallprojects(force=0):
481c3d50a4e5 Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents: 15705
diff changeset
106 global FORCEREBUILD
481c3d50a4e5 Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents: 15705
diff changeset
107 FORCEREBUILD = force
15470
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
108 # Standard Python modules
22284
160e335fbe6f Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21709
diff changeset
109 genpluginproject("ppc", "pyexpat",
160e335fbe6f Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21709
diff changeset
110 sources=["pyexpat.c", "xmlparse.c", "xmlrole.c", "xmltok.c"],
160e335fbe6f Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21709
diff changeset
111 extradirs=[":::Modules:expat"],
160e335fbe6f Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21709
diff changeset
112 prefixname="mwerks_pyexpat_config.h"
160e335fbe6f Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21709
diff changeset
113 )
160e335fbe6f Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21709
diff changeset
114 genpluginproject("carbon", "pyexpat",
160e335fbe6f Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21709
diff changeset
115 sources=["pyexpat.c", "xmlparse.c", "xmlrole.c", "xmltok.c"],
160e335fbe6f Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21709
diff changeset
116 extradirs=[":::Modules:expat"],
160e335fbe6f Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21709
diff changeset
117 prefixname="mwerks_carbonpyexpat_config.h"
160e335fbe6f Modifed for new included expat.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21709
diff changeset
118 )
16181
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
119 genpluginproject("all", "zlib",
15470
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
120 libraries=["zlib.ppc.Lib"],
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
121 extradirs=["::::imglibs:zlib:mac", "::::imglibs:zlib"])
16181
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
122 genpluginproject("all", "gdbm",
15470
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
123 libraries=["gdbm.ppc.gusi.lib"],
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
124 extradirs=["::::gdbm:mac", "::::gdbm"])
16566
4cedc826bee8 Added modules _testcapi, _weakref, _symtable.
Jack Jansen <jack.jansen@cwi.nl>
parents: 16335
diff changeset
125 genpluginproject("all", "_weakref", sources=["_weakref.c"])
4cedc826bee8 Added modules _testcapi, _weakref, _symtable.
Jack Jansen <jack.jansen@cwi.nl>
parents: 16335
diff changeset
126 genpluginproject("all", "_symtable", sources=["symtablemodule.c"])
19570
9da68c0379ab Added xx and xxsubtype modules, for completeness and because xxsubtype is used by the test suite.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19441
diff changeset
127 # Example/test modules
16566
4cedc826bee8 Added modules _testcapi, _weakref, _symtable.
Jack Jansen <jack.jansen@cwi.nl>
parents: 16335
diff changeset
128 genpluginproject("all", "_testcapi")
19570
9da68c0379ab Added xx and xxsubtype modules, for completeness and because xxsubtype is used by the test suite.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19441
diff changeset
129 genpluginproject("all", "xx")
9da68c0379ab Added xx and xxsubtype modules, for completeness and because xxsubtype is used by the test suite.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19441
diff changeset
130 genpluginproject("all", "xxsubtype", sources=["xxsubtype.c"])
20640
71a9b053ab42 Added _hotshot.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19570
diff changeset
131 genpluginproject("all", "_hotshot", sources=["_hotshot.c"])
15470
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
132
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
133 # bgen-generated Toolbox modules
19441
0757098350c2 The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19397
diff changeset
134 genpluginproject("carbon", "_AE", outputdir="::Lib:Carbon")
22503
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
135 genpluginproject("ppc", "_AE", libraries=["ObjectSupportLib"],
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
136 stdlibraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
21243
2034902b0f1a Link more modules with weak import, and add CarbonAccessors.o to all relevant PowerPC toolbox modules. This, in combination with recent IDE mods, makes the IDE work again under MacOS 8.1.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21113
diff changeset
137 genpluginproject("ppc", "_App", libraries=["CarbonAccessors.o", "AppearanceLib"],
2034902b0f1a Link more modules with weak import, and add CarbonAccessors.o to all relevant PowerPC toolbox modules. This, in combination with recent IDE mods, makes the IDE work again under MacOS 8.1.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21113
diff changeset
138 libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
19441
0757098350c2 The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19397
diff changeset
139 genpluginproject("carbon", "_App", outputdir="::Lib:Carbon")
22503
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
140 genpluginproject("ppc", "_Cm", libraries=["QuickTimeLib"],
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
141 stdlibraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
19441
0757098350c2 The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19397
diff changeset
142 genpluginproject("carbon", "_Cm", outputdir="::Lib:Carbon")
21388
dfacc733cbf4 added non-support for CoreGraphics...
Just van Rossum <just@letterror.com>
parents: 21376
diff changeset
143 # XXX can't work properly because we need to set a custom fragment initializer
dfacc733cbf4 added non-support for CoreGraphics...
Just van Rossum <just@letterror.com>
parents: 21376
diff changeset
144 #genpluginproject("carbon", "_CG",
dfacc733cbf4 added non-support for CoreGraphics...
Just van Rossum <just@letterror.com>
parents: 21376
diff changeset
145 # sources=["_CGModule.c", "CFMLateImport.c"],
dfacc733cbf4 added non-support for CoreGraphics...
Just van Rossum <just@letterror.com>
parents: 21376
diff changeset
146 # libraries=["CGStubLib"],
dfacc733cbf4 added non-support for CoreGraphics...
Just van Rossum <just@letterror.com>
parents: 21376
diff changeset
147 # outputdir="::Lib:Carbon")
19441
0757098350c2 The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19397
diff changeset
148 genpluginproject("carbon", "_Ctl", outputdir="::Lib:Carbon")
21243
2034902b0f1a Link more modules with weak import, and add CarbonAccessors.o to all relevant PowerPC toolbox modules. This, in combination with recent IDE mods, makes the IDE work again under MacOS 8.1.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21113
diff changeset
149 genpluginproject("ppc", "_Ctl", libraries=["CarbonAccessors.o", "ControlsLib", "AppearanceLib"],
21113
ed3dce17fc79 Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
Jack Jansen <jack.jansen@cwi.nl>
parents: 20899
diff changeset
150 libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
19441
0757098350c2 The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19397
diff changeset
151 genpluginproject("carbon", "_Dlg", outputdir="::Lib:Carbon")
21243
2034902b0f1a Link more modules with weak import, and add CarbonAccessors.o to all relevant PowerPC toolbox modules. This, in combination with recent IDE mods, makes the IDE work again under MacOS 8.1.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21113
diff changeset
152 genpluginproject("ppc", "_Dlg", libraries=["CarbonAccessors.o", "DialogsLib", "AppearanceLib"],
21113
ed3dce17fc79 Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
Jack Jansen <jack.jansen@cwi.nl>
parents: 20899
diff changeset
153 libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
19441
0757098350c2 The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19397
diff changeset
154 genpluginproject("carbon", "_Drag", outputdir="::Lib:Carbon")
22503
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
155 genpluginproject("ppc", "_Drag", libraries=["DragLib"],
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
156 libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
157 genpluginproject("all", "_Evt",
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
158 stdlibraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
159 genpluginproject("all", "_Fm",
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
160 stdlibraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
19441
0757098350c2 The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19397
diff changeset
161 genpluginproject("ppc", "_Help", outputdir="::Lib:Carbon")
22503
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
162 genpluginproject("ppc", "_Icn", libraries=["IconServicesLib"],
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
163 libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
19441
0757098350c2 The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19397
diff changeset
164 genpluginproject("carbon", "_Icn", outputdir="::Lib:Carbon")
0757098350c2 The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19397
diff changeset
165 genpluginproject("all", "_List", outputdir="::Lib:Carbon")
0757098350c2 The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19397
diff changeset
166 genpluginproject("carbon", "_Menu", outputdir="::Lib:Carbon")
21243
2034902b0f1a Link more modules with weak import, and add CarbonAccessors.o to all relevant PowerPC toolbox modules. This, in combination with recent IDE mods, makes the IDE work again under MacOS 8.1.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21113
diff changeset
167 genpluginproject("ppc", "_Menu", libraries=["CarbonAccessors.o", "MenusLib", "ContextualMenu", "AppearanceLib"],
21113
ed3dce17fc79 Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
Jack Jansen <jack.jansen@cwi.nl>
parents: 20899
diff changeset
168 libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
22503
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
169 genpluginproject("all", "_Qd",
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
170 stdlibraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
171 genpluginproject("ppc", "_Qt", libraries=["QuickTimeLib"],
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
172 libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
173 genpluginproject("carbon", "_Qt",
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
174 libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
175 genpluginproject("all", "_Qdoffs",
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
176 stdlibraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
22442
9afeaf9979a0 - Weaklink InterfaceLib in _Res module
Jack Jansen <jack.jansen@cwi.nl>
parents: 22284
diff changeset
177 genpluginproject("all", "_Res",
9afeaf9979a0 - Weaklink InterfaceLib in _Res module
Jack Jansen <jack.jansen@cwi.nl>
parents: 22284
diff changeset
178 stdlibraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
19441
0757098350c2 The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19397
diff changeset
179 genpluginproject("all", "_Scrap", outputdir="::Lib:Carbon")
21243
2034902b0f1a Link more modules with weak import, and add CarbonAccessors.o to all relevant PowerPC toolbox modules. This, in combination with recent IDE mods, makes the IDE work again under MacOS 8.1.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21113
diff changeset
180 genpluginproject("ppc", "_Snd", libraries=["CarbonAccessors.o", "SoundLib"], outputdir="::Lib:Carbon")
19441
0757098350c2 The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19397
diff changeset
181 genpluginproject("carbon", "_Snd", outputdir="::Lib:Carbon")
0757098350c2 The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19397
diff changeset
182 genpluginproject("all", "_Sndihooks", sources=[":snd:_Sndihooks.c"], outputdir="::Lib:Carbon")
22503
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
183 genpluginproject("ppc", "_TE", libraries=["CarbonAccessors.o", "DragLib"],
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
184 stdlibraryflags="Debug, WeakImport",
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
185 libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
19441
0757098350c2 The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19397
diff changeset
186 genpluginproject("carbon", "_TE", outputdir="::Lib:Carbon")
22503
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
187 genpluginproject("ppc", "_Mlte", libraries=["Textension"],
c8165758a6de 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.
Jack Jansen <jack.jansen@cwi.nl>
parents: 22442
diff changeset
188 libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
19441
0757098350c2 The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19397
diff changeset
189 genpluginproject("carbon", "_Mlte", outputdir="::Lib:Carbon")
0757098350c2 The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19397
diff changeset
190 genpluginproject("carbon", "_Win", outputdir="::Lib:Carbon")
21113
ed3dce17fc79 Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
Jack Jansen <jack.jansen@cwi.nl>
parents: 20899
diff changeset
191 genpluginproject("ppc", "_Win", libraries=["CarbonAccessors.o", "WindowsLib", "AppearanceLib"],
ed3dce17fc79 Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
Jack Jansen <jack.jansen@cwi.nl>
parents: 20899
diff changeset
192 libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
18557
7461348d99da Added Mlte module (which, to my surprise, is available for classic ppc as well).
Jack Jansen <jack.jansen@cwi.nl>
parents: 18290
diff changeset
193 # Carbon Only?
19441
0757098350c2 The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
Jack Jansen <jack.jansen@cwi.nl>
parents: 19397
diff changeset
194 genpluginproject("carbon", "_CF", outputdir="::Lib:Carbon")
21376
50d0366e8f05 added CarbonEvents
Just van Rossum <just@letterror.com>
parents: 21243
diff changeset
195 genpluginproject("carbon", "_CarbonEvt", outputdir="::Lib:Carbon")
20899
8722b0abeac6 Added hfsplusapi module.
Jack Jansen <jack.jansen@cwi.nl>
parents: 20640
diff changeset
196 genpluginproject("carbon", "hfsplus")
18290
295acc0755f0 Added CF module build and project generation (carbon only).
Jack Jansen <jack.jansen@cwi.nl>
parents: 17850
diff changeset
197
15470
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
198 # Other Mac modules
16181
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
199 genpluginproject("all", "calldll", sources=["calldll.c"])
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
200 genpluginproject("all", "ColorPicker")
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
201 genpluginproject("ppc", "Printing")
21709
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
202 ## genpluginproject("ppc", "waste",
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
203 ## sources=[
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
204 ## "wastemodule.c",
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
205 ## 'WEAccessors.c', 'WEBirthDeath.c', 'WEDebug.c',
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
206 ## 'WEDrawing.c', 'WEFontTables.c', 'WEHighLevelEditing.c',
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
207 ## 'WEICGlue.c', 'WEInlineInput.c', 'WELineLayout.c', 'WELongCoords.c',
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
208 ## 'WELowLevelEditing.c', 'WEMouse.c', 'WEObjects.c', 'WEScraps.c',
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
209 ## 'WESelecting.c', 'WESelectors.c', 'WEUserSelectors.c', 'WEUtilities.c',
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
210 ## 'WEObjectHandlers.c',
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
211 ## 'WETabs.c',
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
212 ## 'WETabHooks.c'],
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
213 ## libraries=['DragLib'],
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
214 ## extradirs=[
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
215 ## '::::Waste 1.3 Distribution:*',
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
216 ## '::::ICProgKit1.4:APIs']
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
217 ## )
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
218 # This is a hack, combining parts of Waste 2.0 with parts of 1.3
16181
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
219 genpluginproject("ppc", "waste",
15470
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
220 sources=[
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
221 "wastemodule.c",
21709
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
222 "WEObjectHandlers.c",
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
223 "WETabs.c", "WETabHooks.c"],
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
224 libraries=[
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
225 "WASTE.PPC.lib",
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
226 "TextCommon",
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
227 "UnicodeConverter",
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
228 "DragLib",
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
229 ],
16102
7cb940c15645 Waste needs the ICProgKit API.
Jack Jansen <jack.jansen@cwi.nl>
parents: 16086
diff changeset
230 extradirs=[
21709
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
231 '{Compiler}:MacOS Support:(Third Party Support):Waste 2.0 Distribution:C_C++ Headers',
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
232 '{Compiler}:MacOS Support:(Third Party Support):Waste 2.0 Distribution:Static Libraries',
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
233 '::wastemods',
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
234 ]
15470
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
235 )
16213
c0f61d4f5a04 Waste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses a mixture between Waste 2.0 and Waste 1.3.
Jack Jansen <jack.jansen@cwi.nl>
parents: 16181
diff changeset
236 genpluginproject("carbon", "waste",
c0f61d4f5a04 Waste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses a mixture between Waste 2.0 and Waste 1.3.
Jack Jansen <jack.jansen@cwi.nl>
parents: 16181
diff changeset
237 sources=[
c0f61d4f5a04 Waste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses a mixture between Waste 2.0 and Waste 1.3.
Jack Jansen <jack.jansen@cwi.nl>
parents: 16181
diff changeset
238 "wastemodule.c",
c0f61d4f5a04 Waste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses a mixture between Waste 2.0 and Waste 1.3.
Jack Jansen <jack.jansen@cwi.nl>
parents: 16181
diff changeset
239 "WEObjectHandlers.c",
c0f61d4f5a04 Waste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses a mixture between Waste 2.0 and Waste 1.3.
Jack Jansen <jack.jansen@cwi.nl>
parents: 16181
diff changeset
240 "WETabs.c", "WETabHooks.c"],
c0f61d4f5a04 Waste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses a mixture between Waste 2.0 and Waste 1.3.
Jack Jansen <jack.jansen@cwi.nl>
parents: 16181
diff changeset
241 libraries=["WASTE.Carbon.lib"],
c0f61d4f5a04 Waste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses a mixture between Waste 2.0 and Waste 1.3.
Jack Jansen <jack.jansen@cwi.nl>
parents: 16181
diff changeset
242 extradirs=[
c0f61d4f5a04 Waste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses a mixture between Waste 2.0 and Waste 1.3.
Jack Jansen <jack.jansen@cwi.nl>
parents: 16181
diff changeset
243 '{Compiler}:MacOS Support:(Third Party Support):Waste 2.0 Distribution:C_C++ Headers',
c0f61d4f5a04 Waste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses a mixture between Waste 2.0 and Waste 1.3.
Jack Jansen <jack.jansen@cwi.nl>
parents: 16181
diff changeset
244 '{Compiler}:MacOS Support:(Third Party Support):Waste 2.0 Distribution:Static Libraries',
21709
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
245 '::wastemods',
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
246 ]
16213
c0f61d4f5a04 Waste and scrap now sort-of work for Carbon. Scrap is mostly empty, and waste uses a mixture between Waste 2.0 and Waste 1.3.
Jack Jansen <jack.jansen@cwi.nl>
parents: 16181
diff changeset
247 )
21709
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
248 ## '::::Waste 1.3 Distribution:Extras:Sample Object Handlers',
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
249 ## '::::Waste 1.3 Distribution:Extras:Waste Tabs 1.3.2']
16181
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
250 genpluginproject("ppc", "ctb")
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
251 genpluginproject("ppc", "icglue", sources=["icgluemodule.c"],
21709
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
252 libraries=["InternetConfigLib"])
866615f0ae2a CodeWarrior includes Waste and Internet Config nowadays, obviating the need for separate downloads.
Jack Jansen <jack.jansen@cwi.nl>
parents: 21388
diff changeset
253 genpluginproject("carbon", "icglue", sources=["icgluemodule.c"])
16181
a54c282bfb63 Generate Carbon as well as classic PPC plugin projects. This module is finally paying back the investment in it!
Jack Jansen <jack.jansen@cwi.nl>
parents: 16102
diff changeset
254 genpluginproject("ppc", "macspeech", libraries=["SpeechLib"])
15470
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
255
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
256 if __name__ == '__main__':
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
257 genallprojects()
e0d8a6f2d091 Got it working for all important plugins, and moved it from Build to scripts.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
258
16086
481c3d50a4e5 Added a force option (to force project generation, the default is now to only generate if different).
Jack Jansen <jack.jansen@cwi.nl>
parents: 15705
diff changeset
259